microsoft / PowerBI-visuals-WordCloud
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 78 units with 1,261 lines of code in units (67.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (194 lines of code)
    • 9 simple units (328 lines of code)
    • 64 very simple units (739 lines of code)
0% | 0% | 15% | 26% | 58%
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% | 15% | 26% | 58%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 15% | 26% | 58%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static CONVERTER()
in src/WordCloud.ts
70 19 3
private findPosition()
in src/WordCloud.ts
57 16 4
public static GET_CATEGORICAL_VALUES()
in src/WordCloudColumns.ts
16 14 1
public static GET_CATEGORICAL_COLUMNS()
in src/WordCloudColumns.ts
13 14 1
public update()
in src/WordCloud.ts
38 13 1
private setSprites()
in src/WordCloud.ts
58 10 2
private computeCycle()
in src/WordCloud.ts
35 9 5
33 9 1
20 7 1
public init()
in src/WordCloud.ts
40 7 1
private updateBorders()
in src/WordCloud.ts
29 7 2
private generateSprites()
in src/WordCloud.ts
66 7 3
private checkIntersect()
in src/WordCloud.ts
31 6 2
16 6 1
private computePositions()
in src/WordCloud.ts
36 5 1
private getRatio()
in src/WordCloud.ts
16 5 1
public static GET_SERIES_VALUES()
in src/WordCloudColumns.ts
10 5 1
private selectInternal()
in src/valueSelectionManager.ts
20 5 2
public get viewportChanged()
in src/VisualLayout.ts
5 4 0
30 4 3