flutter / web_installers
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 34 units with 460 lines of code in units (69.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (105 lines of code)
    • 18 small units (260 lines of code)
    • 13 very small units (95 lines of code)
0% | 0% | 22% | 56% | 20%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
dart0% | 0% | 22% | 56% | 20%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
simulators/lib0% | 0% | 60% | 14% | 25%
web_drivers/lib0% | 0% | 9% | 71% | 18%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
Future createSimulator()
in packages/simulators/lib/simulator_manager.dart
40 6 3
Future getSimulator()
in packages/simulators/lib/simulator_manager.dart
34 4 3
Future _installDriver()
in packages/web_drivers/lib/chrome_driver_installer.dart
31 6 0
Future _querySystemChromeVersion()
in packages/web_drivers/lib/chrome_driver_installer.dart
20 4 0
Future _listExistingSimulators()
in packages/simulators/lib/simulator_manager.dart
18 3 2
Future _compareDriverVersion()
in packages/web_drivers/lib/safari_driver_runner.dart
17 3 1
Future _downloadDriver()
in packages/web_drivers/lib/firefox_driver_installer.dart
17 2 0
Future run()
in packages/web_drivers/lib/chrome_driver_command.dart
16 3 0
void main()
in packages/web_drivers/lib/web_driver_installer.dart
15 4 1
Future _installDriver()
in packages/web_drivers/lib/firefox_driver_installer.dart
15 3 0
String driverUrlPath()
in packages/web_drivers/lib/firefox_driver_installer.dart
15 4 0
Future run()
in packages/web_drivers/lib/firefox_driver_command.dart
15 3 0
Future _downloadDriver()
in packages/web_drivers/lib/chrome_driver_installer.dart
15 2 0
Future _uncompressWithTar()
in packages/web_drivers/lib/firefox_driver_installer.dart
14 2 1
Future _uncompressWithZip()
in packages/web_drivers/lib/firefox_driver_installer.dart
13 2 1
Future _uncompress()
in packages/web_drivers/lib/chrome_driver_installer.dart
13 2 0
Future findChromeExecutableOnMac()
in packages/web_drivers/lib/chrome_driver_installer.dart
12 1 0
static String driverName()
in packages/web_drivers/lib/chrome_driver_installer.dart
12 4 0
Future start()
in packages/web_drivers/lib/safari_driver_runner.dart
11 3 1
Future runDriver()
in packages/web_drivers/lib/safari_driver_runner.dart
11 2 1