PHP Query Efficiency Analyzer

•
45
•

Analyzes PHP code and SQL queries to identify performance bottlenecks, missing indexes, and inefficient data retrieval patterns.

This skill empowers Claude to perform deep static analysis of PHP applications to detect common database performance anti-patterns. It scans for issues like 'SELECT *' usage, full table scans, missing composite indexes, and suboptimal pagination techniques. By identifying these bottlenecks early in the development lifecycle, developers can optimize their SQL queries and ORM calls—such as those in Doctrine or Eloquent—to ensure high-performance applications, reduced server load, and faster response times.

Características Principales

01Evaluates join complexity to minimize unnecessary data processing and redundant table links.
02Analyzes pagination logic to replace slow OFFSET queries with high-performance keyset pagination.
0345 GitHub stars
04Identifies missing index opportunities and provides ready-to-use SQL index recommendations.
05Flags full table scans caused by suboptimal WHERE clauses or functions on indexed columns.
06Detects inefficient 'SELECT *' usage and suggests column-specific fetching.

Casos de Uso

01Automating database performance audits during the code review process.
02Optimizing legacy PHP applications with slow-running database interactions.
03Refactoring ORM queries to improve application scalability and reduce database CPU usage.