microsoft / ALAppExtensions
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 71 units with 586 lines of code in units (84.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (101 lines of code)
    • 14 small units (209 lines of code)
    • 53 very small units (276 lines of code)
0% | 0% | 17% | 35% | 47%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 0% | 17% | 35% | 47%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Apps/W1/INTaxEngine/app/TaxEngine-TaxTypeHandler/src/TaxInformation/ControlAddin/scripts0% | 0% | 84% | 0% | 15%
Modules/System/js0% | 0% | 11% | 39% | 49%
Apps/W1/ClientAddIns/src/oauth/js0% | 0% | 12% | 36% | 50%
Modules/System/OAuthClientAddIn/js0% | 0% | 12% | 36% | 50%
Modules/System/Satisfaction Survey/js0% | 0% | 0% | 56% | 43%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function renderData()
in Apps/W1/INTaxEngine/app/TaxEngine-TaxTypeHandler/src/TaxInformation/ControlAddin/scripts/TaxInformation.js
38 8 2
function OauthLandingHelper()
in Apps/W1/ClientAddIns/src/oauth/js/OAuthIntegration.js
21 5 3
function OauthLandingHelper()
in Modules/System/OAuthClientAddIn/js/OAuthIntegration.js
21 5 3
function OauthLandingHelper()
in Modules/System/js/OAuthIntegration.js
21 5 3
function getClassNameSuffix()
in Apps/W1/ClientAddIns/src/oauth/js/OAuthIntegration.js
20 8 0
function getClassNameSuffix()
in Modules/System/OAuthClientAddIn/js/OAuthIntegration.js
20 8 0
function getClassNameSuffix()
in Modules/System/js/OAuthIntegration.js
20 8 0
function closeWindow()
in Apps/W1/ClientAddIns/src/oauth/js/OAuthIntegration.js
15 5 0
function closeWindow()
in Modules/System/OAuthClientAddIn/js/OAuthIntegration.js
15 5 0
function closeWindow()
in Modules/System/js/OAuthIntegration.js
15 5 0
function isFeatureSupported()
in Apps/W1/ClientAddIns/src/oauth/js/OAuthIntegration.js
13 5 0
function isCordova()
in Apps/W1/ClientAddIns/src/oauth/js/OAuthIntegration.js
13 5 1
function isFeatureSupported()
in Modules/System/OAuthClientAddIn/js/OAuthIntegration.js
13 5 0
function isCordova()
in Modules/System/OAuthClientAddIn/js/OAuthIntegration.js
13 5 1
function SendRequest()
in Modules/System/Satisfaction Survey/js/SATAsync.js
13 2 2
function isFeatureSupported()
in Modules/System/js/OAuthIntegration.js
13 5 0
function isCordova()
in Modules/System/js/OAuthIntegration.js
13 5 1
function SendRequest()
in Modules/System/js/SATAsync.js
13 2 2
function createHyperlink()
in Apps/W1/ClientAddIns/src/oauth/js/OAuthIntegration.js
10 1 3
function createHyperlink()
in Modules/System/OAuthClientAddIn/js/OAuthIntegration.js
10 1 3