awslabs / amplify-video
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 237 units with 4,310 lines of code in units (64.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (461 lines of code)
    • 25 simple units (1,056 lines of code)
    • 207 very simple units (2,793 lines of code)
0% | 0% | 10% | 24% | 64%
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% | 0% | 10% | 24% | 64%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
provider-utils/awscloudformation/service-walkthroughs0% | 0% | 21% | 36% | 42%
provider-utils/awscloudformation/cloudformation-templates0% | 0% | 8% | 15% | 75%
provider-utils/awscloudformation/utils0% | 0% | 8% | 28% | 62%
commands/video0% | 0% | 0% | 25% | 74%
ROOT0% | 0% | 0% | 47% | 52%
commands0% | 0% | 0% | 0% | 100%
provider-utils/awscloudformation0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
async update()
in provider-utils/awscloudformation/cloudformation-templates/livestream-helpers/LambdaFunctions/psdemo-js-live-workflow_v0.4.0/lib/babelfish.js
105 20 0
async function serviceQuestions()
in provider-utils/awscloudformation/service-walkthroughs/vod-push.js
210 19 4
async function generateAWSExportsVideo()
in provider-utils/awscloudformation/utils/video-getinfo.js
60 16 1
async function liveStartStop()
in provider-utils/awscloudformation/utils/livestream-startstop.js
31 13 4
async createEndpoints()
in provider-utils/awscloudformation/cloudformation-templates/livestream-helpers/LambdaFunctions/psdemo-js-live-workflow_v0.4.0/lib/babelfish.js
55 11 0
22 10 2
async function createCMS()
in provider-utils/awscloudformation/service-walkthroughs/vod-push.js
63 10 3
async function authGroupHack()
in provider-utils/awscloudformation/service-walkthroughs/vod-push.js
59 10 2
initialize()
in provider-utils/awscloudformation/cloudformation-templates/livestream-helpers/LambdaFunctions/psdemo-js-live-workflow_v0.4.0/lib/flagfish.js
40 10 2
function getVODEnvVars()
in provider-utils/awscloudformation/utils/video-staging.js
65 10 3
async function prettifyOutputLive()
in provider-utils/awscloudformation/utils/video-getinfo.js
30 10 2
async function setupWebProjects()
in provider-utils/awscloudformation/utils/video-player.js
63 10 2
async function serviceQuestions()
in provider-utils/awscloudformation/service-walkthroughs/livestream-push.js
196 9 4
function isDependencyInstalled()
in provider-utils/awscloudformation/utils/video-player-utils.js
24 9 3
async function createConfig()
in provider-utils/awscloudformation/utils/livestream-obs.js
30 8 3
async function getInfoVideoAll()
in provider-utils/awscloudformation/utils/video-getinfo.js
20 8 1
run: async()
in commands/video/setup-obs.js
31 7 1
async function createCDN()
in provider-utils/awscloudformation/service-walkthroughs/vod-push.js
39 7 5
async createInput()
in provider-utils/awscloudformation/cloudformation-templates/livestream-helpers/LambdaFunctions/psdemo-js-live-workflow_v0.4.0/lib/flagfish.js
30 7 1
addMediaStoreOutputGroup()
in provider-utils/awscloudformation/cloudformation-templates/livestream-helpers/LambdaFunctions/psdemo-js-live-workflow_v0.4.0/lib/flagfish.js
73 7 1