aws-samples / aws-step-functions-plagiarism-demo-dotnetcore
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 239 units with 3,489 lines of code in units (64.8% of code).
    • 3 very complex units (596 lines of code)
    • 4 complex units (378 lines of code)
    • 10 medium complex units (507 lines of code)
    • 17 simple units (417 lines of code)
    • 205 very simple units (1,591 lines of code)
17% | 10% | 14% | 11% | 45%
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
js18% | 11% | 15% | 13% | 40%
cs0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/frontend/admin18% | 11% | 15% | 13% | 40%
src/backend/SendNotificationTask0% | 0% | 0% | 0% | 100%
src/backend/SubmitExamTask0% | 0% | 0% | 0% | 100%
src/backend/PlagiarismRepository0% | 0% | 0% | 0% | 100%
src/backend/Plagiarism0% | 0% | 0% | 0% | 100%
src/backend/ScheduleExamTask0% | 0% | 0% | 0% | 100%
src/backend/RegisterIncidentTask0% | 0% | 0% | 0% | 100%
src/backend/AdminActionTask0% | 0% | 0% | 0% | 100%
src/backend/ResolveIncidentTask0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function()
in src/frontend/admin/js/bootstrap.bundle.js
268 78 0
function()
in src/frontend/admin/js/bootstrap.bundle.js
165 62 0
function()
in src/frontend/admin/js/bootstrap.bundle.js
163 56 0
function()
in src/frontend/admin/js/bootstrap.bundle.js
108 44 0
function flip()
in src/frontend/admin/js/bootstrap.bundle.js
57 41 2
function()
in src/frontend/admin/js/bootstrap.bundle.js
109 29 0
function()
in src/frontend/admin/js/bootstrap.bundle.js
104 26 0
function()
in src/frontend/admin/js/bootstrap.bundle.js
111 23 0
function()
in src/frontend/admin/js/bootstrap.bundle.js
46 16 0
(function (global, factory)()
in src/frontend/admin/js/bootstrap.bundle.js
95 12 2
function findCommonOffsetParent()
in src/frontend/admin/js/bootstrap.bundle.js
24 12 2
function toValue()
in src/frontend/admin/js/bootstrap.bundle.js
33 12 4
function Popper()
in src/frontend/admin/js/bootstrap.bundle.js
31 12 2
function computeStyle()
in src/frontend/admin/js/bootstrap.bundle.js
57 11 2
function arrow()
in src/frontend/admin/js/bootstrap.bundle.js
45 11 2
function parseOffset()
in src/frontend/admin/js/bootstrap.bundle.js
44 11 4
function()
in src/frontend/admin/js/bootstrap.bundle.js
21 11 1
function()
in src/frontend/admin/js/bootstrap.bundle.js
50 10 0
function getBoundingClientRect()
in src/frontend/admin/js/bootstrap.bundle.js
35 10 1
function getOffsetParent()
in src/frontend/admin/js/bootstrap.bundle.js
14 9 1