microsoft / 2LCS
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 284 units with 6,725 lines of code in units (79.7% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (345 lines of code)
    • 2 medium complex units (173 lines of code)
    • 16 simple units (638 lines of code)
    • 265 very simple units (5,569 lines of code)
0% | 5% | 2% | 9% | 82%
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% | 5% | 2% | 9% | 82%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
2LCS/Forms0% | 6% | 3% | 8% | 82%
2LCS0% | 0% | 0% | 18% | 81%
2LCS/Cache0% | 0% | 0% | 0% | 100%
2LCS/Utils0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
345 28 2
68 17 1
105 17 2
51 10 2
public static bool IsOverlapped()
in 2LCS/Forms/MainForm.cs
23 9 1
53 9 0
61 9 2
private void NotifyIcon_MouseClick()
in 2LCS/Forms/MainForm.cs
30 8 2
51 8 2
50 8 2
private List GetHostedInstances()
in 2LCS/HttpClientHelper.cs
32 8 1
46 7 2
28 7 1
39 6 2
private void MainForm_Load()
in 2LCS/Forms/MainForm.cs
51 6 2
public void ChangeLcsProjectId()
in 2LCS/HttpClientHelper.cs
25 6 1
internal Dictionary GetCredentials()
in 2LCS/HttpClientHelper.cs
22 6 2
internal List GetRdpConnectionDetails()
in 2LCS/HttpClientHelper.cs
62 6 1
14 6 1
50 5 1