aws-samples / amazon-rds-proxy-multitenant-load-test
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 16 units with 199 lines of code in units (51.4% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (68 lines of code)
    • 2 medium size units (88 lines of code)
    • 0 small units (0 lines of code)
    • 13 very small units (43 lines of code)
0% | 34% | 44% | 0% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 35% | 45% | 0% | 19%
js0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
proxy0% | 81% | 0% | 0% | 18%
python0% | 0% | 100% | 0% | 0%
noproxy0% | 0% | 86% | 0% | 13%
rds0% | 0% | 0% | 0% | 100%
nodejs0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 16 longest units
Unit# linesMcCabe index# params
def create()
in src/functions/proxy/cr_add_users_proxy.py
68 6 2
def lambda_handler()
in src/functions/python/access.py
49 3 2
def create()
in src/functions/noproxy/cr_add_users_noproxy.py
39 6 2
def _delete_secret()
in src/functions/proxy/cr_add_users_proxy.py
8 2 0
def create()
in src/functions/rds/cluster.py
7 1 2
authSwitchHandler: function()
in src/functions/nodejs/index.js
5 2 2
def _rds_describe_db_clusters()
in src/functions/rds/cluster.py
4 1 1
def delete()
in src/functions/proxy/cr_add_users_proxy.py
3 1 2
def update()
in src/functions/rds/cluster.py
2 1 2
def delete()
in src/functions/rds/cluster.py
2 1 2
def handler()
in src/functions/rds/cluster.py
2 1 2
def update()
in src/functions/proxy/cr_add_users_proxy.py
2 1 2
def handler()
in src/functions/proxy/cr_add_users_proxy.py
2 1 2
def update()
in src/functions/noproxy/cr_add_users_noproxy.py
2 1 2
def delete()
in src/functions/noproxy/cr_add_users_noproxy.py
2 1 2
def handler()
in src/functions/noproxy/cr_add_users_noproxy.py
2 1 2