File Complexity Overall
  • There are 10 files with units, with 4,249 lines of code.
    • 1 very complex files (McCabe index sum 251+; 2,828 lines of code)
    • 2 complex files (McCabe index sum 126-250; 629 lines of code)
    • 0 medium complex files (McCabe index sum 51-125; 0 lines of code)
    • 0 slightly complex files (McCabe index sum 26-50; 0 lines of code)
    • 7 simple files (McCabe index sum 1-25; 792 lines of code)
  • 14 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system66% | 14% | 0% | 0% | 18%
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
js66% | 14% | 0% | 0% | 18%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
project71% | 15% | 0% | 0% | 12%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 10)

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
lodash.js
in project/src/v/x/js/lib
2828 174 738 26 67
howler.js
in project/src/v/x/js/lib
608 40 163 27 17
curl.js
in project/src/v/x/js/lib
21 1 126 600 126
game.js
in project/src/v/x/js
138 13 16 12 2
audio.js
in project/src/v/x/js/app
93 11 15 16 2
rounds.js
in project/src/v/x/js/app
197 12 13 7 2
293 3 12 4 9
animFramePolyfill.js
in project/src/v/x/js/lib
24 4 9 38 6
boot.js
in project/src
21 4 5 24 2
game.js
in project/src/v/x/js/app
26 5 5 19 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...