facebook / fatal
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 665 units with 4,123 lines of code in units (19.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 11 medium complex units (223 lines of code)
    • 18 simple units (394 lines of code)
    • 636 very simple units (3,506 lines of code)
0% | 0% | 5% | 9% | 85%
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
h0% | 0% | 5% | 10% | 84%
cpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
fatal/type0% | 0% | 12% | 11% | 76%
fatal/string0% | 0% | 6% | 9% | 84%
fatal/container0% | 0% | 0% | 5% | 94%
fatal/benchmark0% | 0% | 0% | 32% | 67%
fatal/functional0% | 0% | 0% | 14% | 85%
fatal/debug0% | 0% | 0% | 14% | 85%
fatal/math0% | 0% | 0% | 0% | 100%
fatal/codec0% | 0% | 0% | 0% | 100%
fatal/lesson0% | 0% | 0% | 0% | 100%
fatal/log0% | 0% | 0% | 0% | 100%
fatal/utility0% | 0% | 0% | 0% | 100%
fatal/time0% | 0% | 0% | 0% | 100%
fatal0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
23 20 3
22 19 3
21 18 3
20 17 3
19 16 3
18 15 3
17 14 3
16 13 3
15 12 3
14 11 3
38 11 1
35 10 4
13 10 3
12 9 3
44 8 0
11 8 3
34 7 2
34 7 2
24 7 3
29 7 4
10 7 3
19 7 1
31 7 1
8 7 0
25 7 3
28 6 3
9 6 3
14 6 0
14 6 0
7 5 1
14 5 0
18 5 1
12 5 3
12 5 3
12 5 4
12 5 4
8 5 3
4 5 1
15 5 3
24 5 4
14 5 4
7 5 3
15 5 3
9 5 3
8 5 3
15 5 3
11 5 3
20 5 1
10 5 4
11 5 2