File Complexity Overall
  • There are 21 files with units, with 732 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)
    • 0 medium complex files (McCabe index sum 51-125; 0 lines of code)
    • 1 slightly complex files (McCabe index sum 26-50; 177 lines of code)
    • 20 simple files (McCabe index sum 1-25; 555 lines of code)
  • 59 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 24% | 75%
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% | 0% | 24% | 75%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 0% | 28% | 71%
scripts0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 21)

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
chart.js
in src/modules
177 6 35 20 13
mustache.js
in src/modules/utilities
55 4 24 44 8
numberFormat.js
in src/modules/utilities
78 2 20 26 13
colourize.js
in src/modules/utilities/table
55 4 15 27 5
propComparator.js
in src/modules/utilities/table
18 1 15 83 15
old-renderCanvas.js
in src/modules/utilities
59 3 13 22 8
styleHeaders.js
in src/modules/utilities/table
29 2 7 24 5
uploader.js
in scripts
46 2 6 13 4
helpers.js
in src/modules/utilities
20 4 5 25 2
mjs.js
in scripts
24 2 4 17 3
addCustomCSS.js
in src/modules/utilities/table
31 1 4 13 4
getURLParams.js
in src/modules
15 1 4 27 4
deploy.js
in scripts
23 2 3 13 2
swatches.js
in src/modules/utilities/table
14 1 3 21 3
createTable.js
in src/modules/utilities/table
20 1 3 15 3
renderCanvas.js
in src/modules/utilities
26 2 3 12 2
copycss.js
in scripts
24 2 2 8 1
matchArray.js
in src/modules/utilities/table
3 1 2 67 2
contains.js
in src/modules/utilities
6 1 2 33 2
toolbelt.js
in src/modules/utilities
6 2 2 33 1
commas.js
in src/modules/utilities
3 1 1 33 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...