File Complexity Overall
  • There are 14 files with units, with 3,790 lines of code.
    • 1 very complex files (McCabe index sum 251+; 817 lines of code)
    • 2 complex files (McCabe index sum 126-250; 883 lines of code)
    • 3 medium complex files (McCabe index sum 51-125; 1,413 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 270 lines of code)
    • 6 simple files (McCabe index sum 1-25; 407 lines of code)
  • 2 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system21% | 23% | 37% | 7% | 10%
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
py21% | 23% | 37% | 7% | 10%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
chz21% | 23% | 37% | 7% | 10%
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
tiepin.py
in chz
817 21 382 47 119
484 28 170 35 41
399 31 129 32 28
_blueprint.py
in chz/blueprint
1034 41 97 9 18
_argmap.py
in chz/blueprint
214 14 61 29 23
165 18 55 33 16
_wildcard.py
in chz/blueprint
74 4 31 42 16
field.py
in chz
196 11 26 13 4
_argv.py
in chz/blueprint
88 5 25 28 18
_lazy.py
in chz/blueprint
99 10 23 23 8
_entrypoint.py
in chz/blueprint
108 7 18 17 6
46 10 13 28 2
62 4 5 8 2
util.py
in chz
4 1 1 25 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...