microsoft / MFCStoreClient
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 31 units with 522 lines of code in units (22.4% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (182 lines of code)
    • 6 medium size units (144 lines of code)
    • 5 small units (70 lines of code)
    • 17 very small units (126 lines of code)
0% | 34% | 27% | 13% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp0% | 40% | 20% | 10% | 28%
h0% | 0% | 68% | 31% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Win32TestApp0% | 52% | 21% | 9% | 16%
WindowsStore0% | 33% | 27% | 7% | 31%
WindowsStoreDLL0% | 33% | 24% | 18% | 23%
MFCClient0% | 0% | 68% | 31% | 0%
ConsoleApplication10% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest 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
WindowsStoreErrorType store_initialize()
in WindowsStore/WindowsStore.cpp
29 5 4
static bool windows10orGreater()
in MFCClient/WindowsVersionHelper.h
26 6 0
static bool windows10orGreater()
in Win32TestApp/WindowsVersionHelper.h
26 6 0
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
WindowsStoreErrorType WindowsStoreImpl::Initialize()
in WindowsStoreDLL/WindowsStoreImpl.cpp
16 2 3
IAsyncAction WindowsStoreImpl::GetPrice()
in WindowsStoreDLL/WindowsStoreImpl.cpp
16 2 2
void WindowsStoreImpl::GetPrice()
in WindowsStore/WindowsStoreImpl.cpp
14 2 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
WindowsStoreErrorType WindowsStoreImpl::Initialize()
in WindowsStore/WindowsStoreImpl.cpp
10 1 3
bool isRunningInsideAppPackage()
in WindowsStoreDLL/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