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

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
socket_writer.py
in spectator/writer
91 9 33 36 6
registry.py
in spectator
79 24 28 35 3
meter_id.py
in spectator/meter
53 11 17 32 3
config.py
in spectator
35 4 13 37 5
common_tags.py
in spectator
25 3 11 44 6
new_writer.py
in spectator/writer
29 1 11 38 11
clock.py
in spectator
24 9 9 38 1
file_writer.py
in spectator/writer
28 3 8 29 3
memory_writer.py
in spectator/writer
20 7 7 35 1
noop_writer.py
in spectator/writer
14 3 5 36 3
stopwatch.py
in spectator
14 4 4 29 1
line_buffer.py
in spectator/writer
17 4 4 24 1
gauge.py
in spectator/meter
18 2 4 22 3
dist_summary.py
in spectator/meter
14 2 4 29 2
percentile_timer.py
in spectator/meter
14 2 4 29 2
timer.py
in spectator/meter
14 2 4 29 2
percentile_dist_summary.py
in spectator/meter
14 2 4 29 2
age_gauge.py
in spectator/meter
16 3 4 25 2
counter.py
in spectator/meter
14 2 4 29 2
protocol_parser.py
in spectator
37 2 3 8 2
__init__.py
in spectator/writer
11 3 3 27 1
max_gauge.py
in spectator/meter
13 2 3 23 2
monotonic_counter_uint.py
in spectator/meter
14 2 3 21 2
monotonic_counter.py
in spectator/meter
13 2 3 23 2
__init__.py
in spectator/meter
10 2 2 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...