awslabs / aws-video-transcriber
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 139 units with 2,964 lines of code in units (49.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (54 lines of code)
    • 7 simple units (301 lines of code)
    • 131 very simple units (2,609 lines of code)
0% | 0% | 1% | 10% | 88%
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% | 1% | 10% | 88%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lambda/getcaption0% | 0% | 59% | 40% | 0%
lambda/customresource0% | 0% | 0% | 28% | 71%
lambda/burncaption0% | 0% | 0% | 20% | 79%
lambda/batchcomplete0% | 0% | 0% | 41% | 58%
web/js0% | 0% | 0% | 0% | 100%
lambda/extractaudio0% | 0% | 0% | 0% | 100%
lambda/transcribeaudio0% | 0% | 0% | 0% | 100%
lambda/createcaptions0% | 0% | 0% | 0% | 100%
lambda/putcaption0% | 0% | 0% | 0% | 100%
lambda/translatecaptions0% | 0% | 0% | 0% | 100%
lambda/deletevideo0% | 0% | 0% | 0% | 100%
lambda/updateburnedvideopath0% | 0% | 0% | 0% | 100%
lambda/togglecomplete0% | 0% | 0% | 0% | 100%
lambda/reprocessvideo0% | 0% | 0% | 0% | 100%
lambda/headvocabulary0% | 0% | 0% | 0% | 100%
lambda/putvocabulary0% | 0% | 0% | 0% | 100%
lambda/updatevideolanguage0% | 0% | 0% | 0% | 100%
lambda/updatevideostatus0% | 0% | 0% | 0% | 100%
lambda/updatevideoname0% | 0% | 0% | 0% | 100%
lambda/updatevideodescription0% | 0% | 0% | 0% | 100%
lambda/putlanguage0% | 0% | 0% | 0% | 100%
lambda/getburnedvideo0% | 0% | 0% | 0% | 100%
lambda/getvideos0% | 0% | 0% | 0% | 100%
lambda/getvideo0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
async function exportCaptions()
in source/lambda/getcaption/getcaption.js
54 13 3
function splitSentence()
in source/lambda/batchcomplete/batchcomplete.js
37 9 2
function splitSentence()
in source/lambda/getcaption/getcaption.js
37 9 2
function splitSentence()
in source/lambda/burncaption/burncaption.js
37 9 2
async function deleteApiKey()
in source/lambda/customresource/customresource.js
75 8 1
async function exportCaptions()
in source/lambda/batchcomplete/batchcomplete.js
36 7 3
async function exportCaptions()
in source/lambda/burncaption/burncaption.js
36 7 3
async function sendResponse()
in source/lambda/customresource/customresource.js
43 6 5
function formatDateTime()
in source/web/js/app.js
13 5 1
function mapper()
in source/lambda/getburnedvideo/getburnedvideo.js
14 5 1
function computeRemainingParams()
in source/lambda/extractaudio/extractaudio.js
50 5 2
async function checkForPriorProcessing()
in source/lambda/extractaudio/extractaudio.js
32 5 1
function mapper()
in source/lambda/putcaption/putcaption.js
14 5 1
function mapper()
in source/lambda/deletevideo/deletevideo.js
14 5 1
function mapper()
in source/lambda/getvideos/getvideos.js
14 5 1
function mapper()
in source/lambda/getvideo/getvideo.js
14 5 1
function mapper()
in source/lambda/reprocessvideo/reprocessvideo.js
14 5 1
async function getVocabularies()
in source/lambda/transcribeaudio/transcribeaudio.js
35 5 1
function mapper()
in source/lambda/transcribeaudio/transcribeaudio.js
14 5 1
async function getVocabularies()
in source/lambda/headvocabulary/headvocabulary.js
35 5 1