amazon-connect / amazon-connect-salesforce-scv
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 25 units with 521 lines of code in units (26.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (199 lines of code)
    • 4 simple units (124 lines of code)
    • 19 very simple units (198 lines of code)
0% | 0% | 38% | 23% | 38%
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% | 39% | 24% | 35%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Solutions/AWSSCV-VoicemailExpress/Code0% | 0% | 51% | 30% | 18%
Common/AWSSCV-ContactFlowHelper/Code0% | 0% | 34% | 0% | 65%
Solutions/AWSSCV-AgentEventLogger/Code0% | 0% | 0% | 90% | 10%
Solutions/AWSSCV-CTRLogger/Code0% | 0% | 0% | 53% | 46%
Solutions/AWSSCV-DashboardAlarms/Code0% | 0% | 0% | 0% | 100%
Common/AWSSCV-SalesforceConfig/Code0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def lambda_handler()
in Solutions/AWSSCV-VoicemailExpress/Code/awsscv_vmx_packager/awsscv_vmx_packager.py
170 25 2
def lambda_handler()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
29 11 2
def lambda_handler()
in Solutions/AWSSCV-VoicemailExpress/Code/awsscv_vmx_transcriber/awsscv_vmx_transcriber.py
54 9 2
def lambda_handler()
in Solutions/AWSSCV-AgentEventLogger/Code/awsscv_ae_logger/awsscv_ae_logger.py
18 9 2
def lambda_handler()
in Solutions/AWSSCV-VoicemailExpress/Code/awsscv_vmx_presigner/awsscv_vmx_presigner.py
45 7 2
def lambda_handler()
in Solutions/AWSSCV-CTRLogger/Code/awsscv_ctr_logger/awsscv_ctr_logger.py
7 6 2
def get_secret()
in Solutions/AWSSCV-VoicemailExpress/Code/awsscv_vmx_presigner/awsscv_vmx_presigner.py
37 5 0
def strip_text()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
11 4 1
def lambda_handler()
in Solutions/AWSSCV-DashboardAlarms/Code/awsscv_alarm_to_chatter/awsscv_alarm_to_chatter.py
15 4 2
def format_record()
in Solutions/AWSSCV-DashboardAlarms/Code/awsscv_alarm_to_chatter/awsscv_alarm_to_chatter.py
43 4 1
def lambda_handler()
in Common/AWSSCV-SalesforceConfig/Code/awsscv_salesforce_validator/awsscv_salesforce_validator.py
15 2 2
def split_text()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
18 2 1
def log_to_console()
in Solutions/AWSSCV-CTRLogger/Code/awsscv_ctr_logger/awsscv_ctr_logger.py
2 2 1
def log_to_console()
in Solutions/AWSSCV-AgentEventLogger/Code/awsscv_ae_logger/awsscv_ae_logger.py
2 2 1
def freeform_math()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
3 1 1
def random_number()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
3 1 1
def increment_1()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
3 1 1
def increment_n()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
3 1 1
def random_choice()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
4 1 1
def replace_text()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
4 1 1