facebook / netconsd
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 112 units with 1,739 lines of code in units (61.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (108 lines of code)
    • 7 medium complex units (419 lines of code)
    • 10 simple units (307 lines of code)
    • 94 very simple units (905 lines of code)
0% | 6% | 24% | 17% | 52%
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% | 6% | 25% | 16% | 51%
h0% | 0% | 0% | 53% | 46%
cc0% | 0% | 0% | 75% | 25%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ncrx0% | 13% | 36% | 20% | 30%
ROOT0% | 0% | 10% | 6% | 82%
util0% | 0% | 27% | 19% | 52%
modules0% | 0% | 0% | 68% | 31%
include0% | 0% | 0% | 53% | 46%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
108 28 2
75 23 2
50 17 4
65 17 3
75 16 2
57 13 5
41 13 3
56 12 3
37 10 2
32 9 2
48 9 2
42 9 2
13 6 1
40 6 2
23 6 1
16 6 4
15 6 3
41 6 1
18 5 2
22 5 2
29 5 2
23 5 3
18 5 3
19 5 1
25 5 2
26 5 2
7 4 1
13 4 1
17 4 1
14 4 1
8 3 2
10 3 2
17 3 2
8 3 2
8 3 1
11 3 1
11 3 2
20 3 2
11 3 1
19 3 3
7 3 1
9 2 1
9 2 2
12 2 1
8 2 1
7 2 1
2 2 1
4 2 4
9 2 2
5 2 2