microsoft / xbox-live-unity-plugin
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 635 units with 6,878 lines of code in units (22.2% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (149 lines of code)
    • 5 medium complex units (218 lines of code)
    • 30 simple units (984 lines of code)
    • 599 very simple units (5,527 lines of code)
0% | 2% | 3% | 14% | 80%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cs0% | 2% | 3% | 15% | 78%
cpp0% | 0% | 2% | 6% | 90%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Assets/Xbox Live0% | 5% | 6% | 23% | 64%
CppSource/Source0% | 0% | 2% | 5% | 91%
CSharpSource/Source0% | 0% | 0% | 7% | 92%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void OnGUI()
in Assets/Xbox Live/Editor/XboxLiveConfigurationEditor.cs
149 26 0
void Update()
in Assets/Xbox Live/Scripts/Leaderboard.cs
27 14 0
private void LoadResult()
in Assets/Xbox Live/Scripts/Leaderboard.cs
48 13 1
void Update()
in Assets/Xbox Live/GameSave/Scripts/GameSaveUI.cs
26 12 0
public IEnumerator SignInPlayer()
in Assets/Xbox Live/Scripts/SignInManager.cs
87 12 1
30 12 1
public void Update()
in Assets/Xbox Live/Scripts/PlayerAuthentication.cs
15 10 0
private bool ValidatePlayerNumber()
in Assets/Xbox Live/Scripts/SignInManager.cs
61 10 3
public XboxSocialUserGroup CreateSocialUserGroupFromFilters()
in CSharpSource/Source/api/Social/Manager/MockSocialManager.cs
44 10 3
public void GetLeaderboard()
in CSharpSource/Source/api/Statistics/Manager/MockStatisticManager.cs
42 10 3
void Start()
in Assets/Xbox Live/GameSave/Scripts/GameSaveUI.cs
40 9 0
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
private void Update()
in Assets/Xbox Live/Scripts/Social.cs
19 8 0
private void OnEventProcessed()
in Assets/Xbox Live/Scripts/Social.cs
25 8 2
private void RefreshSocialGroups()
in Assets/Xbox Live/Scripts/Social.cs
54 8 0
private void Update()
in Assets/Xbox Live/Scripts/Stats/StatsManagerComponent.cs
34 8 0
public static int GetUnityButtonNumber()
in Assets/Xbox Live/Scripts/XboxControllerButtons.cs
14 8 1
public static Sprite GetXboxButtonSpite()
in Assets/Xbox Live/Scripts/XboxControllerButtons.cs
19 8 2
public void Dispose()
in CSharpSource/Source/api/System/XsapiCallbackContext.cs
30 8 0