aws-solutions / aws-media-insights-engine
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 230 units with 6,301 lines of code in units (51.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (142 lines of code)
    • 28 medium complex units (2,139 lines of code)
    • 36 simple units (1,612 lines of code)
    • 165 very simple units (2,408 lines of code)
0% | 2% | 33% | 25% | 38%
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% | 2% | 33% | 25% | 38%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/operators0% | 4% | 39% | 28% | 27%
source/workflowapi0% | 0% | 28% | 6% | 64%
source/dataplaneapi0% | 0% | 42% | 21% | 35%
source/workflow0% | 0% | 22% | 40% | 37%
source/dataplanestream0% | 0% | 0% | 94% | 5%
source/workflowstream0% | 0% | 0% | 100% | 0%
source/anonymous-data-logger0% | 0% | 0% | 47% | 52%
source/lib0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def lambda_handler()
in source/operators/transcribe/start_transcribe.py
142 36 2
def create_operation()
in source/workflowapi/app.py
90 25 1
def get_asset_metadata()
in source/dataplaneapi/app.py
99 24 1
def put_asset_metadata()
in source/dataplaneapi/app.py
138 21 1
def TranscribeToWebCaptions()
in source/operators/captions/webcaptions.py
55 20 2
def lambda_handler()
in source/operators/translate/start_translate.py
116 20 2
def workflow_scheduler_lambda()
in source/workflow/app.py
64 19 2
def TranslateWebCaptions()
in source/operators/captions/webcaptions.py
83 18 6
def check_translate_webcaptions()
in source/operators/captions/webcaptions.py
102 17 2
def lambda_handler()
in source/operators/mediainfo/mediainfo.py
74 17 2
def build_workflow()
in source/workflowapi/app.py
55 17 1
def get_asset_metadata_operator()
in source/dataplaneapi/app.py
70 14 2
def workflow_error_handler_lambda()
in source/workflow/app.py
33 14 2
def lambda_handler()
in source/operators/rekognition/generic_data_lookup.py
73 13 2
def lambda_handler()
in source/operators/transcribe/get_transcribe.py
77 12 2
def lambda_handler()
in source/operators/comprehend/entities/get_entity_detection.py
69 12 2
def lambda_handler()
in source/operators/comprehend/key_phrases/get_key_phrases.py
69 12 2
def create_stage()
in source/workflowapi/app.py
67 12 1
def lambda_handler()
in source/operators/rekognition/check_shot_detection_status.py
76 11 2
def lambda_handler()
in source/operators/rekognition/check_person_tracking_status.py
76 11 2