Metrics¶
Metrics refer to quantitative measurements used to evaluate the performance, quality, and behavior of the code.
These metrics help understand how the application behaves in production, identify bottlenecks, optimize performance, and ensure code quality.
Here are some common metrics in PHP:
Time of execution
Memory consumption
Number of database queries
cyclomatic complexity
code coverage
cognitive complexity
code duplication
lines of code
PHPMetrics is also the name of an eponymous project.
<
See also PhpMetrics of Popular PHP Projects, phpdepend, Using PHP Web Application Performance Metrics for Early Threat Detection and PHP Performance Monitoring: A Developer’s Guide.
Related : Application Performance Management (APM), Monitoring, Continuous Integration (CI), Cyclomatic Complexity, Cognitive Complexity, Algorithmic Complexity, Analysis
Related packages : phpmetrics/phpmetrics, php-code-archeology/php-code-archeology, phpmd/phpmd