facebookincubator / wordpress-messenger-customer-chat-plugin
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 57 units with 864 lines of code in units (16.6% of code).
    • 1 very long units (235 lines of code)
    • 1 long units (52 lines of code)
    • 6 medium size units (178 lines of code)
    • 13 small units (198 lines of code)
    • 36 very small units (201 lines of code)
27% | 6% | 20% | 22% | 23%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
php45% | 10% | 26% | 9% | 8%
js0% | 0% | 12% | 42% | 45%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT27% | 6% | 20% | 22% | 23%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
235 34 0
52 1 0
42 9 0
40 19 0
27 4 0
26 3 2
22 10 1
21 9 1
20 8 1
19 7 1
18 6 1
17 5 1
16 4 1
15 2 0
15 3 1
15 3 2
14 4 1
13 2 1
13 1 0
12 3 0
11 2 0
10 1 0
10 3 1
10 5 0
9 2 0
9 1 0
8 2 1
8 2 1
7 2 1
7 2 1
7 1 1
7 2 1
7 2 1
7 2 1
7 2 1
7 2 1
6 1 1
6 2 0
5 1 0
5 1 0
4 1 0
4 1 0
4 1 0
4 1 2
4 1 0
4 1 0
4 1 0
4 1 1
4 1 0
4 1 0