File Complexity Overall
  • There are 24 files with units, with 4,456 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)
    • 4 medium complex files (McCabe index sum 51-125; 1,926 lines of code)
    • 4 slightly complex files (McCabe index sum 26-50; 882 lines of code)
    • 16 simple files (McCabe index sum 1-25; 1,648 lines of code)
  • 11 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 43% | 19% | 36%
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% | 43% | 19% | 36%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 45% | 20% | 33%
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
HexMap.js
in src/js/cartograms
540 35 89 16 27
HexMapTimer.js
in src/js/cartograms
438 30 85 19 29
HexMap2.js
in src/js/cartograms
479 27 81 17 30
HexMap1.js
in src/js/cartograms
469 27 79 17 30
RegionsMap.js
in src/js/cartograms
407 9 47 12 25
UKCartogram.js
in src/js/cartograms
247 15 36 15 10
edd.js
in src/js/common
128 10 33 26 11
TouchEvents.js
in src/js/common
100 7 31 31 12
ConstituencyExpand.js
in src/js/common
99 8 23 23 7
UKCartogramComparison.js
in src/js/cartograms
137 7 17 12 8
utilities.js
in src/js/common
77 7 17 22 9
main.js
in src/js/cartograms
257 9 16 6 4
ConstituencyDropDown.js
in src/js/common
81 6 13 16 6
stickElement.js
in src/js/common
41 4 9 22 5
248 2 6 2 5
Histogram.js
in src/js/common
192 4 6 3 2
boot.js
in src
21 5 5 24 1
boot.js
in src/embed
21 5 5 24 1
shareButtons.js
in src/js/common
36 2 5 14 3
page.js
in src/js/page
59 1 4 7 4
MapsTable.js
in src/js/cartograms
96 4 4 4 1
main.js
in src/js
56 3 3 5 1
ReferenceMap.js
in src/js/cartograms
36 1 1 3 1
Barchart.js
in src/js/common
191 1 1 1 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...