Linux / Drivers / Pcmcia
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 609 units with 11,990 lines of code in units (72.4% of code).
    • 0 very complex units (0 lines of code)
    • 12 complex units (1,009 lines of code)
    • 76 medium complex units (4,071 lines of code)
    • 77 simple units (2,263 lines of code)
    • 444 very simple units (4,647 lines of code)
0% | 8% | 33% | 18% | 38%
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% | 7% | 34% | 19% | 38%
h0% | 18% | 29% | 9% | 42%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 8% | 33% | 18% | 38%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
93 39 2
80 38 2
113 36 1
71 34 2
106 32 2
100 31 3
72 29 2
62 28 2
119 28 1
56 27 1
66 26 1
71 26 2
81 24 1
69 24 3
62 23 1
100 22 2
81 22 1
107 21 1
68 20 3
52 20 2
76 19 2
62 19 2
70 19 6
54 18 1
35 18 2
49 18 2
30 18 2
48 18 5
60 18 2
84 18 1
52 18 2
65 17 2
78 17 2
46 17 2
36 17 1
54 17 2
48 17 2
58 17 6
70 17 3
25 17 2
108 16 1
40 16 2
37 16 2
96 16 2
38 16 1
73 16 1
47 15 2
40 15 2
28 15 2
54 15 2