firebase / quickstart-unity
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 245 units with 3,083 lines of code in units (13.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (151 lines of code)
    • 2 medium complex units (133 lines of code)
    • 27 simple units (731 lines of code)
    • 215 very simple units (2,068 lines of code)
0% | 4% | 4% | 23% | 67%
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% | 4% | 4% | 23% | 67%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
auth0% | 21% | 0% | 11% | 67%
storage0% | 0% | 29% | 15% | 54%
functions0% | 0% | 0% | 58% | 41%
crashlytics0% | 0% | 0% | 47% | 52%
messaging0% | 0% | 0% | 53% | 46%
database0% | 0% | 0% | 48% | 51%
firestore0% | 0% | 0% | 10% | 89%
remote_config0% | 0% | 0% | 20% | 79%
analytics0% | 0% | 0% | 20% | 79%
dynamic_links0% | 0% | 0% | 16% | 83%
installations0% | 0% | 0% | 16% | 83%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void GUIDisplayControls()
in auth/testapp/Assets/Firebase/Sample/Auth/UIHandler.cs
151 31 0
void GUIDisplayControls()
in storage/testapp/Assets/Firebase/Sample/Storage/UIHandler.cs
99 21 0
MetadataChange StringToMetadataChange()
in storage/testapp/Assets/Firebase/Sample/Storage/UIHandler.cs
34 11 1
void FetchComplete()
in remote_config/testapp/Assets/Firebase/Sample/RemoteConfig/UIHandler.cs
32 9 1
void GUIDisplayControls()
in analytics/testapp/Assets/Firebase/Sample/Analytics/UIHandler.cs
30 9 0
void GUIDisplayControls()
in crashlytics/testapp/Assets/Firebase/Sample/Crashlytics/UIHandler.cs
36 8 0
void AuthStateChanged()
in auth/testapp/Assets/Firebase/Sample/Auth/UIHandler.cs
18 8 2
void GUIDisplayGameCenterControls()
in auth/testapp/Assets/Firebase/Sample/Auth/UIHandler.cs
24 8 0
public Task RunAsync()
in functions/testapp/Assets/Firebase/Sample/Functions/TestCase.cs
32 8 2
void GUIDisplayControls()
in firestore/testapp/Assets/Firebase/Sample/Firestore/UIHandler.cs
41 7 0
public bool Equals()
in firestore/testapp/Assets/Firebase/Sample/Firestore/SerializationTestData.cs
16 7 1
void OnGUI()
in storage/testapp/Assets/Firebase/Sample/Storage/UIHandler.cs
38 7 0
public static string DebugString()
in crashlytics/testapp/Assets/Firebase/Sample/Crashlytics/Utils.cs
29 7 2
public virtual void OnMessageReceived()
in messaging/testapp/Assets/Firebase/Sample/Messaging/UIHandler.cs
24 7 2
void GUIDisplayControls()
in messaging/testapp/Assets/Firebase/Sample/Messaging/UIHandler.cs
49 7 0
public static string DebugString()
in functions/testapp/Assets/Firebase/Sample/Functions/Utils.cs
29 7 2
protected void StartListener()
in database/testapp/Assets/Firebase/Sample/Database/UIHandler.cs
29 7 0
TransactionResult AddScoreTransaction()
in database/testapp/Assets/Firebase/Sample/Database/UIHandler.cs
28 7 1
protected string MetadataToString()
in storage/testapp/Assets/Firebase/Sample/Storage/UIHandler.cs
34 6 2
private static bool DeepEqualsDictionary()
in crashlytics/testapp/Assets/Firebase/Sample/Crashlytics/Utils.cs
20 6 3