dart-lang / browser_launcher
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 7 units with 112 lines of code in units (55.4% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (54 lines of code)
    • 0 medium size units (0 lines of code)
    • 2 small units (25 lines of code)
    • 4 very small units (33 lines of code)
0% | 48% | 0% | 22% | 29%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
dart0% | 48% | 0% | 22% | 29%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/src0% | 52% | 0% | 24% | 22%
example0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 7 longest units
Unit# linesMcCabe index# params
54 7 6
Future findUnusedPort()
in lib/src/chrome.dart
13 1 0
Future close()
in lib/src/chrome.dart
12 3 0
static Future _connect()
in lib/src/chrome.dart
10 2 1
Future main()
in example/main.dart
10 1 0
static Future _startProcess()
in lib/src/chrome.dart
7 1 3
static Future start()
in lib/src/chrome.dart
6 1 3