File Complexity Overall
  • There are 29 files with units, with 2,418 lines of code.
    • 1 very complex files (McCabe index sum 251+; 835 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 0 medium complex files (McCabe index sum 51-125; 0 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 207 lines of code)
    • 26 simple files (McCabe index sum 1-25; 1,376 lines of code)
  • 23 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system34% | 0% | 0% | 8% | 56%
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
js34% | 0% | 0% | 8% | 56%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
harness100% | 0% | 0% | 0% | 0%
src0% | 0% | 0% | 15% | 84%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 29)

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
curl.js
in harness
835 77 256 31 20
info.js
in src/js/draw
94 6 30 32 10
highlight.js
in src/js/draw
113 5 27 24 18
relative.js
in src/js/lib
89 8 24 27 7
parser.js
in src/js/data
120 13 23 19 5
dots.js
in src/js/draw
116 3 22 19 16
axis.js
in src/js/draw
75 1 15 20 15
throttle.js
in src/js/lib
31 2 12 39 9
cycling.js
in src/js/events
55 3 12 22 7
swimming.js
in src/js/events
52 3 11 21 7
array.js
in src/js/lib
33 6 8 24 3
utils.js
in src/js/lib
17 4 8 47 5
share.js
in src/js/lib
21 1 7 33 7
dotPicker.js
in src/js/draw
67 3 7 10 4
218 4 6 3 3
embed.js
in src/js
69 2 6 9 5
state.js
in src/js/draw
39 2 6 15 5
fuzzy.js
in src/js/lib
21 1 5 24 5
debounce.js
in src/js/lib
14 2 5 36 3
scale.js
in src/js/draw
24 1 5 21 5
variables.js
in src/js
60 3 4 7 2
scrollto.js
in src/js/lib
32 2 4 13 2
result.js
in src/js/events
84 3 4 5 2
grid.js
in src/js/draw
79 1 3 4 3
fetch.js
in src/js/lib
9 1 2 22 2
dom.js
in src/js/lib
3 1 2 67 2
sheetURL.js
in src/js/lib
4 1 2 50 2
longjump_m.js
in src/js/events
27 1 2 7 2
main.js
in src/js
17 1 1 6 1
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...