Linux / Crypto
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 1,886 units with 33,078 lines of code in units (39.9% of code).
    • 2 very complex units (1,415 lines of code)
    • 10 complex units (1,200 lines of code)
    • 73 medium complex units (4,948 lines of code)
    • 156 simple units (5,749 lines of code)
    • 1,645 very simple units (19,766 lines of code)
4% | 3% | 14% | 17% | 59%
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
c4% | 3% | 14% | 17% | 59%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT4% | 3% | 12% | 15% | 62%
asymmetric_keys0% | 2% | 35% | 28% | 34%
async_tx0% | 0% | 0% | 53% | 46%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
1253 291 5
162 64 6
146 45 6
172 39 9
132 33 6
114 30 2
80 28 4
128 28 4
149 28 2
67 27 5
133 27 7
79 26 3
149 25 8
145 25 6
119 24 4
76 24 1
59 23 4
90 22 2
67 22 2
115 21 3
64 20 5
87 20 3
83 19 3
149 19 2
57 19 1
40 18 1
65 18 1
75 17 5
62 17 5
61 17 5
107 17 7
65 17 1
69 17 4
63 16 2
60 16 3
74 16 4
58 16 4
97 16 6
88 16 1
73 16 4
144 16 5
57 16 2
54 15 1
72 15 2
79 15 2
57 15 2
112 15 3
77 15 3
82 15 2
78 14 3