facebook / sapp
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 3,803 units with 10,647 lines of code in units (46.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (119 lines of code)
    • 7 medium complex units (268 lines of code)
    • 32 simple units (1,103 lines of code)
    • 3,763 very simple units (9,157 lines of code)
0% | 1% | 2% | 10% | 86%
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% | 2% | 4% | 17% | 74%
js0% | 0% | 5% | 29% | 65%
pyi0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
sapp/ui0% | 7% | 1% | 18% | 71%
sapp/pipeline0% | 0% | 9% | 14% | 76%
sapp0% | 0% | 5% | 19% | 75%
sapp/ui/frontend0% | 0% | 5% | 29% | 65%
stubs/sqlalchemy/sql0% | 0% | 0% | 0% | 100%
stubs/sqlalchemy/orm0% | 0% | 0% | 0% | 100%
stubs/sqlalchemy/dialects0% | 0% | 0% | 0% | 100%
stubs/sqlalchemy/engine0% | 0% | 0% | 0% | 100%
stubs/sqlalchemy/ext0% | 0% | 0% | 0% | 100%
stubs/sqlalchemy/util0% | 0% | 0% | 0% | 100%
stubs/sqlalchemy0% | 0% | 0% | 0% | 100%
stubs/sqlalchemy/event0% | 0% | 0% | 0% | 100%
sapp/extensions0% | 0% | 0% | 0% | 100%
stubs/pygments0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
stubs/sqlalchemy/connectors0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
119 36 2
24 20 2
25 17 2
37 15 5
48 14 3
47 14 3
61 11 1
26 11 2
30 10 2
117 10 1
37 9 1
24 9 3
26 9 2
29 9 2
146 8 1
33 8 2
26 7 3
27 7 0
22 7 1
22 7 2
56 7 1
13 7 2
37 7 2
17 7 2
17 7 3
26 6 1
32 6 1
18 6 2
23 6 1
84 6 1
13 6 1
41 6 2
18 6 1
14 6 2
43 6 2
13 6 1
14 6 2
9 6 1
61 6 3
15 6 2
48 5 0
10 5 1
22 5 1
10 5 1
29 5 2
12 5 2
23 5 3
14 5 4
28 5 2
11 5 2