With the Reflect source code, invoke the following command :
$ phpreflect analyser:run .
and you should obtain something like this :
Data Source Analysed Directories 20 Files 72 Structure Namespaces 20 Interfaces 8 Traits 0 Classes 64 Abstract Classes 6 (9.38%) Concrete Classes 58 (90.62%) Methods 293 Scope Non-Static Methods 280 (95.56%) Static Methods 13 (4.44%) Visibility Public Method 250 (85.32%) Protected Method 34 (11.60%) Private Method 9 (3.07%) Functions 13 Named Functions 0 (0.00%) Anonymous Functions 13 (100.00%) Constants 22 Global Constants 0 (0.00%) Magic Constants 3 (13.64%) Class Constants 19 (86.36%) Tests Classes 0 Methods 0
Another analyser (loc
) is also available, and can be combined or not with structure
the default analyser.
With the Reflect source code, invoke the following command :
$ phpreflect analyser:run . loc
and you should obtain something like this :
Data Source Analysed Directories 20 Files 72 Size Lines of Code (LOC) 3721 Comment Lines of Code (CLOC) 136 (3.65%) Non-Comment Lines of Code (NCLOC) 3585 (96.35%) Logical Lines of Code (LLOC) 1196 (32.14%) Classes 1116 (93.31%) Average Class Length 17 Average Method Length 3 Functions 80 (6.69%) Average Function Length 6 Not in classes or functions 0 (0.00%) Complexity Cyclomatic Complexity / LLOC 0.55 Cyclomatic Complexity / Number of Methods 2.88