aws-samples / amazon-chime-sdk-aws-appsync-sample
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 25 units with 541 lines of code in units (48.5% 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 (33 lines of code)
    • 24 very simple units (508 lines of code)
0% | 0% | 0% | 6% | 93%
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% | 0% | 7% | 92%
tsx0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Website/src0% | 0% | 0% | 38% | 61%
Infra/lib/stack0% | 0% | 0% | 0% | 100%
Website/src/containers0% | 0% | 0% | 0% | 100%
Infra/lib/constructs0% | 0% | 0% | 0% | 100%
Infra/lib/custom-resources0% | 0% | 0% | 0% | 100%
Infra/lib0% | 0% | 0% | 0% | 100%
Website/src/api0% | 0% | 0% | 0% | 100%
Lambdas/ChimeCallService/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function registerValidSW()
in Website/src/serviceWorker.ts
33 8 2
export function register()
in Website/src/serviceWorker.ts
22 5 1
function checkValidServiceWorker()
in Website/src/serviceWorker.ts
20 4 2
def on_event()
in Infra/lib/custom-resources/upload-website-config/app.py
14 4 2
meeting: graphqlify()
in Website/src/containers/Home/HomeContainer.tsx
25 3 1
attendee: graphqlify()
in Website/src/containers/Home/HomeContainer.tsx
24 3 1
async createChimeSession()
in Website/src/api/ChimeCallServiceClient.ts
9 2 0
meeting: graphqlify()
in Website/src/containers/Home/HomeContainer.tsx
24 2 1
export function unregister()
in Website/src/serviceWorker.ts
11 2 0
mutation startChimeSession()
in Website/src/containers/Home/HomeContainer.tsx
2 1 3
startChimeSession()
in Website/src/containers/Home/HomeContainer.tsx
5 1 3
mutation claimChimeSession()
in Website/src/containers/Home/HomeContainer.tsx
3 1 1
jwtToken: async()
in Website/src/containers/Home/HomeContainer.tsx
3 1 0
complexObjectsCredentials: async()
in Website/src/containers/Home/HomeContainer.tsx
3 1 0
onClick: async()
in Website/src/containers/App/index.tsx
4 1 0
constructor()
in Infra/lib/AppStacks.ts
22 1 2
def update_website_config()
in Infra/lib/custom-resources/upload-website-config/app.py
14 1 4
constructor()
in Infra/lib/constructs/MeetingProvider.ts
46 1 3
constructor()
in Infra/lib/stack/UserPoolStack.ts
9 1 2
constructor()
in Infra/lib/stack/AppSyncStack.ts
60 1 3