File Complexity Overall
  • There are 38 files with units, with 2,903 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 443 lines of code)
    • 2 medium complex files (McCabe index sum 51-125; 702 lines of code)
    • 5 slightly complex files (McCabe index sum 26-50; 702 lines of code)
    • 30 simple files (McCabe index sum 1-25; 1,056 lines of code)
  • 25 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 15% | 24% | 24% | 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
py0% | 15% | 24% | 24% | 36%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
aminator0% | 15% | 24% | 24% | 36%
Most Complex Files (Top 38)

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
linux.py
in aminator/util
443 37 142 32 16
ec2.py
in aminator/plugins/cloud
493 32 102 21 9
linux.py
in aminator/plugins/distro
209 14 56 27 8
config.py
in aminator
175 15 49 28 9
tagging_s3.py
in aminator/plugins/finalizer
172 12 40 23 10
cli.py
in aminator
114 2 31 27 25
base.py
in aminator/plugins/provisioner
122 13 30 25 9
apt.py
in aminator/plugins/provisioner
119 12 29 24 6
metrics.py
in aminator/util
81 7 25 31 5
tagging_base.py
in aminator/plugins/finalizer
100 8 25 25 10
linux.py
in aminator/plugins/blockdevice
96 8 22 23 7
base.py
in aminator/plugins
65 12 17 26 3
__init__.py
in aminator/util
52 4 15 29 6
tagging_ebs.py
in aminator/plugins/finalizer
60 6 15 25 4
linux.py
in aminator/plugins/volume
54 6 15 28 5
yum.py
in aminator/plugins/provisioner
53 8 14 26 3
base.py
in aminator/plugins/cloud
39 13 14 36 2
base.py
in aminator/plugins/metrics
40 10 11 28 2
aptitude.py
in aminator/plugins/provisioner
52 3 11 21 7
environment.py
in aminator
49 5 10 20 3
logger.py
in aminator/plugins/metrics
25 7 8 32 2
__init__.py
in aminator/plugins
20 3 7 35 5
manager.py
in aminator/plugins
20 2 7 35 6
core.py
in aminator
38 2 7 18 4
debian.py
in aminator/plugins/distro
38 2 6 16 3
base.py
in aminator/plugins/finalizer
19 4 5 26 2
base.py
in aminator/plugins/blockdevice
22 4 5 23 2
base.py
in aminator/plugins/volume
21 3 4 19 2
base.py
in aminator/plugins/distro
17 2 3 18 2
null.py
in aminator/plugins/blockdevice
13 2 3 23 2
manager.py
in aminator/plugins/metrics
11 2 2 18 1
manager.py
in aminator/plugins/distro
11 2 2 18 1
manager.py
in aminator/plugins/provisioner
11 2 2 18 1
manager.py
in aminator/plugins/volume
11 2 2 18 1
manager.py
in aminator/plugins/finalizer
8 1 1 13 1
manager.py
in aminator/plugins/cloud
8 1 1 13 1
manager.py
in aminator/plugins/blockdevice
8 1 1 13 1
__init__.py
in aminator
14 1 1 7 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...