File Complexity Overall
  • There are 15 files with units, with 1,496 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 393 lines of code)
    • 2 medium complex files (McCabe index sum 51-125; 432 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 243 lines of code)
    • 10 simple files (McCabe index sum 1-25; 428 lines of code)
  • 10 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 26% | 28% | 16% | 28%
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
py0% | 26% | 28% | 16% | 28%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
brutal0% | 26% | 28% | 16% | 28%
Most Complex Files (Top 15)

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
plugin.py
in brutal/core
393 34 135 34 13
irc.py
in brutal/protocols
263 54 95 36 13
models.py
in brutal/core
169 16 59 35 14
bot.py
in brutal/core
132 22 46 35 6
xmpp.py
in brutal/protocols
111 11 31 28 6
__init__.py
in brutal/conf
75 10 25 33 8
connections.py
in brutal/core
69 9 24 35 7
management.py
in brutal/core
78 7 21 27 10
core.py
in brutal/protocols
59 11 18 31 3
testconsole.py
in brutal/protocols
47 9 14 30 4
example.py
in brutal/spawn/spawn_template/spawn_name/plugins
52 13 13 25 1
utils.py
in brutal/core
20 2 4 20 2
run.py
in brutal
11 1 1 9 1
basic.py
in brutal/plugins
4 1 1 25 1
__init__.py
in brutal
13 1 1 8 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...