PHP Method Length & Complexity Auditor
Analyzes PHP methods for length, complexity, and Single Responsibility Principle violations to ensure maintainable Clean Architecture.
This skill empowers Claude to perform deep architectural audits of PHP codebases by identifying methods that exceed maintainability thresholds. It goes beyond simple line counting to detect Single Responsibility Principle (SRP) violations, complex conditional logic, and bloated parameter lists. By suggesting specific refactoring patterns like Method Extraction and Parameter Objects, it helps developers transition from legacy code to robust, modular PHP architectures including DDD, CQRS, and Hexagonal design.
Key Features
0145 GitHub stars
02Automated detection of methods exceeding 30-line maintainability thresholds
03Smart extraction recommendations to split complex logic into focused methods
04Identification of Single Responsibility Principle (SRP) violations in PHP classes
05Detection of 'Long Parameter List' smells with Parameter Object suggestions
06Context-aware analysis that ignores CLI commands, migrations, and test setups
Use Cases
01Conducting automated code reviews to enforce Clean Architecture standards
02Onboarding new developers by maintaining a consistent style and complexity limit
03Refactoring legacy PHP monoliths into manageable, modular services