aws-samples / amazon-chime-proxy-sessions-demo
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 221 units with 4,150 lines of code in units (81.4% of code).
    • 3 very complex units (851 lines of code)
    • 5 complex units (647 lines of code)
    • 12 medium complex units (513 lines of code)
    • 22 simple units (1,117 lines of code)
    • 179 very simple units (1,022 lines of code)
20% | 15% | 12% | 26% | 24%
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
js20% | 15% | 12% | 26% | 24%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
chimeproxy-frontend/public/js20% | 15% | 12% | 26% | 24%
chimeproxy-frontend/src/components0% | 0% | 0% | 87% | 12%
chimeproxy-backend0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
353 83 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
256 74 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
242 73 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
208 47 0
function flip()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
57 41 2
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
116 32 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
126 29 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
140 28 0
function getBoundaries()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
39 19 4
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
53 16 0
function computeStyle()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
60 14 2
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
82 14 0
function getOffsetParent()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
18 13 1
function findCommonOffsetParent()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
24 12 2
function toValue()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
33 12 4
function Popper()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
31 12 2
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
47 12 1
function getOffsetRectRelativeToArbitraryNode()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
37 11 2
function arrow()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
45 11 2
function parseOffset()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
44 11 4