amazon-connect / video-call-escalation
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 137 units with 2,790 lines of code in units (34.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (293 lines of code)
    • 12 simple units (361 lines of code)
    • 122 very simple units (2,136 lines of code)
0% | 0% | 10% | 12% | 76%
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% | 18% | 16% | 64%
ts0% | 0% | 0% | 6% | 93%
py0% | 0% | 0% | 38% | 61%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
demo-website/src0% | 0% | 21% | 13% | 64%
agent-app/src0% | 0% | 100% | 0% | 0%
cdk-stacks/lib/pipeline0% | 0% | 0% | 76% | 23%
cdk-stacks0% | 0% | 0% | 29% | 71%
cdk-stacks/docker/recording0% | 0% | 0% | 50% | 50%
cdk-stacks/lambdas/custom-resources0% | 0% | 0% | 38% | 61%
agent-app/src/containers0% | 0% | 0% | 100% | 0%
cdk-stacks/lib/api0% | 0% | 0% | 0% | 100%
cdk-stacks/lib/recording0% | 0% | 0% | 0% | 100%
cdk-stacks/lib0% | 0% | 0% | 0% | 100%
cdk-stacks/lib/infrastructure0% | 0% | 0% | 0% | 100%
agent-app/src/hooks0% | 0% | 0% | 0% | 100%
cdk-stacks/lib/frontend0% | 0% | 0% | 0% | 100%
agent-app/src/providers0% | 0% | 0% | 0% | 100%
agent-app/src/components0% | 0% | 0% | 0% | 100%
agent-app/src/utils0% | 0% | 0% | 0% | 100%
cdk-stacks/lambdas/lib0% | 0% | 0% | 0% | 100%
cdk-stacks/lambdas/services0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function App()
in agent-app/src/App.js
87 16 2
setupSubscribeToAttendeeIdPresenceHandler()
in demo-website/src/meeting.js
58 13 0
initEventListeners()
in demo-website/src/meeting.js
148 12 0
updateRoster()
in demo-website/src/meeting.js
39 10 0
def handler()
in cdk-stacks/lambdas/custom-resources/frontend-config/index.py
35 10 2
displayButtonStates()
in demo-website/src/meeting.js
15 9 0
function checkRequiredParameters()
in cdk-stacks/configure.js
10 9 0
async function run()
in cdk-stacks/configure.js
35 9 0
populateDeviceList()
in demo-website/src/meeting.js
29 7 4
populateInMeetingDeviceList()
in demo-website/src/meeting.js
27 7 5
layoutVideoTiles()
in demo-website/src/meeting.js
23 7 0
async function getNearestRegion()
in agent-app/src/containers/MeetingForm/RegionSelection.js
20 6 0
constructor()
in cdk-stacks/lib/pipeline/cdk-pipeline-stack.ts
70 6 3
async function promptForParameters()
in cdk-stacks/configure.js
13 6 0
async function start()
in cdk-stacks/docker/recording/recording-app/src/js/app.js
45 6 0
acquireTileIndex()
in demo-website/src/meeting.js
14 5 1
metricsDidReceive()
in demo-website/src/meeting.js
15 5 1
startAudioPreview()
in demo-website/src/meeting.js
29 5 0
videoTileDidUpdate()
in demo-website/src/meeting.js
23 5 1
visibleTileIndices()
in demo-website/src/meeting.js
20 5 0