Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
illuminate/support LOC
phploc 3.0.0 by Sebastian Bergmann.
Directories 3
Files 51
Size
Lines of Code (LOC) 5756
Comment Lines of Code (CLOC) 2422 (42.08%)
Non-Comment Lines of Code (NCLOC) 3334 (57.92%)
Logical Lines of Code (LLOC) 790 (13.72%)
Classes 433 (54.81%)
Average Class Length 8
Minimum Class Length 1
Maximum Class Length 88
Average Method Length 1
Minimum Method Length 1
Maximum Method Length 11
Functions 257 (32.53%)
Average Function Length 1
Not in classes or functions 100 (12.66%)
Cyclomatic Complexity
Average Complexity per LLOC 0.38
Average Complexity per Class 3.88
Minimum Class Complexity 1.00
Maximum Class Complexity 53.00
Average Complexity per Method 1.72
Minimum Method Complexity 1.00
Maximum Method Complexity 12.00
Dependencies
Global Accesses 0
Global Constants 0 (0.00%)
Global Variables 0 (0.00%)
Super-Global Variables 0 (0.00%)
Attribute Accesses 213
Non-Static 146 (68.54%)
Static 67 (31.46%)
Method Calls 258
Non-Static 140 (54.26%)
Static 118 (45.74%)
Structure
Namespaces 4
Interfaces 0
Traits 2
Classes 48
Abstract Classes 3 (6.25%)
Concrete Classes 45 (93.75%)
Methods 203
Scope
Non-Static Methods 89 (43.84%)
Static Methods 114 (56.16%)
Visibility
Public Methods 148 (72.91%)
Non-Public Methods 55 (27.09%)
Functions 147
Named Functions 129 (87.76%)
Anonymous Functions 18 (12.24%)
Constants 5
Global Constants 0 (0.00%)
Class Constants 5 (100.00%)

yuloh commented Apr 21, 2016

With dependencies installed:

phploc 3.0.0 by Sebastian Bergmann.

Directories                                         40
Files                                              160

Size
  Lines of Code (LOC)                            11903
  Comment Lines of Code (CLOC)                    5422 (45.55%)
  Non-Comment Lines of Code (NCLOC)               6481 (54.45%)
  Logical Lines of Code (LLOC)                    1703 (14.31%)
    Classes                                       1030 (60.48%)
      Average Class Length                           7
        Minimum Class Length                         0
        Maximum Class Length                        88
      Average Method Length                          2
        Minimum Method Length                        1
        Maximum Method Length                       22
    Functions                                      381 (22.37%)
      Average Function Length                        2
    Not in classes or functions                    292 (17.15%)

Cyclomatic Complexity
  Average Complexity per LLOC                     0.32
  Average Complexity per Class                    2.86
    Minimum Class Complexity                      1.00
    Maximum Class Complexity                     53.00
  Average Complexity per Method                   2.00
    Minimum Method Complexity                     1.00
    Maximum Method Complexity                    18.00

Dependencies
  Global Accesses                                   11
    Global Constants                                 9 (81.82%)
    Global Variables                                 2 (18.18%)
    Super-Global Variables                           0 (0.00%)
  Attribute Accesses                               329
    Non-Static                                     203 (61.70%)
    Static                                         126 (38.30%)
  Method Calls                                     408
    Non-Static                                     245 (60.05%)
    Static                                         163 (39.95%)

Structure
  Namespaces                                        35
  Interfaces                                        68
  Traits                                             2
  Classes                                           68
    Abstract Classes                                 4 (5.88%)
    Concrete Classes                                64 (94.12%)
  Methods                                          548
    Scope
      Non-Static Methods                           424 (77.37%)
      Static Methods                               124 (22.63%)
    Visibility
      Public Methods                               492 (89.78%)
      Non-Public Methods                            56 (10.22%)
  Functions                                        164
    Named Functions                                144 (87.80%)
    Anonymous Functions                             20 (12.20%)
  Constants                                         16
    Global Constants                                 4 (25.00%)
    Class Constants                                 12 (75.00%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment