Skip to content

Instantly share code, notes, and snippets.

@akrabat
Last active April 3, 2019 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akrabat/6b486ecd861105301a194cbf1e360dc4 to your computer and use it in GitHub Desktop.
Save akrabat/6b486ecd861105301a194cbf1e360dc4 to your computer and use it in GitHub Desktop.
Slim 3 vs Slim 4-dev phploc as of 3 April 2019
Slim 3 Slim 4-dev
Directories 6 7
Files 47 41
Size
Lines of Code (LOC) 8565 4054
Comment Lines of Code (CLOC) 4145 (48.39%) 1699 (41.91%)
Non-Comment Lines of Code (NCLOC) 4420 (51.61%) 2355 (58.09%)
Logical Lines of Code (LLOC) 1466 (17.12%) 848 (20.92%)
Classes 1267 (86.43%) 619 (73.00%)
Average Class Length 26 15
Minimum Class Length 0 0
Maximum Class Length 204 80
Average Method Length 3 3
Minimum Method Length 0 1
Maximum Method Length 27 17
Functions 0 (0.00%) 0 (0.00%)
Average Function Length 0 0
Not in classes or functions 199 (13.57%) 229 (27.00%)
Cyclomatic Complexity
Average Complexity per LLOC 0.30 0.18
Average Complexity per Class 10.40 4.76
Minimum Class Complexity 1.00 1.00
Maximum Class Complexity 67.00 25.00
Average Complexity per Method 2.44 2.05
Minimum Method Complexity 1.00 1.00
Maximum Method Complexity 15.00 15.00
Dependencies
Global Accesses 4 0
Global Constants 0 (0.00%) 0 (0.00%)
Global Variables 0 (0.00%) 0 (0.00%)
Super-Global Variables 4 (100.00%) 0 (0.00%)
Attribute Accesses 385 259
Non-Static 376 (97.66%) 259 (100.00%)
Static 9 (2.34%) 0 (0.00%)
Method Calls 511 207
Non-Static 490 (95.89%) 205 (99.03%)
Static 21 (4.11%) 2 (0.97%)
Structure
Namespaces 7 8
Interfaces 9 7
Traits 2 0
Classes 36 34
Abstract Classes 4 (11.11%) 2 (5.88%)
Concrete Classes 32 (88.89%) 32 (94.12%)
Methods 335 179
Scope
Non-Static Methods 324 (96.72%) 179 (100.00%)
Static Methods 11 (3.28%) 0 (0.00%)
Visibility
Public Methods 283 (84.48%) 159 (88.83%)
Non-Public Methods 52 (15.52%) 20 (11.17%)
Functions 21 2
Named Functions 0 (0.00%) 0 (0.00%)
Anonymous Functions 21 (100.00%) 2 (100.00%)
Constants 70 3
Global Constants 0 (0.00%) 0 (0.00%)
Class Constants 70 (100.00%) 3 (100.00%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment