File Complexity Overall
  • There are 16 files with units, with 4,703 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 2 complex files (McCabe index sum 126-250; 1,271 lines of code)
    • 5 medium complex files (McCabe index sum 51-125; 2,806 lines of code)
    • 0 slightly complex files (McCabe index sum 26-50; 0 lines of code)
    • 9 simple files (McCabe index sum 1-25; 626 lines of code)
  • 45 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 27% | 59% | 0% | 13%
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% | 27% | 59% | 0% | 13%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
nest_site0% | 27% | 59% | 0% | 13%
Most Complex Files (Top 16)

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
io.py
in nest_site/nest
892 27 145 16 28
config.py
in nest_site/nest
379 43 131 35 21
sites.py
in nest_site/nest
1431 64 120 8 12
control.py
in nest_site/nest
452 16 88 19 19
pages.py
in nest_site/nest
368 19 82 22 17
helpers.py
in nest_site/nest
211 32 60 28 7
models.py
in nest_site/nest
344 31 59 17 4
tests.py
in nest_site/polls
92 14 14 15 1
io_utils.py
in nest_site/nest
66 5 13 20 4
admin.py
in nest_site/nest
298 6 11 4 2
views.py
in nest_site/polls
33 2 4 12 3
models.py
in nest_site/polls
21 3 3 14 1
settings.py
in nest_site/nest_site
70 2 2 3 1
urls.py
in nest_site/nest_site
26 1 2 8 2
manage.py
in nest_site
15 1 2 13 2
nest_extras.py
in nest_site/nest/templatetags
5 1 1 20 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...