Skip to content

Instantly share code, notes, and snippets.

@pcdinh
Created December 11, 2009 17:22
Show Gist options
  • Save pcdinh/254362 to your computer and use it in GitHub Desktop.
Save pcdinh/254362 to your computer and use it in GitHub Desktop.
PHPLOC by Sebastian Bergmann.
Date: 2009-12-12
-----------------------
@name Spica Framework
@author pcdinh
@since March 14, 2009
-----------------------
Calculates quality metrics in PHP files.
--------------------------------------------------------
Counting lines of code in Spica application source code.
--------------------------------------------------------
Directories: 35
Files: 110
Lines of Code (LOC): 7589
Cyclomatic Complexity / Lines of Code: 0.02
Comment Lines of Code (CLOC): 3097
Non-Comment Lines of Code (NCLOC): 4492
Namespaces: 0
Interfaces: 0
Classes: 51
Abstract: 0 (0.00%)
Concrete: 51 (100.00%)
Average Class Length (NCLOC): 27
Methods: 95
Scope:
Non-Static: 95 (100.00%)
Static: 0 (0.00%)
Visibility:
Public: 74 (77.89%)
Non-Public: 21 (22.11%)
Average Method Length (NCLOC): 14
Cyclomatic Complexity / Number of Methods: 1.51
Anonymous Functions: 2
Functions: 0
Constants: 0
Global constants: 0
Class constants: 0
--------------------------------------------------------
Counting lines of code in Spica framework source code.
--------------------------------------------------------
Directories: 22
Files: 79
Lines of Code (LOC): 41561
Cyclomatic Complexity / Lines of Code: 0.10
Comment Lines of Code (CLOC): 20711
Non-Comment Lines of Code (NCLOC): 20850
Namespaces: 0
Interfaces: 23
Classes: 227
Abstract: 24 (10.57%)
Concrete: 203 (89.43%)
Average Class Length (NCLOC): 88
Methods: 1311
Scope:
Non-Static: 1072 (81.77%)
Static: 239 (18.23%)
Visibility:
Public: 1090 (83.14%)
Non-Public: 221 (16.86%)
Average Method Length (NCLOC): 15
Cyclomatic Complexity / Number of Methods: 2.32
Anonymous Functions: 0
Functions: 181
Constants: 104
Global constants: 0
Class constants: 104
--------------------------------------------------------
Counting lines of code in Spica test cases.
--------------------------------------------------------
Directories: 16
Files: 100
Lines of Code (LOC): 13080
Cyclomatic Complexity / Lines of Code: 0.04
Comment Lines of Code (CLOC): 6444
Non-Comment Lines of Code (NCLOC): 6636
Namespaces: 0
Interfaces: 0
Classes: 83
Abstract: 0 (0.00%)
Concrete: 83 (100.00%)
Average Class Length (NCLOC): 70
Methods: 425
Scope:
Non-Static: 410 (96.47%)
Static: 15 (3.53%)
Visibility:
Public: 371 (87.29%)
Non-Public: 54 (12.71%)
Average Method Length (NCLOC): 13
Cyclomatic Complexity / Number of Methods: 1.56
Anonymous Functions: 0
Functions: 3
Constants: 15
Global constants: 15
Class constants: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment