File Complexity Overall
  • There are 29 files with units, with 2,545 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 1 medium complex files (McCabe index sum 51-125; 371 lines of code)
    • 1 slightly complex files (McCabe index sum 26-50; 196 lines of code)
    • 27 simple files (McCabe index sum 1-25; 1,978 lines of code)
  • 30 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 14% | 7% | 77%
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
js0% | 0% | 14% | 7% | 77%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 17% | 9% | 72%
ROOT0% | 0% | 0% | 0% | 100%
svg-maker0% | 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
contagion.js
in src/js/modules
371 15 55 15 9
reduction.js
in src/js/modules
196 15 45 23 7
mustache.js
in src/js/modules
55 4 24 44 8
lambertw.js
in src/js/modules
165 6 23 14 8
recur.js
in src/js/modules/dev
86 6 19 22 6
scrollyteller.js
in src/js/modules
70 5 16 23 9
summarizer.js
in src/js/modules
77 3 16 21 12
repo.js
in src/js/modules
104 6 16 15 8
graph.js
in src/js/modules
104 6 15 14 5
shareable.js
in src/js/modules
45 4 13 29 9
intradial.js
in src/js/modules
136 6 12 9 4
263 6 10 4 2
util.js
in src/js/modules
72 1 10 14 10
main.js
in src/js
46 3 8 17 5
cumulative.js
in src/js/modules
34 2 7 21 6
share.js
in src/js/modules
27 2 7 26 6
covid.js
in src/js/modules
128 4 6 5 2
radial-backed-up.js
in src/js/modules
131 3 5 4 2
app.js
in src/js
40 1 4 10 4
intro.js
in src/js/modules
38 3 3 8 1
shuffle.js
in src/js/modules
11 1 3 27 3
screensizer.js
in src/js/modules
5 1 2 40 2
radial.js
in svg-maker
112 1 1 1 1
recur.js
in svg-maker
22 1 1 5 1
index.js
in svg-maker
56 1 1 2 1
radial.js
in src/js/modules
116 1 1 1 1
recur.js
in src/js/modules
22 1 1 5 1
render.js
in src
4 1 1 25 1
index.js
in src/components/load-json
9 1 1 11 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...