aws-samples / amazon-connect-callback-helper
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 27 units with 446 lines of code in units (54.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 10 medium size units (253 lines of code)
    • 11 small units (156 lines of code)
    • 6 very small units (37 lines of code)
0% | 0% | 56% | 34% | 8%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 56% | 34% | 8%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
CBHelper-evaluateCallBack0% | 0% | 63% | 36% | 0%
CBHelper-notify0% | 0% | 79% | 20% | 0%
CBHelper-getAvailableAgents0% | 0% | 100% | 0% | 0%
CBHelper-dial0% | 0% | 36% | 63% | 0%
CBHelper-scheduleCall0% | 0% | 45% | 31% | 23%
CBHelper-removeFromQueue0% | 0% | 0% | 65% | 35%
CBHelper-startScheduledCalls0% | 0% | 0% | 37% | 62%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def lambda_handler()
in CBHelper-evaluateCallBack/lambda_function.py
30 7 2
def sendNotification()
in CBHelper-notify/lambda_function.py
28 2 5
def get_config()
in CBHelper-getAvailableAgents/lambda_function.py
26 6 1
def get_config()
in CBHelper-notify/lambda_function.py
26 6 1
def get_config()
in CBHelper-evaluateCallBack/lambda_function.py
26 6 1
def get_config()
in CBHelper-dial/lambda_function.py
26 6 1
def get_queued_contacts()
in CBHelper-evaluateCallBack/lambda_function.py
24 1 2
def lambda_handler()
in CBHelper-getAvailableAgents/lambda_function.py
23 1 2
def add_to_queue()
in CBHelper-scheduleCall/lambda_function.py
23 2 4
def update_contact()
in CBHelper-evaluateCallBack/lambda_function.py
21 2 3
def lambda_handler()
in CBHelper-dial/lambda_function.py
18 2 2
def get_allowed_tier()
in CBHelper-evaluateCallBack/lambda_function.py
17 13 5
def lambda_handler()
in CBHelper-scheduleCall/lambda_function.py
16 2 2
def lambda_handler()
in CBHelper-notify/lambda_function.py
14 1 2
def get_closing_time()
in CBHelper-evaluateCallBack/lambda_function.py
14 1 2
def place_call()
in CBHelper-dial/lambda_function.py
14 2 4
def remove_contactId()
in CBHelper-removeFromQueue/lambda_function.py
13 2 2
def remove_contactId()
in CBHelper-evaluateCallBack/lambda_function.py
13 2 2
def phone_lookup()
in CBHelper-evaluateCallBack/lambda_function.py
13 2 2
def remove_contactId()
in CBHelper-dial/lambda_function.py
13 2 2