awslabs / amazon-quicksight-embedding-sdk
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 22 units with 313 lines of code in units (61.3% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (130 lines of code)
    • 0 medium size units (0 lines of code)
    • 9 small units (116 lines of code)
    • 11 very small units (67 lines of code)
0% | 41% | 0% | 37% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 41% | 0% | 37% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 50% | 0% | 31% | 17%
src/lib0% | 0% | 0% | 63% | 36%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
constructor()
in src/EmbeddableObject.js
73 16 1
function getIframeSrc()
in src/EmbeddableObject.js
57 15 1
function createIframe()
in src/EmbeddableObject.js
20 6 1
export default function constructEvent()
in src/lib/constructEvent.js
13 2 2
function off()
in src/lib/eventify.js
12 3 2
getActiveParameterValues()
in src/EmbeddableObject.js
12 3 1
getSheets()
in src/EmbeddableObject.js
12 3 1
handleShowQ()
in src/EmbeddableObject.js
12 7 1
handleHideQ()
in src/EmbeddableObject.js
12 7 1
function useParameterValuesInUrl()
in src/EmbeddableObject.js
12 1 2
11 2 1
function sendInitialPostMessage()
in src/EmbeddableObject.js
9 2 2
function attachToDom()
in src/embed.js
9 3 2
function on()
in src/lib/eventify.js
8 2 2
7 2 1
7 2 1
function trigger()
in src/lib/eventify.js
6 2 2
handleResizeQ()
in src/EmbeddableObject.js
5 3 1
function embedObject()
in src/embed.js
5 1 1
4 1 1