facebookincubator / Facebook-Pixel-for-Wordpress
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 237 units with 2,921 lines of code in units (48.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (236 lines of code)
    • 12 simple units (304 lines of code)
    • 221 very simple units (2,381 lines of code)
0% | 0% | 8% | 10% | 81%
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
php0% | 0% | 8% | 10% | 80%
js0% | 0% | 0% | 8% | 91%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
core0% | 0% | 13% | 11% | 74%
integration0% | 0% | 4% | 10% | 84%
js/lib0% | 0% | 0% | 8% | 91%
task0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
122 21 5
45 13 1
35 13 2
34 11 0
54 8 0
16 7 1
19 7 0
31 7 1
22 7 1
18 7 4
22 7 1
33 7 3
26 7 2
19 7 2
22 6 2
22 6 0
23 5 0
30 5 0
30 5 0
21 5 1
22 5 1
21 5 0
13 5 0
8 5 1
35 5 4
16 5 4
23 5 2
12 5 1
17 5 2
11 5 3
11 5 3
16 4 0
21 4 0
19 4 2
17 4 2
15 4 3
20 4 2
20 4 3
11 4 3
11 4 2
11 4 1
11 4 1
10 4 1
18 4 1
22 4 1
22 4 1
21 4 0
29 4 1
9 4 1
13 4 1