aws-samples / amazon-chime-sdk-meetings-breakout-rooms
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 21 units with 468 lines of code in units (16.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (25 lines of code)
    • 20 very simple units (443 lines of code)
0% | 0% | 0% | 5% | 94%
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% | 0% | 0% | 23% | 76%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
front-end-resources/react-meeting/src/containers0% | 0% | 0% | 86% | 13%
back-end-resources0% | 0% | 0% | 0% | 100%
front-end-resources/react-meeting/src/utils0% | 0% | 0% | 0% | 100%
front-end-resources0% | 0% | 0% | 0% | 100%
front-end-resources/react-meeting/src/components0% | 0% | 0% | 0% | 100%
front-end-resources/react-meeting/src/hooks0% | 0% | 0% | 0% | 100%
front-end-resources/react-meeting/src/providers0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
async function getNearestRegion()
in front-end-resources/react-meeting/src/containers/MeetingForm/RegionSelection.tsx
25 7 0
export async function fetchMeeting()
in front-end-resources/react-meeting/src/utils/api.ts
21 3 3
function formatMetric()
in front-end-resources/react-meeting/src/containers/MeetingMetrics/index.tsx
3 2 1
export function useAppState()
in front-end-resources/react-meeting/src/providers/AppStateProvider.tsx
7 2 0
export async function createMeeting()
in front-end-resources/react-meeting/src/utils/api.ts
19 2 3
export function createGetAttendeeCallback()
in front-end-resources/react-meeting/src/utils/api.ts
17 2 1
export async function endMeeting()
in front-end-resources/react-meeting/src/utils/api.ts
11 2 1
export async function getBreakouts()
in front-end-resources/react-meeting/src/utils/api.ts
15 2 1
constructor()
in front-end-resources/front-end.ts
50 1 2
await createMeeting()
in front-end-resources/react-meeting/src/containers/BreakoutControls/BreakoutModal.tsx
1 1 3
export function getErrorContext()
in front-end-resources/react-meeting/src/providers/ErrorProvider.tsx
3 1 0
constructor()
in front-end-resources/react-meeting/src/providers/SIPMeetingProvider/SIPMeetingManager.ts
3 1 1
export default function getFormattedOptionsForSelect()
in front-end-resources/react-meeting/src/utils/select-options-format.ts
9 1 1
export default function SIPMeetingForm()
in front-end-resources/react-meeting/src/components/SIPMeetingForm/index.tsx
43 1 5
export default function useToggle()
in front-end-resources/react-meeting/src/hooks/useToggle.tsx
7 1 1
function toggle()
in front-end-resources/react-meeting/src/hooks/useToggle.tsx
3 1 0
export default function useDevicePermissionStatus()
in front-end-resources/react-meeting/src/hooks/useDevicePermissionStatus.tsx
16 1 0
constructor()
in index.ts
5 1 3
constructor()
in index.ts
4 1 3
constructor()
in back-end-resources/back-end.ts
179 1 2