aws-samples / aws-singleplay
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 37 units with 384 lines of code in units (5.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 5 medium size units (140 lines of code)
    • 9 small units (119 lines of code)
    • 23 very small units (125 lines of code)
0% | 0% | 36% | 30% | 32%
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% | 36% | 30% | 32%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Assets/Scripts0% | 0% | 36% | 30% | 32%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public static async Task PostAsync()
in Assets/Scripts/HttpModule.cs
32 2 4
public static async Task GetAsync()
in Assets/Scripts/HttpModule.cs
29 2 3
public static async Task PostAsync()
in Assets/Scripts/HttpModule.cs
29 2 3
public async Task SignUpAsync()
in Assets/Scripts/GameAuth.cs
26 2 3
public async Task SignInAsync()
in Assets/Scripts/GameAuth.cs
24 2 2
public void OnClickSignInBtn()
in Assets/Scripts/GameAuth.cs
20 2 0
public void OnClickSignUpBtn()
in Assets/Scripts/GameAuth.cs
14 3 0
private void OnGUI()
in Assets/Scripts/GameHome.cs
13 1 0
IEnumerator GetTexture()
in Assets/Scripts/GameHome.cs
13 2 0
public void OnClickUserDataSyncBtn()
in Assets/Scripts/GameHome.cs
13 1 0
public void OnClickShopBtn()
in Assets/Scripts/GameHome.cs
12 1 0
private void ReadConfigFile()
in Assets/Scripts/GamePlayManager.cs
12 1 1
public static ClientInfo GetClientInfo()
in Assets/Scripts/GameSystem.cs
11 2 0
public static void WriteToLogFile()
in Assets/Scripts/LogModule.cs
11 1 1
public void Awake()
in Assets/Scripts/GamePlayManager.cs
10 2 0
public void OnClickExitGameBtn()
in Assets/Scripts/GameHome.cs
8 1 0
public UserData()
in Assets/Scripts/GamePlayModel.cs
7 1 0
public UserData()
in Assets/Scripts/GamePlayModel.cs
7 1 4
void Start()
in Assets/Scripts/GameHome.cs
6 1 0
private void UpdateGameEvent()
in Assets/Scripts/GameHome.cs
6 1 0