Does Your Code Measure Up?
summary
Demos run actual tools (phpLOC, PHP Depend, PHPMD, copy/paste detector, PHP_CodeSniffer, PHPCompatibility) inside a Docker image and produce concrete metrics: cyclomatic complexity <6 as a personal goal (industry threshold 10), class <1000 lines, 25% comments target, and the rule of three for duplication. Reports show where complexity or duplication spikes, highlight unused code, and list exact offending files and lines. CI automates checks, commit hooks enforce coding standard failures, and broader static-analysis reports stay nonblocking so teams can refactor iteratively.
AI-written summary · about
chapters (34)
- 0:00Introduction
- 3:04Measure
- 3:25Highlight Bugs
- 3:51Improving Code Quality
- 7:04Happier Customers
- 7:19Personal Pride
- 7:44Higher Income
- 9:23Code Smells
- 10:10Cyclomatic Complexity
- 11:46Code Duplication
- 13:07Classes
- 13:55Class Complexity
- 14:23Long Methods
- 14:34Unused Variables
- 14:53Comments
- 16:50SelfDocumenting
- 18:14Global Usage
- 21:37EXACAT
- 23:01Docker Image
- 24:46PHP Lock
- 26:40PHP depend
- 27:30XML output
- 28:07Copypaste detector
- 28:30Copypaste detector results
- 30:06PHP mess detector
- 32:01Unused filter
- 32:38PHP Metrics
- 32:57PHP Code sniffer
- 33:08PHP Coding Standards
- 34:56PHP Compatibility
- 37:12Other Tools
- 37:52Apache Bench
- 38:56Automation
- 40:20Conclusion








