microsoft / vscode-node-sqlite3
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 148 units with 1,867 lines of code in units (60.5% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 23 medium size units (694 lines of code)
    • 50 small units (734 lines of code)
    • 75 very small units (439 lines of code)
0% | 0% | 37% | 39% | 23%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cc0% | 0% | 40% | 40% | 18%
js0% | 0% | 37% | 37% | 25%
h0% | 0% | 0% | 26% | 73%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 37% | 39% | 23%
lib0% | 0% | 49% | 19% | 30%
benchmark0% | 0% | 0% | 88% | 11%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
bool Statement::Bind()
in src/statement.cc
49 11 1
Napi::Object RegisterModule()
in src/node_sqlite3.cc
48 1 2
void Statement::AsyncEach()
in src/statement.cc
39 9 1
37 5 1
void Database::Process()
in src/database.cc
35 15 0
void Statement::Work_Each()
in src/statement.cc
34 6 2
33 6 3
void Statement::GetRow()
in src/statement.cc
33 8 2
31 2 0
30 6 3
30 7 2
29 9 0
void Statement::CleanQueue()
in src/statement.cc
29 9 0
28 6 3
void Database::Schedule()
in src/database.cc
25 11 3
24 1 2
24 6 3
24 6 3
23 6 0
23 7 0