microsoft / xbox-live-resiliency-fiddler-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 28 units with 345 lines of code in units (73.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 6 medium size units (198 lines of code)
    • 5 small units (70 lines of code)
    • 17 very small units (77 lines of code)
0% | 0% | 57% | 20% | 22%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 0% | 57% | 20% | 22%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Source0% | 0% | 57% | 20% | 22%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private void InitializeMenu()
in Source/Program.cs
42 2 0
private void InitializeComponent()
in Source/About.Designer.cs
39 1 0
37 7 2
private void CheckForUpdate()
in Source/Program.cs
31 5 0
27 9 1
22 5 2
public bool OnExecAction()
in Source/Program.cs
16 3 1
15 3 2
15 3 0
12 3 1
12 3 1
protected override void Dispose()
in Source/About.Designer.cs
8 3 1
8 1 3
7 1 2
6 1 2
public About()
in Source/About.cs
5 1 0
public void OnLoad()
in Source/Program.cs
5 1 0
4 1 0
private void ReportError()
in Source/Program.cs
4 1 1
public void ChangeStatusText()
in Source/Program.cs
4 1 1