aws-samples / aws-step-functions-plagiarism-demo-dotnetcore
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 239 units with 3,489 lines of code in units (64.8% of code).
    • 7 very long units (1,028 lines of code)
    • 6 long units (400 lines of code)
    • 26 medium size units (864 lines of code)
    • 33 small units (450 lines of code)
    • 167 very small units (747 lines of code)
29% | 11% | 24% | 12% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js32% | 12% | 23% | 11% | 20%
cs0% | 0% | 39% | 26% | 33%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/frontend/admin32% | 12% | 23% | 11% | 20%
src/backend/SubmitExamTask0% | 0% | 80% | 0% | 19%
src/backend/SendNotificationTask0% | 0% | 65% | 23% | 11%
src/backend/ScheduleExamTask0% | 0% | 69% | 0% | 30%
src/backend/PlagiarismRepository0% | 0% | 0% | 100% | 0%
src/backend/RegisterIncidentTask0% | 0% | 0% | 77% | 22%
src/backend/Plagiarism0% | 0% | 0% | 0% | 100%
src/backend/AdminActionTask0% | 0% | 0% | 0% | 100%
src/backend/ResolveIncidentTask0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest 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
111 23 0
function()
in src/frontend/admin/js/bootstrap.bundle.js
109 29 0
function()
in src/frontend/admin/js/bootstrap.bundle.js
108 44 0
function()
in src/frontend/admin/js/bootstrap.bundle.js
104 26 0
(function (global, factory)()
in src/frontend/admin/js/bootstrap.bundle.js
95 12 2
var Tooltip = function()
in src/frontend/admin/js/bootstrap.bundle.js
76 1 1
var Carousel = function()
in src/frontend/admin/js/bootstrap.bundle.js
60 1 1
function computeStyle()
in src/frontend/admin/js/bootstrap.bundle.js
57 11 2
function flip()
in src/frontend/admin/js/bootstrap.bundle.js
57 41 2
var Dropdown = function()
in src/frontend/admin/js/bootstrap.bundle.js
55 1 1
function()
in src/frontend/admin/js/bootstrap.bundle.js
50 10 0
public APIGatewayProxyResponse FunctionHandler()
in src/backend/SubmitExamTask/Function.cs
49 4 2
private async Task SendEmail()
in src/backend/SendNotificationTask/Function.cs
47 3 5
function()
in src/frontend/admin/js/bootstrap.bundle.js
46 16 0
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 computeAutoPlacement()
in src/frontend/admin/js/bootstrap.bundle.js
42 7 5