microsoft / MFCStoreClient
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 31 units with 522 lines of code in units (22.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 5 simple units (234 lines of code)
    • 26 very simple units (288 lines of code)
0% | 0% | 0% | 44% | 55%
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
cpp0% | 0% | 0% | 40% | 59%
h0% | 0% | 0% | 68% | 31%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Win32TestApp0% | 0% | 0% | 73% | 26%
WindowsStore0% | 0% | 0% | 33% | 66%
WindowsStoreDLL0% | 0% | 0% | 33% | 66%
MFCClient0% | 0% | 0% | 68% | 31%
ConsoleApplication10% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
int main()
in Win32TestApp/Win32TestApp.cpp
63 10 0
void WindowsStoreImpl::Purchase()
in WindowsStore/WindowsStoreImpl.cpp
62 10 2
IAsyncAction WindowsStoreImpl::Purchase()
in WindowsStoreDLL/WindowsStoreImpl.cpp
57 10 2
static bool windows10orGreater()
in MFCClient/WindowsVersionHelper.h
26 6 0
static bool windows10orGreater()
in Win32TestApp/WindowsVersionHelper.h
26 6 0
WindowsStoreErrorType store_initialize()
in WindowsStore/WindowsStore.cpp
29 5 4
void WindowsStoreImpl::GetLicenseState()
in WindowsStore/WindowsStoreImpl.cpp
21 3 2
WindowsStoreErrorType store_initialize()
in WindowsStoreDLL/WindowsStore.cpp
21 3 4
IAsyncAction WindowsStoreImpl::GetLicenseState()
in WindowsStoreDLL/WindowsStoreImpl.cpp
21 3 2
static bool windows10orGreaterWithManifest()
in MFCClient/WindowsVersionHelper.h
12 2 0
static bool windows10orGreaterWithManifest()
in Win32TestApp/WindowsVersionHelper.h
12 2 0
bool isRunningInsideAppPackage()
in WindowsStore/WindowsStore.cpp
10 2 0
void store_purchase()
in WindowsStore/WindowsStore.cpp
8 2 3
void store_license_state()
in WindowsStore/WindowsStore.cpp
8 2 3
void store_get_price()
in WindowsStore/WindowsStore.cpp
8 2 3
void store_free()
in WindowsStore/WindowsStore.cpp
8 2 1
void WindowsStoreImpl::GetPrice()
in WindowsStore/WindowsStoreImpl.cpp
14 2 2
void WindowsStoreImpl::OfflineLicensesChanged()
in WindowsStore/WindowsStoreImpl.cpp
7 2 2
bool isRunningInsideAppPackage()
in WindowsStoreDLL/WindowsStore.cpp
10 2 0
void store_purchase()
in WindowsStoreDLL/WindowsStore.cpp
8 2 3