aws-quickstart / connect-integration-perficient-msdynamics
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 12 units with 567 lines of code in units (49.0% of code).
    • 0 very long units (0 lines of code)
    • 5 long units (361 lines of code)
    • 4 medium size units (168 lines of code)
    • 3 small units (38 lines of code)
    • 0 very small units (0 lines of code)
0% | 63% | 29% | 6% | 0%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 63% | 29% | 6% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/addDynamicsAccountNote-test0% | 60% | 39% | 0% | 0%
functions/source/lookupDynamicsAccount-test0% | 60% | 39% | 0% | 0%
functions/source/lookupDynamicsAccount0% | 73% | 0% | 26% | 0%
functions/source/addDynamicsAccountNote0% | 68% | 20% | 10% | 0%
functions/source/getDynamicsToken-test0% | 58% | 41% | 0% | 0%
Alternative Visuals
Longest Units
Top 12 longest units
Unit# linesMcCabe index# params
function lookupAccountByPhone()
in functions/source/lookupDynamicsAccount/lookupDynamicsAccount.js
74 5 2
function checkDynamicsWebApiUrl()
in functions/source/addDynamicsAccountNote-test/addDynamicsAccountNote-test.js
74 4 3
function checkDynamicsWebApiUrl()
in functions/source/lookupDynamicsAccount-test/lookupDynamicsAccount-test.js
74 4 3
function addNote()
in functions/source/addDynamicsAccountNote/addDynamicsAccountNote.js
70 5 2
function checkIfCanGetAccessToken()
in functions/source/getDynamicsToken-test/getDynamicsToken-test.js
69 2 3
exports.send = function()
in functions/source/addDynamicsAccountNote-test/cfn-response.js
49 5 6
exports.send = function()
in functions/source/getDynamicsToken-test/cfn-response.js
49 5 6
exports.send = function()
in functions/source/lookupDynamicsAccount-test/cfn-response.js
49 5 6
function()
in functions/source/addDynamicsAccountNote/addDynamicsAccountNote.js
21 4 2
function getAccessTokenAndThenLookupAccountByPhone()
in functions/source/lookupDynamicsAccount/lookupDynamicsAccount.js
15 1 2
function()
in functions/source/lookupDynamicsAccount/lookupDynamicsAccount.js
12 3 2
function getAccessTokenAndThenAddNote()
in functions/source/addDynamicsAccountNote/addDynamicsAccountNote.js
11 1 3