File Complexity Overall
  • There are 27 files with units, with 1,255 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)
    • 1 slightly complex files (McCabe index sum 26-50; 133 lines of code)
    • 26 simple files (McCabe index sum 1-25; 1,122 lines of code)
  • 10 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 10% | 89%
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
cpp0% | 0% | 0% | 18% | 81%
h0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
spectator0% | 0% | 0% | 68% | 31%
libs0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 27)

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
registry.cpp
in spectator
133 24 31 23 4
writer.cpp
in libs/writer/writer_wrapper
138 7 21 15 6
meter_id.cpp
in libs/meter/meter_id
85 8 17 20 4
udp_writer.cpp
in libs/writer/writer_types/src
91 4 15 16 4
uds_writer.cpp
in libs/writer/writer_types/src
90 4 15 17 4
logger.h
in libs/logger
73 8 12 16 2
util.cpp
in libs/utils/src
52 3 11 21 7
config.cpp
in libs/config
62 1 8 13 8
writer_config.cpp
in libs/writer/writer_config
48 1 4 8 4
writer_types.h
in libs/writer/writer_types/include
50 1 4 8 4
memory_writer.cpp
in libs/writer/writer_types/src
25 3 3 12 1
gauge.h
in libs/meter/meter_types/include
24 2 3 13 2
counter.h
in libs/meter/meter_types/include
21 2 3 14 2
percentile_timer.h
in libs/meter/meter_types/include
21 2 3 14 2
timer.h
in libs/meter/meter_types/include
21 2 3 14 2
percentile_dist_summary.h
in libs/meter/meter_types/include
25 2 3 12 2
dist_summary.h
in libs/meter/meter_types/include
21 2 3 14 2
age_gauge.h
in libs/meter/meter_types/include
23 3 3 13 1
monotonic_counter.h
in libs/meter/meter_types/include
18 2 2 11 1
max_gauge.h
in libs/meter/meter_types/include
18 2 2 11 1
monotonic_counter_uint.h
in libs/meter/meter_types/include
18 2 2 11 1
config.h
in libs/config
23 1 1 4 1
writer_test_helper.h
in libs/writer/writer_wrapper
13 1 1 8 1
writer.h
in libs/writer/writer_wrapper
48 1 1 2 1
memory_writer.h
in libs/writer/writer_types/include
20 1 1 5 1
meter.h
in libs/meter/meter_types/include
34 1 1 3 1
registry.h
in spectator
60 1 1 2 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...