aws-solutions / aws-crr-monitor
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 48 units with 1,274 lines of code in units (89.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (672 lines of code)
    • 6 simple units (205 lines of code)
    • 37 very simple units (397 lines of code)
0% | 0% | 52% | 16% | 31%
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% | 52% | 16% | 31%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
CRRMonitor0% | 0% | 85% | 0% | 14%
CRRMonitorHousekeeping0% | 0% | 89% | 0% | 10%
CRRdeployagent0% | 0% | 33% | 49% | 16%
CRRHourlyMaint0% | 0% | 82% | 0% | 17%
CRRMonitorTrailAlarm0% | 0% | 0% | 16% | 83%
solution-helper0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def message_handler()
in source/CRRMonitor/CRRMonitor.py
201 21 1
def queue_handler()
in source/CRRMonitor/CRRMonitor.py
69 16 2
def lambda_handler()
in source/CRRHourlyMaint/CRRHourlyMaint.py
104 13 2
def lambda_handler()
in source/CRRMonitorHousekeeping/CRRMonitorHousekeeping.py
188 12 2
def agent_creator()
in source/CRRdeployagent/CRRdeployagent.py
110 12 5
def agent_deleter()
in source/CRRdeployagent/CRRdeployagent.py
45 10 5
def get_agent_regions()
in source/CRRdeployagent/CRRdeployagent.py
36 8 0
def create_agent()
in source/CRRdeployagent/CRRdeployagent.py
19 8 2
def delete_agent()
in source/CRRdeployagent/CRRdeployagent.py
19 7 2
def wrap_user_handler()
in source/CRRMonitorTrailAlarm/cfn_resource.py
43 6 2
def wrap_user_handler()
in source/CRRdeployagent/cfn_resource.py
43 6 2
def get_buckets()
in source/CRRMonitorTrailAlarm/CRRMonitorTrailAlarm.py
16 5 0
def get_source_buckets()
in source/CRRMonitorTrailAlarm/CRRMonitorTrailAlarm.py
14 5 0
def get_replica_buckets()
in source/CRRdeployagent/CRRdeployagent.py
16 5 1
def connect_clients()
in source/CRRMonitor/CRRMonitor.py
12 4 1
def send_anonymous_usage_metric()
in source/CRRMonitor/CRRMonitor.py
20 4 1
def connect_clients()
in source/CRRMonitorTrailAlarm/CRRMonitorTrailAlarm.py
12 4 1
def connect_clients()
in source/CRRMonitorHousekeeping/CRRMonitorHousekeeping.py
12 4 1
def connect_clients()
in source/CRRHourlyMaint/CRRHourlyMaint.py
12 4 1
def send()
in source/solution-helper/solution-helper.py
23 3 6