PHP Lazy Loading Analyzer
Optimizes PHP performance by identifying inefficient database loading patterns, missing pagination, and memory-intensive queries.
This Claude Code skill provides specialized architectural guidance for PHP developers to optimize database interactions and memory usage. It identifies common performance bottlenecks such as N+1 query problems, missing pagination in API endpoints, and premature entity loading. By analyzing patterns in Doctrine, Eloquent, or standard repository implementations, it helps developers implement efficient cursor-based pagination, DTO patterns for serialization, and optimized existence checks, ensuring high-performance applications that scale gracefully under heavy data loads.
Key Features
01Identifies premature entity loading that leads to unnecessary memory consumption.
02Recommends cursor-based or keyset pagination for high-performance infinite scrolling.
03Prevents accidental lazy loading of object graphs during JSON serialization.
04Detects missing pagination in list-style API endpoints and repository methods.
05Flags inefficient count operations and suggests optimized SQL count queries.
0645 GitHub stars
Use Cases
01Refactoring legacy PHP applications to improve database response times and reduce server memory load.
02Automating architectural code reviews for performance-critical backend services and APIs.
03Optimizing data-heavy dashboards and mobile backends to handle large-scale datasets efficiently.