amazon-connect / amazon-connect-salesforce-lambda
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 115 units with 1,770 lines of code in units (51.0% of code).
    • 1 very long units (114 lines of code)
    • 4 long units (255 lines of code)
    • 19 medium size units (610 lines of code)
    • 29 small units (437 lines of code)
    • 62 very small units (354 lines of code)
6% | 14% | 34% | 24% | 20%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py6% | 14% | 34% | 24% | 20%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lambda_functions6% | 14% | 34% | 24% | 20%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def ac_queue_metrics()
in sam-app/lambda_functions/sfRealTimeQueueMetrics.py
114 33 3
def setup_audio_recording()
in sam-app/lambda_functions/sfExecuteAWSService.py
92 6 1
def create_ctr_record()
in sam-app/lambda_functions/sfContactTraceRecord.py
58 11 1
def prepare_record()
in sam-app/lambda_functions/sfRealTimeQueueMetrics.py
53 13 2
def createSalesforceObject()
in sam-app/lambda_functions/sfProcessContactLens.py
52 15 4
def connect_associate_instance_storage_config()
in sam-app/lambda_functions/sfExecuteAWSService.py
47 9 7
def lambda_handler()
in sam-app/lambda_functions/sfProcessTranscriptionResult.py
44 11 2
def processContactLensConversationCharacteristics()
in sam-app/lambda_functions/sfContactLensUtil.py
42 14 3
def lambda_handler()
in sam-app/lambda_functions/sfProcessContactLens.py
40 12 2
def createSalesforceObject()
in sam-app/lambda_functions/sfProcessTranscriptionResult.py
40 12 5
def lambda_handler()
in sam-app/lambda_functions/sfExecuteAWSService.py
39 12 2
def lambda_handler()
in sam-app/lambda_functions/sfInvokeAPI.py
37 13 2
def lambda_handler()
in sam-app/lambda_functions/sfRealTimeQueueMetrics.py
37 8 2
def createChatterPost()
in sam-app/lambda_functions/salesforce.py
33 3 2
def lambda_handler()
in sam-app/lambda_functions/sfSubmitTranscribeJob.py
32 8 2
def processTranscript()
in sam-app/lambda_functions/sfComprehendUtil.py
31 19 1
def retrieve_lambda_parameters()
in sam-app/lambda_functions/sfExecuteAWSService.py
27 1 1
def lambda_handler()
in sam-app/lambda_functions/sfGenerateAudioRecordingStreamingURL.py
27 6 2
def processContactLensTranscript()
in sam-app/lambda_functions/sfContactLensUtil.py
25 2 2
def search()
in sam-app/lambda_functions/sfInvokeAPI.py
22 4 7