File Complexity Overall
  • There are 16 files with units, with 4,752 lines of code.
    • 2 very complex files (McCabe index sum 251+; 2,149 lines of code)
    • 2 complex files (McCabe index sum 126-250; 509 lines of code)
    • 5 medium complex files (McCabe index sum 51-125; 1,338 lines of code)
    • 3 slightly complex files (McCabe index sum 26-50; 470 lines of code)
    • 4 simple files (McCabe index sum 1-25; 286 lines of code)
  • 7 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system45% | 10% | 28% | 9% | 6%
Legend:
251+
126-250
51-125
26-50
1-25


explore: grouped by folders | grouped by complexity
File Complexity per Extension
251+
126-250
51-125
26-50
1-25
js45% | 10% | 28% | 9% | 6%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src47% | 11% | 29% | 10% | 1%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 16)

The McCabe index of a file grows with its size: per 100 lines tells a large but plain file from a dense one, and most complex unit whether the complexity sits in one unit or is spread over many.

File# lines# unitsMcCabe index
(sum)
per 100
lines
most complex
unit
backbone.js
in src/js/libs
956 108 423 44 48
skrollr.js
in src/js/libs
1193 61 279 23 32
reqwest.js
in src/js/libs
489 47 203 42 18
curl.js
in src/js/libs
20 1 135 675 135
almond.js
in src/js/libs
271 20 107 39 32
mustache.js
in src/js/libs
347 27 103 30 24
text.js
in src/js/libs
273 17 92 34 33
backbone-nested.js
in src/js/libs
264 20 75 28 17
iframeMessenger.js
in src/js/libs
183 19 52 28 9
121 9 47 39 23
lazyload.js
in src/js/libs
108 12 41 38 12
main.js
in src/js/app
241 17 40 17 12
json.js
in src/js/libs
45 6 14 31 6
210 2 7 3 6
boot.js
in src
21 5 5 24 1
analytics.js
in src/js/app/views
10 1 3 30 3
About This Analysis
  • File complexity is the sum of the McCabe indexes (conditional complexity) of the units (methods, functions...) in a file.
  • Files are classified in five categories based on that sum: 1-25 (simple files), 26-50 (slightly complex files), 51-125 (medium complex files), 126-250 (complex files), 251+ (very complex files). The default bands are five times the unit complexity bands, as a file is a group of units.
  • Only main code files with units are classified. Files without units (languages without unit analysis, or files without functions) have no complexity to measure and are left out rather than counted as simple.
  • A very complex file holds many decisions, which often means it has too many responsibilities: a candidate to split, and a place where changes need more testing.
Learn more...