whatsapp / stickers
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 224 units with 2,687 lines of code in units (27.7% of code).
    • 0 very complex units (0 lines of code)
    • 4 complex units (333 lines of code)
    • 9 medium complex units (456 lines of code)
    • 16 simple units (324 lines of code)
    • 195 very simple units (1,574 lines of code)
0% | 12% | 16% | 12% | 58%
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
m0% | 28% | 32% | 14% | 24%
java0% | 5% | 11% | 13% | 69%
h0% | 0% | 0% | 16% | 83%
swift0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
iOS/WAStickersThirdParty0% | 20% | 23% | 9% | 46%
Android/app/src/main/java/com0% | 5% | 11% | 13% | 69%
iOS/WebP.framework/Headers0% | 0% | 0% | 23% | 76%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
101 32 5
70 32 2
98 29 3
64 26 4
57 23 5
83 23 1
54 22 4
56 22 1
40 18 3
41 17 2
35 13 4
51 12 3
39 11 1
37 10 3
33 9 3
13 9 1
13 9 1
13 9 1
29 9 1
22 8 2
32 8 1
20 7 4
11 6 2
5 6 1
24 6 1
22 6 2
18 6 3
15 6 0
17 6 1
18 5 8
18 5 7
8 5 1
28 5 2
33 5 1
12 5 2
20 5 3
36 5 1
4 4 1
29 4 1
16 4 1
30 4 2
12 4 1
10 4 4
9 4 1
12 4 1
16 4 2
18 4 2
12 4 4
16 4 0
13 4 5