aws-quickstart / quickstart-mactores-axomo
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 1,983 units with 33,151 lines of code in units (64.8% of code).
    • 158 very long units (16,298 lines of code)
    • 18 long units (1,242 lines of code)
    • 160 medium size units (5,024 lines of code)
    • 337 small units (4,919 lines of code)
    • 1,310 very small units (5,668 lines of code)
49% | 3% | 15% | 14% | 17%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py49% | 3% | 15% | 14% | 17%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/emptys3bucket/idna95% | 0% | 3% | <1% | <1%
functions/source/copytonewregions3/idna95% | 0% | 3% | <1% | <1%
functions/source/emptys3bucket/urllib32% | 5% | 28% | 30% | 32%
functions/source/copytonewregions3/urllib32% | 5% | 28% | 30% | 32%
functions/source/emptys3bucket/requests0% | 13% | 27% | 25% | 33%
functions/source/copytonewregions3/requests0% | 13% | 27% | 25% | 33%
functions/source/emptys3bucket/chardet0% | 6% | 21% | 30% | 41%
functions/source/copytonewregions3/chardet0% | 6% | 21% | 30% | 41%
functions/source/emptys3bucket/crhelper0% | 0% | 33% | 32% | 34%
functions/source/copytonewregions3/crhelper0% | 0% | 33% | 32% | 34%
functions/source/copytonewregions30% | 0% | 0% | 72% | 28%
functions/source/invokesagemaker0% | 0% | 0% | 100% | 0%
functions/source/emptys3bucket0% | 0% | 0% | 59% | 40%
functions/source/emptys3bucket/certifi0% | 0% | 0% | 0% | 100%
functions/source/copytonewregions3/certifi0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def urlopen()
in functions/source/emptys3bucket/urllib3/connectionpool.py
115 21 14
def urlopen()
in functions/source/copytonewregions3/urllib3/connectionpool.py
115 21 14
def _seg_0()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_1()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_2()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_3()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_4()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_5()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_6()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_7()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_8()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_9()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_10()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_11()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_12()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_13()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_14()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_15()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_16()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0
def _seg_17()
in functions/source/emptys3bucket/idna/uts46data.py
103 1 0