File Complexity Overall
  • There are 21 files with units, with 3,877 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 3 complex files (McCabe index sum 126-250; 1,884 lines of code)
    • 2 medium complex files (McCabe index sum 51-125; 515 lines of code)
    • 6 slightly complex files (McCabe index sum 26-50; 996 lines of code)
    • 10 simple files (McCabe index sum 1-25; 482 lines of code)
  • 14 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 48% | 13% | 25% | 12%
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% | 52% | 10% | 27% | 9%
h0% | 0% | 52% | 0% | 47%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 48% | 13% | 25% | 12%
Most Complex Files (Top 21)

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
621 30 240 39 40
559 19 229 41 32
704 15 143 20 23
gate.cpp
in src
369 14 92 25 21
gate.h
in src
146 58 59 40 2
167 2 43 26 42
281 12 37 13 13
term.cpp
in src
192 9 36 19 10
nss.cpp
in src
124 5 34 27 10
125 3 33 26 23
pac.cpp
in src
107 8 29 27 7
82 4 22 27 8
aig.cpp
in src
51 13 14 27 2
90 8 11 12 2
49 2 10 20 9
54 2 9 17 7
term.h
in src
39 7 7 18 1
25 3 6 24 3
49 5 5 10 1
21 3 3 14 1
22 3 3 14 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...