aws-samples / net-modernization
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 216 units with 2,121 lines of code in units (3.8% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (104 lines of code)
    • 4 medium complex units (136 lines of code)
    • 11 simple units (269 lines of code)
    • 199 very simple units (1,612 lines of code)
0% | 4% | 6% | 12% | 76%
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% | 6% | 8% | 17% | 66%
cs0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
FrontEnd/src0% | 5% | 7% | 16% | 69%
MonolithicApplication/src0% | 5% | 7% | 13% | 73%
InventoryService/src0% | 0% | 0% | 0% | 100%
BasketLambda/src0% | 0% | 0% | 0% | 100%
Locust/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function report()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
52 26 1
function report()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
52 26 1
(function (global, factory)()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
58 23 2
(function (global, factory)()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
58 23 2
n.exports = function()
in MonolithicApplication/src/build/js/uuidv1.js
10 18 3
n.exports = function()
in FrontEnd/src/js/uuidv1.js
10 18 3
n.exports = function()
in MonolithicApplication/src/build/js/uuidv1.js
4 9 2
n.exports = function()
in FrontEnd/src/js/uuidv1.js
4 9 2
function md5ForNode()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
13 7 1
function detectSvgConflicts()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
47 7 1
WINDOW.onmessage = function()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
11 7 1
function md5ForNode()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
13 7 1
function detectSvgConflicts()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
47 7 1
WINDOW.onmessage = function()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
11 7 1
function conflictDetection()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
49 6 0
success: function()
in FrontEnd/src/controllers/basket.js
21 6 1
function conflictDetection()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
49 6 0
$()
in MonolithicApplication/src/build/js/freelancer.js
12 5 1
_typeof = function()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
3 5 1
function pollUntil()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
15 5 1