aws-samples / pcf-on-aws-workshop
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 33 units with 255 lines of code in units (3.7% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 9 small units (108 lines of code)
    • 24 very small units (147 lines of code)
0% | 0% | 0% | 42% | 57%
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% | 0% | 42% | 57%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
modules/40-Deploying-Service-Broker-Polly0% | 0% | 0% | 42% | 57%
modules/50-Deploying-Via-Apps-Manager-Console0% | 0% | 0% | 42% | 57%
modules/45-Deploying-Service-Broker-S30% | 0% | 0% | 42% | 57%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
get_service_label: function()
in modules/40-Deploying-Service-Broker-Polly/app/vcap_services.js
12 4 0
get_service_name: function()
in modules/40-Deploying-Service-Broker-Polly/app/vcap_services.js
12 4 0
get_service_plan: function()
in modules/40-Deploying-Service-Broker-Polly/app/vcap_services.js
12 4 0
get_service_label: function()
in modules/50-Deploying-Via-Apps-Manager-Console/app/vcap_services.js
12 4 0
get_service_name: function()
in modules/50-Deploying-Via-Apps-Manager-Console/app/vcap_services.js
12 4 0
get_service_plan: function()
in modules/50-Deploying-Via-Apps-Manager-Console/app/vcap_services.js
12 4 0
get_service_label: function()
in modules/45-Deploying-Service-Broker-S3/app/vcap_services.js
12 4 0
get_service_name: function()
in modules/45-Deploying-Service-Broker-S3/app/vcap_services.js
12 4 0
get_service_plan: function()
in modules/45-Deploying-Service-Broker-S3/app/vcap_services.js
12 4 0
$()
in modules/40-Deploying-Service-Broker-Polly/public/javascripts/ping.js
10 1 1
$()
in modules/50-Deploying-Via-Apps-Manager-Console/public/javascripts/ping.js
10 1 1
$()
in modules/45-Deploying-Service-Broker-S3/public/javascripts/ping.js
10 1 1
get_app_name: function()
in modules/40-Deploying-Service-Broker-Polly/app/vcap_application.js
6 2 0
get_app_uris: function()
in modules/40-Deploying-Service-Broker-Polly/app/vcap_application.js
6 2 0
get_app_space: function()
in modules/40-Deploying-Service-Broker-Polly/app/vcap_application.js
6 2 0
get_app_index: function()
in modules/40-Deploying-Service-Broker-Polly/app/vcap_application.js
6 2 0
get_app_mem_limits: function()
in modules/40-Deploying-Service-Broker-Polly/app/vcap_application.js
6 2 0
get_app_disk_limits: function()
in modules/40-Deploying-Service-Broker-Polly/app/vcap_application.js
6 2 0
get_app_name: function()
in modules/50-Deploying-Via-Apps-Manager-Console/app/vcap_application.js
6 2 0
get_app_uris: function()
in modules/50-Deploying-Via-Apps-Manager-Console/app/vcap_application.js
6 2 0