aws-quickstart / quickstart-citrix-adc-vpx
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 928 units with 15,935 lines of code in units (57.1% of code).
    • 79 very long units (8,137 lines of code)
    • 11 long units (699 lines of code)
    • 68 medium size units (2,070 lines of code)
    • 162 small units (2,355 lines of code)
    • 608 very small units (2,674 lines of code)
51% | 4% | 12% | 14% | 16%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py51% | 4% | 12% | 14% | 16%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/adc/idna95% | 0% | 3% | <1% | <1%
functions/source/adc/requests0% | 13% | 27% | 25% | 33%
functions/source/adc/urllib30% | 5% | 22% | 31% | 40%
functions/source/adc/chardet0% | 6% | 22% | 27% | 42%
functions/source/adc0% | 34% | 65% | 0% | 0%
functions/source/adc/urllib3/util0% | 7% | 7% | 44% | 39%
functions/source/adc/urllib3/contrib0% | 5% | 40% | 20% | 34%
functions/source/adc/barbarika0% | 7% | 11% | 63% | 18%
functions/source/adc/urllib3/packages0% | 13% | 18% | 11% | 55%
functions/source/adc/chardet/cli0% | 0% | 0% | 100% | 0%
functions/source/adc/certifi0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def _seg_0()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_1()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_2()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_3()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_4()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_5()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_6()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_7()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_8()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_9()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_10()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_11()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_12()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_13()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_14()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_15()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_16()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_17()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_18()
in functions/source/adc/idna/uts46data.py
103 1 0
def _seg_19()
in functions/source/adc/idna/uts46data.py
103 1 0