File Complexity Overall
  • There are 20 files with units, with 4,735 lines of code.
    • 2 very complex files (McCabe index sum 251+; 1,706 lines of code)
    • 1 complex files (McCabe index sum 126-250; 1,155 lines of code)
    • 2 medium complex files (McCabe index sum 51-125; 360 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 316 lines of code)
    • 13 simple files (McCabe index sum 1-25; 1,198 lines of code)
  • 11 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system36% | 24% | 7% | 6% | 25%
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
py36% | 24% | 7% | 6% | 25%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
sureal41% | 27% | 8% | 7% | 14%
resource0% | 0% | 0% | 0% | 100%
itur_bt500_demo0% | 0% | 0% | 0% | 100%
itut_p910_demo0% | 0% | 0% | 0% | 100%
itut_p913_demo0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 20)

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
routine.py
in sureal
974 11 275 28 123
732 60 271 37 81
1155 49 230 20 52
inverse.py
in sureal/tools
181 5 76 42 34
misc.py
in sureal/tools
179 19 51 28 17
110 8 34 31 15
206 10 26 13 6
157 3 24 15 18
stats.py
in sureal/tools
102 13 22 22 4
116 3 20 17 13
demo_bt500.py
in itur_bt500_demo
120 6 19 16 5
__main__.py
in sureal
96 1 16 17 16
86 11 15 17 5
decorator.py
in sureal/tools
75 8 15 20 4
66 2 13 20 12
mixin.py
in sureal/core
45 8 12 27 4
mos_to_sureal.py
in resource/util
122 5 12 10 7
demo_p910.py
in itut_p910_demo
90 5 11 12 4
demo.py
in itut_p913_demo
90 5 11 12 4
config.py
in sureal
33 6 10 30 5
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...