facebookincubator / InjKit
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 259 units with 2,554 lines of code in units (71.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (125 lines of code)
    • 24 simple units (781 lines of code)
    • 232 very simple units (1,648 lines of code)
0% | 0% | 4% | 30% | 64%
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
java0% | 0% | 4% | 30% | 64%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
CommandLineClient/src/main/java/com/facebook/ads/injkit/cli0% | 0% | 50% | 0% | 50%
TransformCore/src/main/java/com/facebook/ads/injkit/crashshield0% | 0% | 8% | 36% | 54%
TransformCore/src/main/java/com/facebook/ads/injkit/benchmark0% | 0% | 7% | 50% | 41%
TransformCore/src/main/java/com/facebook/ads/injkit0% | 0% | 0% | 27% | 72%
TransformCore/src/main/java/com/facebook/ads/injkit/threadcheck0% | 0% | 0% | 50% | 49%
TransformCore/src/main/java/com/facebook/ads/injkit/sdkdebugger0% | 0% | 0% | 20% | 79%
TransformCore/src/main/java/com/facebook/ads/injkit/model0% | 0% | 0% | 4% | 95%
GradlePlugin/src/main/java/com/facebook/ads/injkit/gradle0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
45 15 2
47 13 1
33 12 2
41 10 2
33 10 1
31 9 0
45 8 2
30 8 2
34 8 3
37 8 2
29 8 2
42 7 4
18 7 1
17 7 1
21 7 2
20 7 3
25 7 2
122 6 4
40 6 0
22 6 2
20 6 5
11 6 3
31 6 3
37 6 2
17 6 2
23 6 2
35 6 2
49 5 2
29 5 1
12 5 2
27 5 2
14 5 2
19 5 2
16 5 1
29 5 2
9 5 3
23 5 0
22 4 3
21 4 3
16 4 2
9 4 1
16 4 3
12 4 2
12 4 2
23 4 3
11 4 1
16 4 2
8 4 2
16 3 2
9 3 1