facebook / facebook-sdk-for-unity
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 1,351 units with 13,809 lines of code in units (62.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (43 lines of code)
    • 20 medium complex units (939 lines of code)
    • 57 simple units (1,871 lines of code)
    • 1,273 very simple units (10,956 lines of code)
0% | <1% | 6% | 13% | 79%
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
cs0% | <1% | 7% | 12% | 79%
java0% | 0% | 4% | 22% | 72%
mm0% | 0% | 0% | 8% | 91%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Facebook.Unity0% | <1% | 3% | 10% | 85%
Facebook.Unity.Editor0% | 0% | 13% | 19% | 67%
Facebook.Unity.Canvas0% | 0% | 13% | 0% | 86%
facebook-android-wrapper0% | 0% | 4% | 22% | 72%
Facebook.Unity.Windows0% | 0% | 0% | 12% | 87%
UnitySDK0% | 0% | 0% | 8% | 91%
Facebook.Unity.IOS0% | 0% | 0% | 0% | 100%
Facebook.Unity.Settings0% | 0% | 0% | 0% | 100%
Facebook.Unity.Android0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
43 35 2
44 19 1
38 19 2
58 18 0
35 17 3
68 16 0
65 16 0
43 15 4
34 15 0
86 14 2
32 13 0
57 13 0
32 12 3
36 12 0
24 12 1
52 12 0
77 12 0
52 11 4
34 11 1
29 11 1
43 11 10
59 10 1
72 10 0
44 10 0
31 10 1
38 10 0
31 9 0
33 9 0
23 9 1
40 9 0
74 9 0
110 9 11
11 9 2
23 9 1
29 9 10
28 8 2
32 8 1
24 8 1
6 8 1
14 8 1
28 8 6
22 8 1
27 8 1
62 8 1
50 7 2
56 7 8
26 7 4
20 7 0
19 7 2
30 7 1