microsoft / IIS.Common
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 179 units with 3,171 lines of code in units (16.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (128 lines of code)
    • 6 simple units (170 lines of code)
    • 171 very simple units (2,873 lines of code)
0% | 0% | 4% | 5% | 90%
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
cxx0% | 0% | 57% | 30% | 11%
cs0% | 0% | 0% | 12% | 87%
h0% | 0% | 0% | 0% | 100%
hxx0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib0% | 0% | 57% | 30% | 11%
Managed/Util0% | 0% | 0% | 28% | 71%
Managed/PseudoLoc0% | 0% | 0% | 8% | 91%
Include0% | 0% | 0% | 0% | 100%
Managed/NativeMethods0% | 0% | 0% | 0% | 100%
open-inc0% | 0% | 0% | 0% | 100%
reftrace/include0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
cxx
BOOL IsUTF8URL()
in lib/normalize.cxx
52 13 1
cxx
STRA name()
in lib/normalize.cxx
76 12 2
public static bool IsLocalMachine()
in Managed/Util/WebUtility.cs
35 9 2
private static void DoCaseTranslation()
in Managed/PseudoLoc/PseudoLocalizer.cs
24 7 2
cxx
BOOL MULTISZ::AuxAppend()
in lib/multisz.cxx
35 7 3
cxx
BOOL MULTISZA::AuxAppend()
in lib/multisza.cxx
34 7 3
private Authorization Authenticate()
in Managed/Util/AuthenticationModule.cs
22 6 2
20 6 1
28 5 2
public static void Enable()
in Managed/PseudoLoc/PseudoLocalizer.cs
27 5 1
25 5 2
public static List GetAssemblyList()
in Managed/Util/GACManagedAccess.cs
33 5 2
HRESULT Init()
in Include/rwlock.h
25 4 0
void ReleaseRWLock()
in Include/rwlock.h
17 4 0
internal static extern bool AdjustTokenPrivileges()
in Managed/NativeMethods/AdvApi32.cs
85 4 2
static PseudoLocalizer()
in Managed/PseudoLoc/PseudoLocalizer.cs
25 4 0
public static bool TryEnableAssembly()
in Managed/PseudoLoc/PseudoLocalizer.cs
33 4 1
private static void OnCurrentDomainAssemblyLoad()
in Managed/PseudoLoc/PseudoLocalizer.cs
23 4 2
private static bool AreTokensTheSame()
in Managed/Util/ExceptionHelper.cs
15 4 2
internal GacAssembly()
in Managed/Util/GACManagedAccess.cs
22 4 1