microsoft / MixedRealityToolkit
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 7,316 units with 120,469 lines of code in units (30.9% of code).
    • 51 very complex units (15,764 lines of code)
    • 97 complex units (12,142 lines of code)
    • 283 medium complex units (17,160 lines of code)
    • 562 simple units (17,838 lines of code)
    • 6,323 very simple units (57,565 lines of code)
13% | 10% | 14% | 14% | 47%
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
c56% | 15% | 9% | 9% | 8%
cpp5% | 11% | 17% | 16% | 48%
h5% | 2% | 11% | 10% | 70%
cc0% | 0% | 23% | 39% | 36%
java0% | 0% | 11% | 0% | 88%
hpp0% | 0% | 0% | 31% | 68%
cs0% | 0% | 0% | 5% | 94%
inl0% | 0% | 0% | 8% | 91%
py0% | 0% | 0% | 47% | 52%
hh0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Sharing15% | 6% | 9% | 15% | 52%
SpatialUnderstanding9% | 15% | 21% | 10% | 42%
SpatialInput11% | 11% | 21% | 18% | 36%
SpatialMapping0% | 13% | 6% | 29% | 51%
Input0% | 0% | 0% | 42% | 57%
GpuStats0% | 0% | 0% | 41% | 58%
EditorMotionControllerDLL0% | 0% | 0% | 42% | 57%
SpectatorViewPlugin0% | 0% | 0% | 0% | 100%
DotNetNativeWorkaround0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
int cc_binary_string()
in Sharing/Src/External/zint-2.4.3/src/backend/composite.c
788 366 7
int c1_encode()
in Sharing/Src/External/zint-2.4.3/src/backend/code1.c
593 268 4
int rss_binary_string()
in Sharing/Src/External/zint-2.4.3/src/backend/rss.c
605 267 3
int aztec()
in Sharing/Src/External/zint-2.4.3/src/backend/aztec.c
523 240 3
int aztec_text_process()
in Sharing/Src/External/zint-2.4.3/src/backend/aztec.c
550 233 4
int gm_encode()
in Sharing/Src/External/zint-2.4.3/src/backend/gridmtx.c
336 192 4
Bool HMapMeshInfos3D::ProcessBubbleAlgorithm()
in SpatialUnderstanding/Src/PlaySpace/PlaySpace_ScanMesh_W.cpp
508 189 3
int code16k()
in Sharing/Src/External/zint-2.4.3/src/backend/code16k.c
382 144 3
int render_plot()
in Sharing/Src/External/zint-2.4.3/src/backend/render.c
511 139 3
void Playspace_Mesh::SimplifyTri2()
in SpatialUnderstanding/Src/PlaySpace/PlaySpace_Mesh_W.cpp
484 126 3
inline size_t BitsPerPixel()
in SpatialInput/External/DirectXTK/LoaderHelpers.h
146 124 1
int rssexpanded()
in Sharing/Src/External/zint-2.4.3/src/backend/rss.c
318 123 3
bool TinyGLTF::LoadFromString()
in SpatialInput/External/tiny_gltf.h
366 122 6
int gs1_verify()
in Sharing/Src/External/zint-2.4.3/src/backend/gs1.c
204 112 4
int svg_plot()
in Sharing/Src/External/zint-2.4.3/src/backend/svg.c
511 111 1
int ps_plot()
in Sharing/Src/External/zint-2.4.3/src/backend/ps.c
661 109 1
Bool PlaySpaceInfos_W::GetBestCentroidPosition()
in SpatialUnderstanding/Src/PlaySpace/PlaySpaceInfos_W.cpp
261 108 2
int evaluate()
in Sharing/Src/External/zint-2.4.3/src/backend/qr.c
209 103 3
int dm200encode()
in Sharing/Src/External/zint-2.4.3/src/backend/dmatrix.c
348 102 5
int code_128()
in Sharing/Src/External/zint-2.4.3/src/backend/code128.c
329 101 3