facebook / wdt
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 723 units with 10,015 lines of code in units (65.1% of code).
    • 0 very complex units (0 lines of code)
    • 4 complex units (648 lines of code)
    • 27 medium complex units (1,785 lines of code)
    • 68 simple units (2,273 lines of code)
    • 624 very simple units (5,309 lines of code)
0% | 6% | 17% | 22% | 53%
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
cpp0% | 6% | 19% | 24% | 49%
h0% | 0% | 0% | 4% | 95%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 8% | 19% | 18% | 53%
util0% | 4% | 15% | 28% | 51%
bench0% | 0% | 27% | 14% | 58%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
233 41 0
183 36 2
133 32 0
99 26 3
91 20 1
111 20 0
119 19 0
82 17 0
84 15 0
78 15 2
39 15 5
117 15 2
90 14 0
82 14 2
50 14 4
48 14 5
86 13 2
76 13 0
16 13 1
72 13 0
33 12 2
63 12 1
36 12 1
66 12 3
73 11 0
57 11 2
44 11 4
63 11 0
27 11 5
28 11 5
54 11 0
38 10 2
39 10 2
54 10 2
27 10 5
25 10 5
38 10 0
48 9 0
38 9 2
43 9 2
23 9 1
60 9 1
48 9 2
52 9 0
53 9 0
31 8 3
39 8 1
42 8 2
41 8 2
12 8 0