instagram / ig-json-parser
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 255 units with 2,980 lines of code in units (55.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 11 medium complex units (932 lines of code)
    • 14 simple units (394 lines of code)
    • 230 very simple units (1,654 lines of code)
0% | 0% | 31% | 13% | 55%
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% | 31% | 13% | 54%
kt0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
processor/src/main0% | 0% | 46% | 13% | 40%
util/src/main0% | 0% | 40% | 7% | 51%
javawriter/src/main0% | 0% | 8% | 20% | 70%
util/testprocessor/src0% | 0% | 0% | 11% | 88%
processor/testuut/parent0% | 0% | 0% | 0% | 100%
processor/testuut/src0% | 0% | 0% | 0% | 100%
processor/testuut/kotlin0% | 0% | 0% | 0% | 100%
processor/support/src0% | 0% | 0% | 0% | 100%
processor/testuut/strict0% | 0% | 0% | 0% | 100%
common/src/main0% | 0% | 0% | 0% | 100%
jitpack-example/src/main0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
87 22 4
49 21 2
172 19 2
244 16 1
104 16 1
71 14 1
20 12 1
20 12 1
82 12 1
35 11 1
48 11 5
46 10 2
38 10 1
10 10 1
34 9 1
51 9 2
21 7 1
45 7 2
33 7 3
24 7 1
27 6 1
15 6 1
21 6 3
15 6 1
14 6 1
32 5 5
7 5 1
25 5 3
28 5 3
31 5 2
33 5 5
26 4 2
24 4 1
34 4 2
17 4 1
17 4 1
15 4 1
15 4 1
11 4 2
24 4 1
10 4 0
18 4 2
16 4 1
26 4 0
6 4 1
6 4 2
6 4 1
29 3 1
14 3 1
28 3 1