File Complexity Overall
  • There are 27 files with units, with 5,629 lines of code.
    • 1 very complex files (McCabe index sum 251+; 1,037 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 1 medium complex files (McCabe index sum 51-125; 318 lines of code)
    • 6 slightly complex files (McCabe index sum 26-50; 946 lines of code)
    • 19 simple files (McCabe index sum 1-25; 3,328 lines of code)
  • 4 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system18% | 0% | 5% | 16% | 59%
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
cpp20% | 0% | 6% | 5% | 66%
h0% | 0% | 0% | 100% | 0%
py0% | 0% | 0% | 81% | 18%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src18% | 0% | 5% | 15% | 60%
tools0% | 0% | 0% | 81% | 18%
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
main.cpp
in src
1037 34 322 31 114
318 14 85 27 25
stats.h
in src
204 21 50 25 10
xfer.h
in src
201 7 48 24 35
data.h
in src
154 8 44 29 18
buddy.cpp
in src
145 15 37 26 7
143 18 34 24 7
99 4 26 26 19
goose.cpp
in src/buddies
182 7 20 11 8
blob.cpp
in src/buddies
196 7 20 10 6
axolotl.cpp
in src/buddies
195 7 19 10 5
robot.cpp
in src/buddies
188 7 19 10 6
snail.cpp
in src/buddies
177 7 18 10 5
octopus.cpp
in src/buddies
192 7 18 9 5
cat.cpp
in src/buddies
181 7 17 9 5
penguin.cpp
in src/buddies
179 7 17 9 5
cactus.cpp
in src/buddies
178 7 17 10 5
dragon.cpp
in src/buddies
205 6 17 8 5
ghost.cpp
in src/buddies
184 7 17 9 5
owl.cpp
in src/buddies
180 7 17 9 5
turtle.cpp
in src/buddies
174 7 17 10 5
rabbit.cpp
in src/buddies
173 7 17 10 5
mushroom.cpp
in src/buddies
173 7 17 10 5
duck.cpp
in src/buddies
178 7 17 10 5
chonk.cpp
in src/buddies
192 5 14 7 6
capybara.cpp
in src/buddies
178 4 10 6 5
23 1 6 26 6
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...