microsoft / Network-Adapter-Class-Extension
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 232 units with 1,730 lines of code in units (3.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (135 lines of code)
    • 6 simple units (240 lines of code)
    • 224 very simple units (1,355 lines of code)
0% | 0% | 7% | 13% | 78%
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
h0% | 0% | 10% | 10% | 79%
cpp0% | 0% | 0% | 34% | 65%
hpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
rtl/inc0% | 0% | 10% | 10% | 78%
netcx/adapter0% | 0% | 0% | 43% | 56%
netcx/ec/lib0% | 0% | 0% | 32% | 68%
netcx/translator0% | 0% | 0% | 0% | 100%
netcx/adapter/powerpolicy0% | 0% | 0% | 0% | 100%
netcx/bm0% | 0% | 0% | 0% | 100%
netcx/adapter/types0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
86 17 4
PAGED void moveElements()
in rtl/inc/karray.h
49 11 3
PAGED bool reserve()
in rtl/inc/karray.h
31 9 1
PAGED bool insertAt()
in rtl/inc/karray.h
31 8 3
void TimeBudgetWarningLogger::LogWarningIfOvertime()
in netcx/ec/lib/timebudgetwarninglogger.cpp
32 7 1
PAGED bool resize()
in rtl/inc/karray.h
28 7 1
void NxAdapter::ReportWakeReasonPacket()
in netcx/adapter/nxadapter.cpp
73 6 1
45 6 3
PAGED bool insertAt()
in rtl/inc/karray.h
12 5 2
14 5 2
23 5 3
case MAKEVER()
in netcx/adapter/version.cpp
14 4 2
case MAKEVER()
in netcx/adapter/version.cpp
12 4 2
PAGED bool insertAt()
in rtl/inc/karray.h
12 4 2
PAGED bool insertSorted()
in rtl/inc/karray.h
11 4 2
14 4 2
NONPAGED void reset()
in rtl/inc/karray.h
17 4 0
PAGED bool grow()
in rtl/inc/karray.h
11 4 1
NONPAGED void AddValue()
in rtl/inc/khistogram.h
18 4 1
23 4 2