facebook / Recipes-for-AutoPkg
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 54 units with 1,602 lines of code in units (45.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (211 lines of code)
    • 15 simple units (786 lines of code)
    • 35 very simple units (605 lines of code)
0% | 0% | 13% | 49% | 37%
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% | 0% | 13% | 49% | 37%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Xcode0% | 0% | 26% | 29% | 43%
android_sdk0% | 0% | 54% | 18% | 26%
Chef_Processors0% | 0% | 0% | 82% | 17%
Duo0% | 0% | 0% | 64% | 35%
Shared_Processors0% | 0% | 0% | 13% | 86%
AdoptOpenJDK0% | 0% | 0% | 0% | 100%
SQLDeveloper0% | 0% | 0% | 0% | 100%
Acrolinx0% | 0% | 0% | 0% | 100%
Intellij0% | 0% | 0% | 0% | 100%
Mosh0% | 0% | 0% | 0% | 100%
LobbyVideo0% | 0% | 0% | 0% | 100%
android_ndk0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
82 18 6
53 13 1
31 12 6
45 12 1
77 10 1
21 9 1
26 7 1
18 7 2
27 7 1
16 6 2
85 6 1
79 6 1
79 6 1
79 6 1
79 6 1
79 6 1
79 6 1
15 6 1
27 6 1
29 5 1
25 5 1
20 4 1
18 4 1
19 4 1
14 4 1
12 4 2
33 4 1
10 3 4
68 3 1
18 3 1
28 3 1
13 3 1
12 3 1
15 3 1
16 2 1
23 2 2
14 2 1
17 2 1
8 2 1
12 2 1
10 2 1
46 2 1
13 2 1
47 2 1
10 2 1
12 2 1
11 2 1
5 1 2
3 1 2
2 1 2