awslabs / aws-clustered-video-streams
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 47 units with 754 lines of code in units (30.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (92 lines of code)
    • 7 simple units (235 lines of code)
    • 38 very simple units (427 lines of code)
0% | 0% | 12% | 31% | 56%
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% | 25% | 45% | 28%
js0% | 0% | 0% | 18% | 81%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/cfn-init-clustered-video-stream0% | 0% | 65% | 32% | 1%
source/cfn-s3copyobjects0% | 0% | 76% | 0% | 23%
source/cfn-add-edge-lambda0% | 0% | 0% | 97% | 2%
source/stale-playlist-detector0% | 0% | 0% | 23% | 76%
source/cfn-global-table0% | 0% | 0% | 32% | 67%
source/dashboard0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def create()
in source/cfn-s3copyobjects/cfn-s3copyobjects.py
26 12 2
def create()
in source/cfn-init-clustered-video-stream/cfn-init-clustered-video-stream.py
66 12 2
def global_table_update()
in source/cfn-global-table/cfn-global-table.py
44 10 2
def delete()
in source/cfn-init-clustered-video-stream/cfn-init-clustered-video-stream.py
33 10 2
def update_cache_behavior()
in source/cfn-add-edge-lambda/cfn-add-edge-lambda.py
17 8 2
def create()
in source/cfn-add-edge-lambda/cfn-add-edge-lambda.py
29 8 2
def delete()
in source/cfn-add-edge-lambda/cfn-add-edge-lambda.py
26 7 2
_onEnter: async function()
in source/stale-playlist-detector/detector.js
71 7 0
def remove_cache_behavior()
in source/cfn-add-edge-lambda/cfn-add-edge-lambda.py
15 6 2
def delete()
in source/cfn-s3copyobjects/cfn-s3copyobjects.py
6 5 2
constructor()
in source/stale-playlist-detector/detector.js
46 5 1
def global_table_create()
in source/cfn-global-table/cfn-global-table.py
37 5 2
def handler()
in source/cfn-global-table/cfn-global-table.py
11 5 2
def send()
in source/cfn-global-table/cfnresponse.py
31 5 7
$()
in source/dashboard/dashboard.js
46 4 1
_onEnter: async function()
in source/stale-playlist-detector/playlist.js
32 4 1
var clickEnableBlockingIcon = function()
in source/dashboard/dashboard.js
8 3 2
var clickDisableBlockingIcon = function()
in source/dashboard/dashboard.js
8 3 2
changed()
in source/stale-playlist-detector/playlist.js
12 3 1
_onEnter: function()
in source/stale-playlist-detector/detector.js
13 3 0