amazon-connect / amazon-connect-streams
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,523 units with 17,931 lines of code in units (77.9% of code).
    • 4 very complex units (1,272 lines of code)
    • 5 complex units (407 lines of code)
    • 53 medium complex units (2,474 lines of code)
    • 138 simple units (3,292 lines of code)
    • 1,323 very simple units (10,486 lines of code)
7% | 2% | 13% | 18% | 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
js7% | 2% | 13% | 18% | 58%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src7% | 2% | 14% | 18% | 57%
src/mediaControllers0% | 0% | 0% | 13% | 86%
src/agent-app0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
718 211 2
195 101 1
visit: function()
in src/aws-client.js
209 61 2
150 58 3
function formatValue()
in src/aws-client.js
80 31 3
48 31 2
44 30 0
152 28 2
success: function()
in src/api.js
83 26 1
function utf8Slice()
in src/aws-client.js
66 24 3
65 22 1
function byteLength()
in src/aws-client.js
40 22 2
function slowToString()
in src/aws-client.js
46 22 3
function utf8ToBytes()
in src/aws-client.js
60 22 2
led: function()
in src/aws-client.js
78 22 2
function v1()
in src/aws-client.js
62 22 3
error: function error()
in src/aws-client.js
29 21 2
64 21 2
nud: function()
in src/aws-client.js
74 21 1
54 21 1