github / smimesign
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 187 units with 2,653 lines of code in units (73.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 11 medium complex units (659 lines of code)
    • 19 simple units (544 lines of code)
    • 157 very simple units (1,450 lines of code)
0% | 0% | 24% | 20% | 54%
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
go0% | 0% | 24% | 20% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ietf-cms0% | 0% | 28% | 13% | 58%
ROOT0% | 0% | 35% | 35% | 29%
certstore0% | 0% | 19% | 24% | 55%
fakeca0% | 0% | 0% | 8% | 91%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
85 25 1
62 22 0
84 21 2
88 20 1
73 19 0
57 17 1
58 14 1
31 12 1
31 12 1
37 12 1
53 12 1
55 10 0
20 9 3
32 9 2
42 9 1
37 9 1
25 9 1
19 8 1
36 8 1
37 8 1
47 8 0
33 8 2
20 8 0
20 7 1
31 7 1
24 6 1
21 6 1
19 6 1
14 6 1
12 6 1
18 5 1
16 5 1
11 5 1
19 5 2
9 5 1
17 5 2
28 5 1
28 5 2
18 5 0
40 4 1
18 4 1
14 4 1
12 4 1
15 4 2
15 4 1
16 4 1
13 4 1
10 4 1
11 4 1
13 4 1