aws / amazon-gamelift-plugin-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 700 units with 9,211 lines of code in units (34.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (306 lines of code)
    • 6 medium complex units (470 lines of code)
    • 35 simple units (1,426 lines of code)
    • 658 very simple units (7,009 lines of code)
0% | 3% | 5% | 15% | 76%
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% | 3% | 3% | 12% | 80%
py0% | 0% | 21% | 38% | 40%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Runtime/Core0% | 16% | 7% | 22% | 53%
Editor/Resources0% | 0% | 20% | 35% | 43%
Editor/Deployment0% | 0% | 8% | 14% | 77%
Editor/CoreAPI0% | 0% | 4% | 13% | 82%
Samples~/SampleGame0% | 0% | 0% | 11% | 88%
Editor/Bootstrap0% | 0% | 0% | 15% | 84%
Editor/Credentials0% | 0% | 0% | 9% | 90%
Editor0% | 0% | 0% | 6% | 93%
Editor/LocalTest0% | 0% | 0% | 7% | 92%
Editor/PluginSettings0% | 0% | 0% | 0% | 100%
Editor/Controls0% | 0% | 0% | 0% | 100%
Runtime0% | 0% | 0% | 0% | 100%
Samples~/CustomScenario0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public CreateBucketResponse CreateBucket()
in Runtime/Core/BucketManagement/BucketStore.cs
306 29 1
public CreateChangeSetResponse CreateChangeSet()
in Runtime/Core/DeploymentManagement/DeploymentManager.cs
135 13 1
def handler()
in Editor/Resources/CloudFormation/scenario5_flexmatch/lambda/flexmatch_status_poller.py
89 12 2
def handler()
in Editor/Resources/CloudFormation/scenario4_spot_fleets/lambda/results_request.py
65 11 2
def handler()
in Editor/Resources/CloudFormation/scenario3_mrf_queue/lambda/results_request.py
65 11 2
public async Task StartDeployment()
in Editor/Deployment/DeploymentSettings.cs
78 11 1
private async Task PollStatusUntilDone()
in Editor/CoreAPI/DeploymentWaiter.cs
38 11 1
public virtual Response Update()
in Editor/Deployment/ScenarioParametersUpdater.cs
41 9 2
public virtual async Task StartDeployment()
in Editor/CoreAPI/DeployerBase.cs
46 9 5
public void Update()
in Samples~/SampleGame/Assets/Scripts/Server/NetworkServer.cs
36 8 0
public void Update()
in Samples~/SampleGame/Assets/Scripts/Input.cs
37 8 0
public bool SimulateOnInput()
in Samples~/SampleGame/Assets/Scripts/Simulation.cs
41 8 2
def handler()
in Editor/Resources/CloudFormation/scenario5_flexmatch/lambda/matchmaker_event_handler.py
71 7 2
public async Task RefreshExistingBuckets()
in Editor/Bootstrap/BootstrapSettings.cs
45 7 1
public void RefreshCurrentBucket()
in Editor/Bootstrap/BootstrapSettings.cs
20 7 0
public async Task GetConnectionInfo()
in Samples~/SampleGame/Assets/Scripts/Client/GameLiftClient.cs
37 7 1
public async Task StartGame()
in Runtime/Core/ApiGatewayManagement/ApiGateway.cs
65 7 1
public PutSettingResponse PutSetting()
in Runtime/Core/SettingsManagement/SettingsStore.cs
34 7 1
public void Draw()
in Editor/TextFilter.cs
34 6 0
public void Update()
in Editor/Credentials/AwsCredentialsUpdate.cs
41 6 0