microsoft / xbox-live-unity-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 635 units with 6,878 lines of code in units (22.2% of code).
    • 1 very long units (149 lines of code)
    • 6 long units (390 lines of code)
    • 70 medium size units (2,080 lines of code)
    • 147 small units (2,220 lines of code)
    • 411 very small units (2,039 lines of code)
2% | 5% | 30% | 32% | 29%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs2% | 6% | 27% | 31% | 31%
cpp0% | 0% | 46% | 35% | 17%
h0% | 0% | 0% | 72% | 27%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Assets/Xbox Live5% | 13% | 37% | 25% | 17%
CSharpSource/Source0% | 0% | 18% | 36% | 44%
CppSource/Source0% | 0% | 44% | 37% | 18%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private void OnGUI()
in Assets/Xbox Live/Editor/XboxLiveConfigurationEditor.cs
149 26 0
public IEnumerator SignInPlayer()
in Assets/Xbox Live/Scripts/SignInManager.cs
87 12 1
public IEnumerator GetContainerInfo()
in Assets/Xbox Live/GameSave/Scripts/GameSaveHelper.cs
72 4 2
private bool ValidatePlayerNumber()
in Assets/Xbox Live/Scripts/SignInManager.cs
61 10 3
private IEnumerator SignInAsync()
in Assets/Xbox Live/Scripts/SignInManager.cs
59 6 2
private void Awake()
in Assets/Xbox Live/Scripts/Leaderboard.cs
57 6 0
private void RefreshSocialGroups()
in Assets/Xbox Live/Scripts/Social.cs
54 8 0
private void LoadResult()
in Assets/Xbox Live/Scripts/Leaderboard.cs
48 13 1
private static extern XSAPI_RESULT XboxLiveUserCreateFromSystemUser()
in CSharpSource/Source/Microsoft.Xbox.Services.UWP.CSharp/System/UserImpl.cs
44 1 2
public XboxSocialUserGroup CreateSocialUserGroupFromFilters()
in CSharpSource/Source/api/Social/Manager/MockSocialManager.cs
44 10 3
public IEnumerator GetAsStrings()
in Assets/Xbox Live/GameSave/Scripts/GameSaveHelper.cs
42 6 3
public void GetLeaderboard()
in CSharpSource/Source/api/Statistics/Manager/MockStatisticManager.cs
42 10 3
HC_RESULT XboxLiveUserSignInExecute()
in CppSource/Source/System/user.cpp
42 5 2
private void UpdateData()
in Assets/Xbox Live/Scripts/Leaderboard.cs
41 9 2
private void SocialManagerEventProcessed()
in Assets/Xbox Live/Scripts/PlayerAuthentication.cs
41 9 2
public IEnumerator Reload()
in Assets/Xbox Live/Scripts/PlayerProfile.cs
41 5 0
public IEnumerator SubmitUpdates()
in Assets/Xbox Live/GameSave/Scripts/GameSaveHelper.cs
40 4 5
public IEnumerator GetAsBytes()
in Assets/Xbox Live/GameSave/Scripts/GameSaveHelper.cs
40 6 3
void Start()
in Assets/Xbox Live/GameSave/Scripts/GameSaveUI.cs
40 9 0
private static void UpdateProjectFile()
in Assets/Xbox Live/Editor/XboxLivePostProcessing.cs
38 7 2