aws-samples / bring-your-own-data-labs
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 76 units with 731 lines of code in units (8.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (92 lines of code)
    • 4 simple units (99 lines of code)
    • 68 very simple units (540 lines of code)
0% | 0% | 12% | 13% | 73%
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% | 14% | 15% | 70%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
workshop/Server/js0% | 0% | 14% | 15% | 70%
workshop0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
that.keydownHandler = function()
in workshop/Server/js/auto-complete.js
27 14 1
that.keyupHandler = function()
in workshop/Server/js/auto-complete.js
23 13 1
highlight: function()
in workshop/Server/js/learn.js
22 11 4
that.updateSC = function()
in workshop/Server/js/auto-complete.js
20 11 2
jQuery()
in workshop/Server/js/learn.js
33 8 1
function autoComplete()
in workshop/Server/js/auto-complete.js
31 8 1
jQuery.fn.highlight = function()
in workshop/Server/js/learn.js
30 6 2
addEvent()
in workshop/Server/js/auto-complete.js
5 6 3
def main()
in workshop/post_build.py
47 5 0
var sendLog = function()
in workshop/Server/js/kinesis.js
50 5 0
scrollIfAnchor: function()
in workshop/Server/js/learn.js
15 5 2
(function()()
in workshop/Server/js/auto-complete.js
8 5 1
function fallbackMessage()
in workshop/Server/js/learn.js
14 4 1
jQuery()
in workshop/Server/js/learn.js
11 4 1
$()
in workshop/Server/js/learn.js
18 4 1
that.blurHandler = function()
in workshop/Server/js/auto-complete.js
8 4 0
var suggest = function()
in workshop/Server/js/auto-complete.js
12 4 1
var debounce = function()
in workshop/Server/js/learn.js
6 3 3
jQuery()
in workshop/Server/js/learn.js
11 3 1
jQuery()
in workshop/Server/js/learn.js
5 3 1