aws-samples / amazon-connect-callback-helper
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 27 units with 446 lines of code in units (54.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (17 lines of code)
    • 5 simple units (134 lines of code)
    • 21 very simple units (295 lines of code)
0% | 0% | 3% | 30% | 66%
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% | 3% | 30% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
CBHelper-evaluateCallBack0% | 0% | 10% | 35% | 53%
CBHelper-dial0% | 0% | 0% | 36% | 63%
CBHelper-notify0% | 0% | 0% | 38% | 61%
CBHelper-getAvailableAgents0% | 0% | 0% | 53% | 46%
CBHelper-scheduleCall0% | 0% | 0% | 0% | 100%
CBHelper-startScheduledCalls0% | 0% | 0% | 0% | 100%
CBHelper-removeFromQueue0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def get_allowed_tier()
in CBHelper-evaluateCallBack/lambda_function.py
17 13 5
def lambda_handler()
in CBHelper-evaluateCallBack/lambda_function.py
30 7 2
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 sendNotification()
in CBHelper-notify/lambda_function.py
28 2 5
def lambda_handler()
in CBHelper-scheduleCall/lambda_function.py
16 2 2
def add_to_queue()
in CBHelper-scheduleCall/lambda_function.py
23 2 4
def remove_contactId()
in CBHelper-removeFromQueue/lambda_function.py
13 2 2
def lambda_handler()
in CBHelper-startScheduledCalls/lambda_function.py
11 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 update_contact()
in CBHelper-evaluateCallBack/lambda_function.py
21 2 3
def lambda_handler()
in CBHelper-dial/lambda_function.py
18 2 2
def place_call()
in CBHelper-dial/lambda_function.py
14 2 4
def remove_contactId()
in CBHelper-dial/lambda_function.py
13 2 2
def lambda_handler()
in CBHelper-getAvailableAgents/lambda_function.py
23 1 2
def lambda_handler()
in CBHelper-notify/lambda_function.py
14 1 2
def get_time()
in CBHelper-scheduleCall/lambda_function.py
5 1 1