aws-samples / unishop-monolith-to-microservices
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 230 units with 1,467 lines of code in units (5.4% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (198 lines of code)
    • 6 medium size units (216 lines of code)
    • 21 small units (271 lines of code)
    • 200 very small units (782 lines of code)
0% | 13% | 14% | 18% | 53%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 29% | 19% | 22% | 27%
java0% | 0% | 10% | 14% | 74%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
MonoToMicroUI/fontawesome-free0% | 32% | 21% | 22% | 22%
MonoToMicroLambda/src0% | 0% | 37% | 0% | 62%
MonoToMicroLegacy/src0% | 0% | 3% | 18% | 77%
MonoToMicroUI/js0% | 0% | 0% | 23% | 76%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function binlMD5()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
88 2 2
(function (global, factory)()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
58 23 2
function report()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
52 26 1
function conflictDetection()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
49 6 0
function detectSvgConflicts()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
47 7 1
function detectWebfontConflicts()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
35 3 0
public String removeUnicornFromBasket()
in MonoToMicroLambda/src/main/java/com/monoToMicro/Lambda/UnicornBasketImpl.java
32 9 2
public String addUnicornToBasket()
in MonoToMicroLambda/src/main/java/com/monoToMicro/Lambda/UnicornBasketImpl.java
28 8 2
public ResponseEntity ping()
in MonoToMicroLegacy/src/main/java/com/monoToMicro/rest/controller/HealthController.java
25 3 0
function rstrHMACMD5()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
17 3 2
setTimeout()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
17 4 1
$()
in MonoToMicroUI/js/freelancer.js
15 5 1
function _objectSpread()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
15 4 1
function pollUntil()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
15 5 1
function _defineProperty()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
13 2 3
function rstr2binl()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
13 3 1
function md5ForNode()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
13 7 1
public SqlSessionFactory sqlSessionFactory()
in MonoToMicroLegacy/src/main/java/com/monoToMicro/config/MyBatisConfig.java
13 1 0
function md5()
in MonoToMicroUI/fontawesome-free/js/conflict-detection.js
12 4 3
public Object getResult()
in MonoToMicroLegacy/src/main/java/com/monoToMicro/config/DateTimeTypeHandler.java
12 2 2