Linux / Drivers / Isdn
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 140 units with 2,645 lines of code in units (7.8% of code).
    • 1 very complex units (264 lines of code)
    • 1 complex units (190 lines of code)
    • 7 medium complex units (382 lines of code)
    • 12 simple units (484 lines of code)
    • 119 very simple units (1,325 lines of code)
9% | 7% | 14% | 18% | 50%
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
c10% | 7% | 14% | 18% | 49%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
hardware40% | 29% | 0% | 12% | 18%
mISDN0% | 0% | 31% | 15% | 52%
capi0% | 0% | 11% | 22% | 65%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
264 57 6
190 40 6
57 17 2
22 16 1
79 14 1
68 14 2
71 12 3
47 11 2
38 11 1
59 9 2
61 9 2
38 9 1
41 9 3
66 8 1
45 7 1
35 6 2
40 6 1
23 6 1
23 6 5
15 6 4
38 6 1
21 5 3
34 5 2
38 5 1
11 5 1
17 5 2
17 5 1
22 5 1
27 5 5
22 5 1
20 4 2
19 4 1
31 4 1
23 4 1
14 4 1
18 4 2
18 4 2
18 4 2
18 4 2
29 4 2
10 4 2
15 4 1
22 4 1
33 4 1
14 4 1
9 3 2
12 3 2
13 3 1
14 3 1
10 3 2