aws-solutions / aws-media-services-application-mapper
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 695 units with 10,132 lines of code in units (83.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (171 lines of code)
    • 21 medium complex units (1,311 lines of code)
    • 47 simple units (1,560 lines of code)
    • 626 very simple units (7,090 lines of code)
0% | 1% | 12% | 15% | 69%
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
js0% | 2% | 6% | 9% | 81%
py0% | 0% | 28% | 32% | 39%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/html/js/app0% | 2% | 6% | 9% | 81%
source/msam/chalicelib0% | 0% | 28% | 35% | 36%
source/events0% | 0% | 60% | 0% | 39%
source/msam/db0% | 0% | 44% | 0% | 55%
source/tools0% | 0% | 44% | 55% | 0%
source/web-cloudformation0% | 0% | 0% | 40% | 59%
source/msam0% | 0% | 0% | 0% | 100%
deployment0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function()
in source/html/js/app/ui/event_alert_indicators.js
171 50 5
def process_ssm_run_command()
in source/msam/chalicelib/periodic.py
71 24 1
def lambda_handler()
in source/events/media_events.py
71 20 2
def mediaconnect_flow_medialive_input_ddb_items()
in source/msam/chalicelib/connections.py
54 18 0
def ssm_run_command()
in source/msam/chalicelib/periodic.py
98 18 0
def medialive_channel_mediapackage_channel_ddb_items()
in source/msam/chalicelib/connections.py
66 17 0
_onEnter: function()
in source/html/js/app/ui/diagram_statemachine_factory.js
82 17 0
var updateAlarmState = function()
in source/html/js/app/ui/alarm_indicators.js
52 16 2
function()
in source/html/js/app/ui/tile_view.js
129 15 12
function()
in source/html/js/app/ui/user_defined.js
167 15 5
def incoming_cloudwatch_alarm()
in source/msam/chalicelib/cloudwatch.py
50 14 2
var display_selected_nodes = function()
in source/html/js/app/ui/selected_item_view.js
68 14 2
47 13 0
def medialive_channel_mediaconnect_flow_ddb_items()
in source/msam/chalicelib/connections.py
34 13 0
def update_diagrams()
in source/msam/chalicelib/tags.py
45 13 0
def get_cloudwatch_events_state_groups()
in source/msam/chalicelib/cloudwatch.py
42 12 1
def update_regional_ddb_items()
in source/msam/chalicelib/nodes.py
56 12 1
def delete_disconnected()
in source/tools/delete_disconnected.py
21 11 0
def make_default_settings()
in source/msam/db/lambda_function.py
49 11 1
def mediaconnect_flow_mediaconnect_flow_ddb_items()
in source/msam/chalicelib/connections.py
46 11 0