mapillary / mapillary-python-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 172 units with 1,196 lines of code in units (53.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (146 lines of code)
    • 12 simple units (200 lines of code)
    • 155 very simple units (850 lines of code)
0% | 0% | 12% | 16% | 71%
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
py0% | 0% | 12% | 16% | 71%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/mapillary/utils0% | 0% | 17% | 13% | 68%
src/mapillary/controller0% | 0% | 40% | 14% | 46%
src/mapillary/models/api0% | 0% | 25% | 15% | 58%
src/mapillary/models0% | 0% | 0% | 20% | 79%
scripts0% | 0% | 0% | 100% | 0%
src/mapillary/config/api0% | 0% | 0% | 0% | 100%
src/mapillary0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
30 21 3
40 17 3
37 15 1
16 14 1
23 12 3
18 10 4
26 10 2
52 8 0
12 7 3
6 6 1
9 6 1
12 6 2
11 6 2
7 6 2
22 6 4
11 6 1
14 6 3
13 5 2
10 5 2
12 5 1
9 5 2
15 5 4
15 5 4
12 5 3
5 5 1
6 5 1
6 5 1
10 4 3
7 4 2
11 4 3
10 3 1
7 3 2
5 3 2
8 3 1
28 3 2
6 3 2
6 3 2
4 3 3
6 3 2
7 3 2
9 3 4
2 3 2
4 3 1
6 3 1
12 3 2
19 3 1
7 3 1
7 3 2
14 2 1
9 2 0