microsoft / SCXcore
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 8,707 units with 71,638 lines of code in units (64.3% of code).
    • 2 very complex units (458 lines of code)
    • 5 complex units (862 lines of code)
    • 36 medium complex units (2,679 lines of code)
    • 51 simple units (2,178 lines of code)
    • 8,613 very simple units (65,461 lines of code)
<1% | 1% | 3% | 3% | 91%
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
cpp3% | 6% | 21% | 17% | 50%
py0% | 0% | 0% | 9% | 90%
h0% | 0% | 0% | 0% | 100%
c0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/code/providers/support9% | 6% | 22% | 16% | 44%
source/code/shared/tools0% | 20% | 15% | 22% | 41%
source/code/providers0% | <1% | 2% | 1% | 96%
installer0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void JBossAppServerInstance::UpdateJBoss5Ports()
in source/code/providers/support/appserver/jbossappserverinstance.cpp
190 58 0
void JBossAppServerInstance::UpdateJBoss7Ports()
in source/code/providers/support/appserver/jbossappserverinstance.cpp
268 58 0
int main()
in source/code/shared/tools/scx_ssl_config/scx_ssl_config.cpp
228 42 2
int main()
in source/code/providers/support/logfilereader.cpp
135 31 2
void JBossAppServerInstance::UpdateVersion()
in source/code/providers/support/appserver/jbossappserverinstance.cpp
176 30 0
void SCXSSLCertificate::DoGenerate()
in source/code/shared/tools/scx_ssl_config/scxsslcert.cpp
186 30 0
static void EnumerateOneInstance()
in source/code/providers/SCX_UnixProcess_Class_Provider.cpp
137 27 4
static void EnumerateOneInstance()
in source/code/providers/SCX_OperatingSystem_Class_Provider.cpp
102 25 5
static void EnumerateOneInstance()
in source/code/providers/SCX_UnixProcessStatisticalInformation_Class_Provider.cpp
119 25 4
int scx_admin()
in source/code/shared/tools/scx_admin/scx_admin.cpp
78 23 2
void JBossAppServerInstance::UpdateJBoss4Ports()
in source/code/providers/support/appserver/jbossappserverinstance.cpp
86 21 0
static void EnumerateOneInstance()
in source/code/providers/SCX_FileSystem_Class_Provider.cpp
87 18 4
static void EnumerateOneInstance()
in source/code/providers/SCX_MemoryStatisticalInformation_Class_Provider.cpp
99 18 4
void SCX_UnixProcessStatisticalInformation_Class_Provider::GetInstance()
in source/code/providers/SCX_UnixProcessStatisticalInformation_Class_Provider.cpp
66 18 4
void AppServerEnumeration::Update()
in source/code/providers/support/appserver/appserverenumeration.cpp
91 18 1
void JBossAppServerInstance::UpdateJBoss4PortsFromServiceBinding()
in source/code/providers/support/appserver/jbossappserverinstance.cpp
74 18 2
void TomcatAppServerInstance::UpdatePorts()
in source/code/providers/support/appserver/tomcatappserverinstance.cpp
74 18 0
static void EnumerateOneInstance()
in source/code/providers/SCX_DiskDrive_Class_Provider.cpp
82 17 4
void WebSphereAppServerInstance::UpdatePorts()
in source/code/providers/support/appserver/websphereappserverinstance.cpp
73 17 0
static void EnumerateOneInstance()
in source/code/providers/SCX_FileSystemStatisticalInformation_Class_Provider.cpp
92 16 4