File Complexity Overall
  • There are 20 files with units, with 3,121 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)
    • 6 medium complex files (McCabe index sum 51-125; 1,570 lines of code)
    • 7 slightly complex files (McCabe index sum 26-50; 979 lines of code)
    • 7 simple files (McCabe index sum 1-25; 572 lines of code)
system0% | 0% | 50% | 31% | 18%
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% | 50% | 31% | 18%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
G-Lava Moat0% | 0% | 63% | 30% | 6%
H-Score Values0% | 0% | 100% | 0% | 0%
A-A-Skew-ed Reasoning0% | 0% | 0% | 100% | 0%
I-Slot Machine0% | 0% | 0% | 100% | 0%
D-Buggy Rover0% | 0% | 0% | 100% | 0%
J-Stacking Cups0% | 0% | 0% | 100% | 0%
C-Bride of Pipe Stream0% | 0% | 0% | 0% | 100%
E-Delivery Service0% | 0% | 0% | 0% | 100%
K-Treasure Map0% | 0% | 0% | 0% | 100%
F-Herding Cats0% | 0% | 0% | 0% | 100%
L-Walking on Sunshine0% | 0% | 0% | 0% | 100%
B-Blackboard Game0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 20)

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
Submission-6-WA.cpp
in G-Lava Moat
406 21 92 23 16
Submission-7-WA.cpp
in G-Lava Moat
281 1 77 27 77
Submission-9-AC.cpp
in G-Lava Moat
260 5 63 24 54
Submission-4-WA.cpp
in G-Lava Moat
254 1 62 24 62
Submission-5-WA.cpp
in G-Lava Moat
239 7 54 23 41
Submission-1-AC.cpp
in H-Score Values
130 6 52 40 29
Submission-2-WA.cpp
in G-Lava Moat
197 7 50 25 33
Submission-8-WA.cpp
in G-Lava Moat
259 5 49 19 39
Submission-3-WA.cpp
in G-Lava Moat
237 6 48 20 37
Submission-1-AC.cpp
in A-A-Skew-ed Reasoning
91 2 38 42 36
Submission-1-AC.cpp
in I-Slot Machine
69 1 27 39 27
Submission-1-AC.cpp
in J-Stacking Cups
61 2 26 43 23
Submission-1-AC.cpp
in D-Buggy Rover
65 1 26 40 26
Submission-1-AC.cpp
in E-Delivery Service
94 7 23 24 12
Submission-1-AC.cpp
in F-Herding Cats
64 1 22 34 22
Submission-1-AC.cpp
in C-Bride of Pipe Stream
130 2 21 16 15
Submission-1-AC.cpp
in K-Treasure Map
66 1 16 24 16
Submission-1-WA.cpp
in G-Lava Moat
138 6 16 12 5
Submission-1-AC.cpp
in L-Walking on Sunshine
43 1 11 26 11
Submission-1-AC.cpp
in B-Blackboard Game
37 1 3 8 3
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...