facebook / facebook-ios-sdk
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,160 units with 42,613 lines of code in units (42.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (300 lines of code)
    • 10 simple units (372 lines of code)
    • 3,148 very simple units (41,941 lines of code)
0% | 0% | <1% | <1% | 98%
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
swift0% | 0% | <1% | <1% | 98%
py0% | 0% | 29% | 34% | 35%
hpp0% | 0% | 0% | 10% | 89%
m0% | 0% | 0% | 4% | 95%
h0% | 0% | 0% | 0% | 100%
rb0% | 0% | 0% | 0% | 100%
mm0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
FBSDKCoreKit0% | 0% | <1% | <1% | 98%
scripts0% | 0% | 20% | 23% | 55%
FBSDKLoginKit0% | 0% | 0% | 3% | 96%
FBSDKGamingServicesKit0% | 0% | 0% | 2% | 97%
FBAEMKit0% | 0% | 0% | <1% | 99%
FBSDKShareKit0% | 0% | 0% | 0% | 100%
FBSDKCoreKit_Basics0% | 0% | 0% | 0% | 100%
testing0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
FBSDKTVOSKit0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
45 14 0
255 12 23
40 10 0
13 9 1
116 7 4
32 6 2
14 6 2
18 6 3
28 6 0
22 6 2
77 6 3
12 6 2
22 5 2
17 5 2
10 5 1
16 5 0
6 4 1
19 4 1
17 4 1
13 4 2
39 4 0
16 4 0
22 4 0
16 4 0
17 4 0
45 4 0
47 4 0
25 4 5
9 4 0
30 4 1
37 4 0
32 4 2
16 4 0
18 4 0
17 4 0
17 4 0
15 4 0
18 4 0
19 4 0
18 4 0
19 4 0
16 4 0
16 4 0
18 4 0
19 4 0
18 4 0
19 4 0
15 4 0
13 3 2
13 3 3