amazon-connect / voicemail-for-amazon-connect
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 284 units with 3,655 lines of code in units (47.7% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (33 lines of code)
    • 4 medium complex units (293 lines of code)
    • 17 simple units (527 lines of code)
    • 262 very simple units (2,802 lines of code)
0% | <1% | 8% | 14% | 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
ts0% | 18% | 0% | 10% | 70%
py0% | 0% | 87% | 8% | 4%
js0% | 0% | 3% | 16% | 79%
java0% | 0% | 0% | 5% | 94%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-connect-vm-portal/src0% | 4% | 0% | 25% | 70%
tools0% | 0% | 89% | 8% | 2%
aws-connect-vm-serverless/src0% | 0% | 4% | 11% | 84%
aws-connect-vm-serverless/tools0% | 0% | 0% | 100% | 0%
aws-connect-vm-portal/scripts0% | 0% | 0% | 8% | 91%
solutionVariants/DID0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function sortAgents()
in source/aws-connect-vm-portal/src/store/reducers/agents.reducer.ts
33 29 4
def transform_template()
in source/tools/transform.py
167 22 4
_validateAgentUpdate()
in source/aws-connect-vm-serverless/src/service/connect-agent.service.js
45 16 2
def get_content_type_by_name()
in source/tools/host_files.py
24 12 1
let uploadFile = function()
in source/aws-connect-vm-serverless/src/handler/solution-helper.js
57 12 12
deliver()
in source/aws-connect-vm-serverless/src/service/notification.service.js
34 10 3
render()
in source/aws-connect-vm-portal/src/agents/AgentSettings.js
87 9 0
public static ByteBuffer getByteBufferFromStream()
in source/aws-connect-vm-serverless/src/main/java/com/amazonaws/kvstream/KVSUtils.java
31 9 4
function registerValidSW()
in source/aws-connect-vm-portal/src/serviceWorker.js
33 8 2
static fromBasicAgent()
in source/aws-connect-vm-portal/src/dto/agent.dto.ts
19 8 1
updateAgentById()
in source/aws-connect-vm-serverless/src/repo/users-repo.js
27 8 7
render()
in source/aws-connect-vm-portal/src/global-settings/GlobalSettings.js
54 7 0
getContentTypeByFileName()
in source/aws-connect-vm-portal/scripts/uploader.js
17 7 1
function AuthPolicy()
in source/aws-connect-vm-serverless/src/lib/auth/auth-policy.js
23 7 3
let addMethod = function()
in source/aws-connect-vm-serverless/src/lib/auth/auth-policy.js
30 7 4
let getStatementsForEffect = function()
in source/aws-connect-vm-serverless/src/lib/auth/auth-policy.js
21 7 2
def upload_files()
in source/tools/host_files.py
18 6 3
function processStandardInput()
in source/aws-connect-vm-serverless/tools/process-stdin.js
24 6 1
function Error()
in source/aws-connect-vm-serverless/src/lib/responder.js
30 6 4
verifyKey()
in source/aws-connect-vm-serverless/src/service/auth.service.js
40 6 3