Overview
Discover how to assess and improve PHP code quality in this conference talk from PHP UK 2019. Learn about tools for grading, benchmarking, and analyzing code automatically, enabling developers to create better software. Explore key metrics for identifying areas needing refactoring and using code smells to detect bugs before users do. Gain insights into cyclomatic complexity, code duplication, class complexity, and other important factors affecting code quality. Understand how to implement tools like PHP Mess Detector, PHP CodeSniffer, and PHP Compatibility in your workflow. Explore the benefits of improved code quality, including happier customers, personal pride, and potentially higher income. By the end of this talk, you'll be equipped with knowledge of various tools and techniques to measure and enhance your PHP code.
Syllabus
Introduction
Measure
Highlight Bugs
Improving Code Quality
Happier Customers
Personal Pride
Higher Income
Code Smells
Cyclomatic Complexity
Code Duplication
Classes
Class Complexity
Long Methods
Unused Variables
Comments
SelfDocumenting
Global Usage
EXACAT
Docker Image
PHP Lock
PHP depend
XML output
Copypaste detector
Copypaste detector results
PHP mess detector
Unused filter
PHP Metrics
PHP Code sniffer
PHP Coding Standards
PHP Compatibility
Other Tools
Zray
Apache Bench
Automation
Conclusion
Taught by
PHP UK Conference