microsoft / bobsql
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 11 units with 126 lines of code in units (16.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (35 lines of code)
    • 3 small units (43 lines of code)
    • 7 very small units (48 lines of code)
0% | 0% | 27% | 34% | 38%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 0% | 62% | 21% | 16%
js0% | 0% | 0% | 44% | 55%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
sql2019book/ch5_modern_development_platform0% | 0% | 62% | 21% | 16%
sqllinuxbook/ch40% | 0% | 0% | 44% | 55%
Alternative Visuals
Longest Units
Top 11 longest units
Unit# linesMcCabe index# params
public PrimitiveDataset execute()
in sql2019book/ch5_modern_development_platform/java/RegexSample.java
35 4 2
function Read()
in sqllinuxbook/ch4/customerappinssel.js
18 2 1
function InsertCustomer()
in sqllinuxbook/ch4/execinsertcustomer.js
13 2 0
private void validateInput()
in sql2019book/ch5_modern_development_platform/java/RegexSample.java
12 6 2
function Insert()
in sqllinuxbook/ch4/customerappinssel.js
9 1 4
function()
in sqllinuxbook/ch4/customerappinssel.js
9 2 3
function()
in sqllinuxbook/ch4/customerappinssel.js
9 2 3
function Complete()
in sqllinuxbook/ch4/customerappinssel.js
8 2 2
public RegexSample()
in sql2019book/ch5_modern_development_platform/java/RegexSample.java
5 1 0
private boolean check()
in sql2019book/ch5_modern_development_platform/java/RegexSample.java
4 1 1
function Start()
in sqllinuxbook/ch4/customerappinssel.js
4 1 1