With Sebastian Bergann's little tool phploc you can easily measure some metrics in php projects. I did this for some TYPO3 versions and here are the results:

Directories and files

Classes

Constants

Lines of code (loc)
loc = all lines of code
locClasses = lines of code in classes
cloc = comment lines of code
ncloc = non-comment lines of code

Methods and functions

Cyclomatic complexity

And here are some calculated values:

Cyclomatic complexity / Lines of code

Lines of code / Number of classes

Lines of code / Number of methods

Cyclomatic complexity / Number of Methods

Comments

This website uses disqus for the commenting functionality. In order to protect your privacy comments are disabled by default.

Enable Comments