aws-samples / aws-augmentability
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 78 units with 923 lines of code in units (36.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (179 lines of code)
    • 2 simple units (29 lines of code)
    • 74 very simple units (715 lines of code)
0% | 0% | 19% | 3% | 77%
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
js0% | 0% | 19% | 3% | 77%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib0% | 0% | 19% | 3% | 77%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
153 16 1
exports.createPresignedURL = function()
in lib/aws-signature-v4.js
26 13 6
selectCamera()
in lib/webcam-easy.js
11 6 0
18 6 1
function speakText()
in lib/main.js
32 5 0
37 5 0
13 4 2
$()
in lib/main.js
24 4 1
12 4 1
export function pcmEncode()
in lib/audioUtils.js
10 3 1
constructor()
in lib/webcam-easy.js
11 3 4
getVideoInputs()
in lib/webcam-easy.js
12 3 1
$()
in lib/main.js
4 3 1
5 3 0
8 3 0
24 3 0
function()
in lib/main.js
17 3 1
12 3 0
22 3 1
25 3 2