microsoft / PowerBI-visuals-PowerKPIMatrix
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 409 units with 5,997 lines of code in units (69.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 16 medium complex units (1,112 lines of code)
    • 35 simple units (1,166 lines of code)
    • 358 very simple units (3,719 lines of code)
0% | 0% | 18% | 19% | 62%
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
ts0% | 0% | 18% | 19% | 62%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/converter0% | 0% | 41% | 29% | 28%
src/visualComponent0% | 0% | 10% | 21% | 67%
src0% | 0% | 46% | 0% | 53%
src/services0% | 0% | 0% | 4% | 95%
src/settings0% | 0% | 0% | 2% | 97%
src/utils0% | 0% | 0% | 0% | 100%
src/hyperlink0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
protected converterStep()
in src/converter/data/columnBasedModel/columnBasedModelConverter.ts
130 20 1
protected applyDataToCurrentSeries()
in src/converter/data/dataConverter.ts
136 20 1
protected converterStep()
in src/converter/data/rowBasedModel/rowBasedModelConverter.ts
136 20 1
private applyCategorySet()
in src/converter/data/dataConverter.ts
68 19 6
protected getSeriesByDisplayName()
in src/converter/data/dataConverter.ts
91 18 13
private getIndexByPosition()
in src/visualComponent/table/cell/sparkline/sparklineCellComponent.ts
28 18 1
protected applyState()
in src/visualComponent/table/row/rowComponent.ts
51 17 1
public update()
in src/visual.ts
53 15 1
private postProcess()
in src/converter/data/dataConverter.ts
60 14 6
40 14 1
private getSettings()
in src/visual.ts
26 13 2
private convertDataToPowerKPIFormat()
in src/visualComponent/dynamic/powerKPIComponent.ts
143 13 1
private parseCategorySet()
in src/converter/data/dataConverter.ts
37 12 2
private bindClickEventToOpenModalWindow()
in src/visualComponent/table/body/bodyRowComponent.ts
27 12 1
private getValueTooltip()
in src/visualComponent/table/cell/sparkline/dynamic/tooltipComponent.ts
31 12 1
public render()
in src/visualComponent/table/body/bodyRowComponent.ts
55 11 1
public abstract deepSearchSeries()
in src/converter/data/dataConverter.ts
93 10 2
public convert()
in src/converter/data/dataConverter.ts
89 10 1
protected applyXArguments()
in src/converter/data/dataConverter.ts
29 10 3
public render()
in src/visualComponent/table/body/collapsedBodyRowComponent.ts
37 10 1