How to use this developer tool
- Paste PHP source.
- Select inspection depth.
- Set the long-method threshold.
- Enable security, complexity, and duplication checks.
- Review the score and top issues.
Inspect PHP code for maintainability, readability, complexity, documentation, security risks, and common code smells with transparent scoring.
It calculates line and declaration metrics, estimates nesting and complexity, flags code smells, and combines category scores into an overall rating.
Metrics are estimates. They are useful for triage and comparison but do not replace dedicated static-analysis platforms or human code review.
Input: a deeply nested function using eval.
Output: security, nesting, parameter-count, and maintainability findings.
Run the inspector to estimate nesting, branching, function size, and parameter counts.
The inspector flags long methods, deep nesting, too many parameters, magic numbers, globals, empty catches, and related patterns.
The tool combines maintainability, readability, complexity, security, and documentation subscores with published weights.
Set the long-method threshold and enable complexity analysis.
Enable security analysis to flag risky execution, serialization, input, hashing, SQL, and file-path patterns.
| Module | Purpose |
|---|---|
| Maintainability | 30% |
| Readability | 20% |
| Complexity | 20% |
| Security | 20% |
| Documentation | 10% |