File Complexity Overall
  • There are 14 files with units, with 1,917 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; 626 lines of code)
    • 4 slightly complex files (McCabe index sum 26-50; 602 lines of code)
    • 8 simple files (McCabe index sum 1-25; 689 lines of code)
  • 40 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 32% | 31% | 35%
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% | 32% | 31% | 35%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 37% | 35% | 26%
ROOT0% | 0% | 0% | 0% | 100%
boot0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 14)

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
tabletop.js
in src/js/utils
380 30 111 29 18
detect.js
in src/js/utils
246 22 84 34 12
assetManager.js
in src/js/components
201 12 47 23 13
polyfills.js
in src/js/utils
191 17 41 21 7
mediaPlayerVideo.js
in src/js/components
133 11 33 25 6
utils.js
in src/js/components
77 8 27 35 6
bandwidth.js
in src/js/utils
92 11 21 23 7
main.js
in src
157 10 21 13 4
mediaPlayer.js
in src/js/components
57 6 12 21 4
iframeLoader.js
in src/js/utils
62 3 10 16 8
getjson.js
in src/js/utils
32 4 9 28 4
mediaPlayerAudio.js
in src/js/components
49 4 7 14 3
227 2 5 2 4
boot.js
in boot
13 1 3 23 3
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...