amazon-connect / amazon-connect-salesforce-lambda
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 115 units with 1,770 lines of code in units (51.0% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (114 lines of code)
    • 10 medium complex units (436 lines of code)
    • 14 simple units (362 lines of code)
    • 90 very simple units (858 lines of code)
0% | 6% | 24% | 20% | 48%
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% | 6% | 24% | 20% | 48%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lambda_functions0% | 6% | 24% | 20% | 48%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def ac_queue_metrics()
in sam-app/lambda_functions/sfRealTimeQueueMetrics.py
114 33 3
def processTranscript()
in sam-app/lambda_functions/sfComprehendUtil.py
31 19 1
def createSalesforceObject()
in sam-app/lambda_functions/sfProcessContactLens.py
52 15 4
def processContactLensConversationCharacteristics()
in sam-app/lambda_functions/sfContactLensUtil.py
42 14 3
def lambda_handler()
in sam-app/lambda_functions/sfInvokeAPI.py
37 13 2
def prepare_record()
in sam-app/lambda_functions/sfRealTimeQueueMetrics.py
53 13 2
def lambda_handler()
in sam-app/lambda_functions/sfProcessContactLens.py
40 12 2
def lambda_handler()
in sam-app/lambda_functions/sfExecuteAWSService.py
39 12 2
def createSalesforceObject()
in sam-app/lambda_functions/sfProcessTranscriptionResult.py
40 12 5
def lambda_handler()
in sam-app/lambda_functions/sfProcessTranscriptionResult.py
44 11 2
def create_ctr_record()
in sam-app/lambda_functions/sfContactTraceRecord.py
58 11 1
def connect_associate_instance_storage_config()
in sam-app/lambda_functions/sfExecuteAWSService.py
47 9 7
def lambda_handler()
in sam-app/lambda_functions/sfRealTimeQueueMetrics.py
37 8 2
def lambda_handler()
in sam-app/lambda_functions/sfSubmitTranscribeJob.py
32 8 2
def lambda_handler()
in sam-app/lambda_functions/sfGetTranscribeJobStatus.py
18 8 2
def getConnectInstanceIdFromInstanceAlias()
in sam-app/lambda_functions/sfExecuteAWSService.py
13 7 2
def __check_resp__()
in sam-app/lambda_functions/salesforce.py
19 7 1
def analyzeContactSegments()
in sam-app/lambda_functions/sfComprehendUtil.py
15 7 3
def analyzeContactDetail()
in sam-app/lambda_functions/sfComprehendUtil.py
17 7 3
def create()
in sam-app/lambda_functions/sfInvokeAPI.py
7 6 3