facebook / stetho
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,500 units with 11,618 lines of code in units (65.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 16 medium complex units (761 lines of code)
    • 54 simple units (1,520 lines of code)
    • 1,430 very simple units (9,337 lines of code)
0% | 0% | 6% | 13% | 80%
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% | 6% | 13% | 80%
js0% | 0% | 22% | 0% | 77%
py0% | 0% | 0% | 23% | 76%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
stetho/src/main0% | 0% | 6% | 14% | 79%
stetho-okhttp3/src/main0% | 0% | 38% | 0% | 61%
stetho-okhttp/src/main0% | 0% | 38% | 0% | 61%
build-tools0% | 0% | 22% | 0% | 77%
stetho-sample/src/main0% | 0% | 0% | 7% | 92%
scripts0% | 0% | 0% | 23% | 76%
stetho-timber/src/main0% | 0% | 0% | 100% | 0%
stetho-sample/src/debug0% | 0% | 0% | 12% | 87%
stetho-urlconnection/src/main0% | 0% | 0% | 0% | 100%
stetho-js-rhino/src/main0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
62 24 2
79 23 1
43 21 2
35 14 2
79 14 1
47 14 2
55 12 5
41 12 1
56 11 1
56 11 1
33 11 2
43 11 1
30 11 5
35 11 1
37 11 1
30 11 2
36 10 1
73 10 3
45 10 1
44 10 0
26 10 2
27 10 3
29 9 2
26 9 1
28 9 1
17 9 2
11 9 1
30 8 4
30 8 2
53 8 2
32 8 1
24 8 1
27 8 2
28 8 1
35 8 1
27 8 5
42 7 5
21 7 3
23 7 1
36 7 3
24 7 3
39 7 0
26 7 2
25 7 0
20 7 1
16 7 1
25 7 1
13 7 1
27 7 2
31 7 2