firebase / quickstart-testing
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 103 lines of code in units (36.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (40 lines of code)
    • 1 small units (12 lines of code)
    • 9 very small units (51 lines of code)
0% | 0% | 38% | 11% | 49%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 0% | 38% | 11% | 49%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
cs-walkthrough/functions0% | 0% | 71% | 0% | 28%
manual-emulator-testing/public0% | 0% | 0% | 25% | 74%
Alternative Visuals
Longest Units
Top 11 longest units
Unit# linesMcCabe index# params
constructor()
in cs-walkthrough/functions/reporter.js
40 5 1
setUser: function()
in manual-emulator-testing/public/index.js
12 2 1
signUp: async function()
in manual-emulator-testing/public/index.js
9 2 0
signIn: async function()
in manual-emulator-testing/public/index.js
9 2 0
submit: function()
in manual-emulator-testing/public/index.js
8 1 0
indentMultilineString()
in cs-walkthrough/functions/reporter.js
7 2 1
created: function()
in manual-emulator-testing/public/index.js
6 1 0
indent()
in cs-walkthrough/functions/reporter.js
3 1 0
increaseIndent()
in cs-walkthrough/functions/reporter.js
3 1 0
decreaseIndent()
in cs-walkthrough/functions/reporter.js
3 1 0
signedIn: function()
in manual-emulator-testing/public/index.js
3 1 0