facebook / facebook-android-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 2,135 units with 19,439 lines of code in units (46.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 29 medium complex units (1,386 lines of code)
    • 112 simple units (3,334 lines of code)
    • 1,994 very simple units (14,719 lines of code)
0% | 0% | 7% | 17% | 75%
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
kt0% | 0% | 7% | 16% | 75%
java0% | 0% | 7% | 17% | 74%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
facebook-core/src/main/java0% | 0% | 9% | 19% | 71%
facebook-share/src/main/java0% | 0% | 16% | 14% | 68%
facebook-common/src/main/java0% | 0% | 3% | 12% | 84%
facebook-applinks/src/main/java0% | 0% | 31% | 30% | 37%
facebook-gamingservices/src/main/java0% | 0% | 2% | 23% | 73%
facebook-login/src/main/java0% | 0% | 0% | 17% | 82%
facebook-bolts/src/main/java0% | 0% | 0% | 11% | 88%
facebook-testutil/src/main/java0% | 0% | 0% | 0% | 100%
facebook-messenger/src/main/java0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
15 23 1
28 22 1
56 20 2
78 18 3
73 17 13
58 16 1
36 15 1
19 14 1
28 14 3
56 14 0
40 14 1
74 14 2
45 14 2
30 13 3
32 13 1
44 13 1
73 13 2
35 12 1
85 12 3
37 12 4
26 12 2
67 12 2
51 11 6
36 11 3
45 11 10
57 11 0
39 11 6
26 11 1
97 11 2
48 10 1
38 10 5
28 10 3
46 10 2
40 10 2
39 10 1
57 10 1
44 10 3
33 10 3
48 10 2
53 10 3
28 9 0
29 9 1
10 9 0
33 9 3
53 9 1
20 9 1
29 9 1
43 9 2
38 9 2
39 9 1