facebook / Ax
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 2,173 units with 14,224 lines of code in units (29.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (68 lines of code)
    • 16 medium complex units (747 lines of code)
    • 77 simple units (1,768 lines of code)
    • 2,079 very simple units (11,641 lines of code)
0% | <1% | 5% | 12% | 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
py0% | <1% | 5% | 11% | 82%
js0% | 0% | 0% | 28% | 71%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ax/service0% | 5% | 6% | 12% | 75%
ax/storage0% | 0% | 13% | 2% | 83%
ax/plot0% | 0% | 12% | 24% | 63%
ax/modelbridge0% | 0% | 6% | 13% | 79%
ax/utils0% | 0% | 5% | 10% | 83%
scripts0% | 0% | 14% | 6% | 79%
ax/core0% | 0% | <1% | 16% | 82%
ax/models0% | 0% | 0% | 4% | 95%
ax/benchmark0% | 0% | 0% | 30% | 69%
ax/metrics0% | 0% | 0% | 12% | 87%
ax/early_stopping0% | 0% | 0% | 31% | 68%
ax/benchmark20% | 0% | 0% | 30% | 69%
ax/global_stopping0% | 0% | 0% | 58% | 41%
website/core0% | 0% | 0% | 0% | 100%
ax/runners0% | 0% | 0% | 0% | 100%
ax/exceptions0% | 0% | 0% | 0% | 100%
website/pages0% | 0% | 0% | 0% | 100%
website/static0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
68 27 2
157 24 1
83 21 3
43 18 2
37 14 2
36 13 2
62 13 1
28 13 2
45 13 2
24 12 2
17 12 1
67 12 2
28 12 1
36 11 3
18 11 2
20 11 2
46 11 1
18 10 2
29 10 2
13 10 2
50 10 1
15 10 2
22 10 3
46 10 2
27 9 2
31 9 1
12 9 1
13 9 1
26 9 3
28 9 2
14 8 2
19 8 1
17 8 1
29 8 1
39 8 1
27 8 3
30 8 2
25 8 2
20 8 2
17 8 3
15 8 1
152 8 12
12 8 1
19 8 2
38 8 3
10 8 2
20 8 2
30 7 1
24 7 1
33 7 1