File Complexity Overall
  • There are 24 files with units, with 2,398 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)
    • 2 medium complex files (McCabe index sum 51-125; 644 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 320 lines of code)
    • 20 simple files (McCabe index sum 1-25; 1,434 lines of code)
  • 46 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 26% | 13% | 59%
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% | 26% | 13% | 59%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 34% | 8% | 57%
scripts0% | 0% | 0% | 39% | 60%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 24)

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
schema.js
in src/lib/helpers/guardian
359 19 113 31 16
toolbelt.js
in src/lib/helpers/guardian
285 22 89 31 16
deploy.js
in scripts
168 20 35 21 4
test-mustache.js
in src/lib/helpers/guardian
152 6 26 17 8
testHarness.js
in scripts
107 7 22 21 8
scales.js
in src/lib/helpers/guardian
64 1 20 31 20
colours.js
in src/lib/helpers/guardian
56 1 18 32 18
makeRace.js
in src/lib
238 3 13 5 9
makeRace3.js
in src/lib
238 3 13 5 9
util.js
in src/lib/helpers
118 2 11 9 10
tracking.js
in src/lib/helpers
32 2 7 22 6
fileSystem.js
in scripts/utils
27 2 5 19 4
preview.js
in scripts
41 2 4 10 2
scrollyteller.js
in src/lib/helpers
57 1 4 7 4
deploylog.js
in scripts
26 2 3 12 2
build.js
in scripts
33 1 3 9 3
prerender.js
in scripts
27 2 2 7 1
16 1 1 6 1
79 1 1 1 1
app.prerender.js
in src/atoms/video-record
9 1 1 11 1
app.prerender.js
in src/atoms/default
9 1 1 11 1
app.prerender.js
in src/atoms/video-record2
9 1 1 11 1
app.prerender.js
in src/atoms/atom-1
9 1 1 11 1
makeRace2.js
in src/lib
239 1 1 0 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...