aws-solutions / video-on-demand-on-aws
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 18 units with 159 lines of code in units (4.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (40 lines of code)
    • 17 very simple units (119 lines of code)
0% | 0% | 0% | 25% | 74%
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% | 0% | 30% | 69%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/mediainfo0% | 0% | 0% | 30% | 69%
source/input-validate0% | 0% | 0% | 0% | 100%
source/custom-resource0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 18 most complex units
Unit# linesMcCabe index# params
def lambda_handler()
in source/mediainfo/lambda_function.py
40 7 2
def parse_common_attributes()
in source/mediainfo/lambda_function.py
16 5 1
def parse_number()
in source/mediainfo/lambda_function.py
7 3 1
def compact()
in source/mediainfo/lambda_function.py
2 3 1
def run_bash_command()
in source/mediainfo/setup.py
6 2 1
await _deleteTemplates()
in source/custom-resource/lib/mediaconvert/index.js
3 2 3
startTime: moment()
in source/input-validate/index.js
18 1 0
def initialize_options()
in source/mediainfo/setup.py
2 1 1
def finalize_options()
in source/mediainfo/setup.py
2 1 1
def run()
in source/mediainfo/setup.py
2 1 1
def run_tests()
in source/mediainfo/setup.py
5 1 1
def parse_general_attributes()
in source/mediainfo/lambda_function.py
7 1 1
def parse_video_attributes()
in source/mediainfo/lambda_function.py
10 1 1
def parse_audio_attributes()
in source/mediainfo/lambda_function.py
8 1 1
def parse_text_attributes()
in source/mediainfo/lambda_function.py
8 1 1
def get_signed_url()
in source/mediainfo/lambda_function.py
16 1 2
TimeStamp: moment()
in source/custom-resource/lib/metrics/index.js
4 1 0
Data: sanitizeData()
in source/custom-resource/lib/metrics/index.js
3 1 1