Linux / Drivers / Firewire
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 393 units with 7,812 lines of code in units (71.8% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (386 lines of code)
    • 28 medium complex units (1,810 lines of code)
    • 58 simple units (2,073 lines of code)
    • 304 very simple units (3,543 lines of code)
0% | 4% | 23% | 26% | 45%
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
c0% | 4% | 23% | 26% | 45%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 4% | 23% | 26% | 45%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
130 38 1
92 29 10
164 28 2
77 25 2
72 25 1
97 23 2
104 21 2
71 21 2
32 19 2
50 19 5
111 19 1
56 18 3
106 17 6
54 16 2
62 16 2
112 16 3
64 16 3
54 14 3
35 13 6
94 13 2
80 12 6
39 12 4
21 12 2
64 12 5
62 12 1
77 12 1
39 11 6
17 11 2
37 11 2
43 11 4
80 11 1
37 10 4
23 10 3
40 10 2
33 10 2
39 10 1
77 10 4
63 10 4
70 10 1
25 9 5
43 9 10
72 9 1
36 9 2
66 9 10
46 9 3
31 9 2
52 9 2
22 9 3
34 9 2
50 9 1