korosuke613 / learnCPP
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 208 units with 2,752 lines of code in units (81.4% of code).
    • 0 very complex units (0 lines of code)
    • 5 complex units (348 lines of code)
    • 21 medium complex units (889 lines of code)
    • 26 simple units (512 lines of code)
    • 156 very simple units (1,003 lines of code)
0% | 12% | 32% | 18% | 36%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 13% | 34% | 20% | 31%
cpp0% | 0% | 0% | 0% | 100%
c0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 13% | 34% | 20% | 31%
src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
87 44 7
88 40 5
68 38 4
51 33 5
54 27 4
32 25 5
42 24 4
40 22 4
93 20 5
42 20 5
61 19 1
40 18 5
62 18 5
24 16 4
31 15 3
58 15 1
42 14 3
43 13 3
63 13 6
21 13 3
31 13 4
29 12 4
29 11 1
24 11 4
59 11 4
23 11 6
18 10 2
33 9 2
22 9 5
31 9 5
20 9 4
10 9 4
10 9 4
14 9 2
14 9 4
18 8 4
18 8 3
21 8 5
47 8 4
18 8 5
16 8 1
25 8 2
14 7 3
8 6 1
9 6 2
42 6 3
14 6 3
39 6 1
10 6 3
9 6 2