aws-samples / lti-ready-virtual-classroom-with-amazon-chime-sdk
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 184 units with 2,560 lines of code in units (13.4% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (95 lines of code)
    • 2 medium complex units (74 lines of code)
    • 14 simple units (368 lines of code)
    • 167 very simple units (2,023 lines of code)
0% | 3% | 2% | 14% | 79%
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
tsx0% | 15% | 0% | 23% | 60%
ts0% | 0% | 9% | 0% | 90%
js0% | 0% | 2% | 15% | 82%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
chime-sdk-components/react-meeting-demo/src0% | 12% | 5% | 17% | 64%
lti-components/web/amplify0% | 0% | 8% | 20% | 71%
chime-sdk-components/backend-cdk/src0% | 0% | 0% | 22% | 77%
lti-components/web/src0% | 0% | 0% | 5% | 95%
chime-sdk-components/backend-cdk/lib0% | 0% | 0% | 0% | 100%
chime-sdk-components/frontend-cdk/lib0% | 0% | 0% | 0% | 100%
lti-components/web0% | 0% | 0% | 0% | 100%
chime-sdk-components/backend-cdk0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export function useAttendeeStatus()
in chime-sdk-components/react-meeting-demo/src/hooks/sdk/useAttendeeStatus.tsx
95 27 1
async listAndSelectDevices()
in chime-sdk-components/react-meeting-demo/src/providers/MeetingProvider/MeetingManager.ts
43 13 0
constructor()
in lti-components/web/amplify/backend/function/chimeLtiApiAuth/src/utils/LTIMessage.js
31 12 2
function analyserNodeCallback()
in chime-sdk-components/react-meeting-demo/src/hooks/sdk/useLocalAudioInputActivity.tsx
26 8 0
function AuthPolicy()
in lti-components/web/amplify/backend/function/chimeEventApiAuthorizer/src/index.js
23 7 3
var addMethod = function()
in lti-components/web/amplify/backend/function/chimeEventApiAuthorizer/src/index.js
30 7 4
var getStatementsForEffect = function()
in lti-components/web/amplify/backend/function/chimeEventApiAuthorizer/src/index.js
21 7 2
render()
in lti-components/web/src/components/EventCard/ExpandableText.js
11 7 0
function AuthPolicy()
in chime-sdk-components/backend-cdk/src/auth/auth.js
23 7 3
var addMethod = function()
in chime-sdk-components/backend-cdk/src/auth/auth.js
30 7 4
var getStatementsForEffect = function()
in chime-sdk-components/backend-cdk/src/auth/auth.js
21 7 2
async function createEvent()
in chime-sdk-components/backend-cdk/src/setup/setup.js
31 7 1
constructor()
in lti-components/web/src/utils/ScheduledEvent.js
16 6 2
async function assignAttendee()
in chime-sdk-components/backend-cdk/src/join/join.js
20 6 1
audioInputsChanged: async()
in chime-sdk-components/react-meeting-demo/src/providers/DevicesProvider/AudioInputProvider.tsx
26 6 1
export function reducer()
in chime-sdk-components/react-meeting-demo/src/providers/RemoteVideoTileProvider/state.tsx
50 6 3
export function useBandwidthMetrics()
in chime-sdk-components/react-meeting-demo/src/hooks/sdk/useBandwidthMetrics.tsx
40 6 0
build: function()
in lti-components/web/amplify/backend/function/chimeEventApiAuthorizer/src/index.js
15 5 0
handleEventActionResult()
in lti-components/web/src/components/EventCard/EventCard.js
11 5 1
build: function()
in chime-sdk-components/backend-cdk/src/auth/auth.js
15 5 0