Code Quality
Weight 20%avg_cc=3.17, max_cc=35, duplication=75.93%, dead_code=0
| Primary Language | JavaScript/TypeScript |
|---|---|
| Primary Framework | Next.js |
| Detected Frameworks | Next.js; React (Vite); React; TypeScript |
| Deployable Types | Frontend |
| Technology Stack | JavaScript/TypeScript |
| Default Branch | main |
| Documentation Priority | P3 |
| Last Repository Scan | 11/15/2026, 4:58:41 AM |
| Source Repository | Open on GitHub |
9818886f06e493cb2249733d114d339aa216ef00medusajs/nextjs-starter-medusa9818886f06e493cb2249733d114d339aa216ef00graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
medusa_next["medusa-next : MODULE"]:::atlasJob
RootLayout["RootLayout : UI_COMPONENT"]:::atlasJob
NotFound["NotFound : UI_COMPONENT"]:::atlasJob
CheckoutLayout["CheckoutLayout : UI_COMPONENT"]:::atlasJob
Loading["Loading : UI_COMPONENT"]:::atlasJob
Login["Login : UI_COMPONENT"]:::atlasJob
PRODUCT_LIMIT["PRODUCT_LIMIT : UI_COMPONENT"]:::atlasJob
ModalProvider["ModalProvider : UI_COMPONENT"]:::atlasJob
TransferRequestForm["TransferRequestForm : UI_COMPONENT"]:::atlasJob
CategoryTemplate["CategoryTemplate : UI_COMPONENT"]:::atlasJob
StripeCardContainer["StripeCardContainer : UI_COMPONENT"]:::atlasJob
StripeContext["StripeContext : UI_COMPONENT"]:::atlasJob
SubmitButton["SubmitButton : UI_COMPONENT"]:::atlasJob
CollectionTemplate["CollectionTemplate : UI_COMPONENT"]:::atlasJob
ProductActions["ProductActions : UI_COMPONENT"]:::atlasJob
ProductPrice["ProductPrice : UI_COMPONENT"]:::atlasJob
ShippingPriceNudge["ShippingPriceNudge : UI_COMPONENT"]:::atlasJob
Pagination["Pagination : UI_COMPONENT"]:::atlasJob
repo_root(["medusajs/nextjs-starter-medusa"]):::atlasRoot
repo_root --> CategoryTemplate
repo_root --> CheckoutLayout
repo_root --> CollectionTemplate
repo_root --> Loading
repo_root --> Login
repo_root --> ModalProvider
repo_root --> NotFound
repo_root --> PRODUCT_LIMIT
repo_root --> Pagination
repo_root --> ProductActions
repo_root --> ProductPrice
repo_root --> RootLayout
repo_root --> ShippingPriceNudge
repo_root --> SubmitButton
repo_root --> TransferRequestForm
repo_root --> medusa_next
StripeCardContainer --> StripeContext
package.json): MODULEsrc/app/layout.tsx): UI_COMPONENTsrc/app/not-found.tsx): UI_COMPONENTsrc/app/[countryCode]/(checkout)/layout.tsx): UI_COMPONENTsrc/app/[countryCode]/(main)/not-found.tsx): UI_COMPONENTsrc/app/[countryCode]/(main)/account/loading.tsx): UI_COMPONENTsrc/app/[countryCode]/(main)/account/@dashboard/loading.tsx): UI_COMPONENTsrc/app/[countryCode]/(main)/account/@login/page.tsx): UI_COMPONENTsrc/app/[countryCode]/(main)/cart/loading.tsx): UI_COMPONENTsrc/app/[countryCode]/(main)/cart/not-found.tsx): UI_COMPONENTsrc/app/[countryCode]/(main)/collections/[handle]/page.tsx): UI_COMPONENTsrc/app/[countryCode]/(main)/order/[id]/confirmed/loading.tsx): UI_COMPONENTsrc/lib/context/modal-context.tsx): UI_COMPONENTsrc/modules/account/components/transfer-request-form/index.tsx): UI_COMPONENTsrc/modules/categories/templates/index.tsx): UI_COMPONENTsrc/modules/checkout/components/payment-container/index.tsx): UI_COMPONENT (deps: StripeContext)src/modules/checkout/components/payment-wrapper/stripe-wrapper.tsx): UI_COMPONENTsrc/modules/checkout/components/submit-button/index.tsx): UI_COMPONENTsrc/modules/collections/templates/index.tsx): UI_COMPONENTsrc/modules/products/components/product-actions/index.tsx): UI_COMPONENTsrc/modules/products/components/product-price/index.tsx): UI_COMPONENTsrc/modules/shipping/components/free-shipping-price-nudge/index.tsx): UI_COMPONENTsrc/modules/store/components/pagination/index.tsx): UI_COMPONENTD (63.16/100)| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 49.32 | 0.20 | avg_cc=3.17, max_cc=35, duplication=75.93%, dead_code=0 |
| Dependency Health | B | 85.00 | 0.15 | dependencies=35, outdated=0, vulnerable=0, has_lockfile=False |
| Maintainability | F | 57.00 | 0.15 | avg_cognitive=2.56, max_cognitive=41, fitness_violations=3, oversized_files=0 |
| Pipeline Health | F | 40.00 | 0.15 | workflows=0 |
| Security | A | 100.00 | 0.20 | vulnerabilities=0, secrets=0, pipeline_security_findings=0 |
| Test Coverage | F | 40.00 | 0.15 | coverage=unavailable, ci_test_job=False, test_files_detected=False |
ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository duplication_pct (75.93) exceeds policy threshold (15.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cognitive_complexity (41.0) exceeds policy threshold (25.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cyclomatic_complexity (35.0) exceeds policy threshold (20.0).@babel/core 7.17.5 (npm, package.json)@headlessui/react 2.2.0 (npm, package.json)@medusajs/icons * (npm, package.json)@medusajs/js-sdk * (npm, package.json)@medusajs/types * (npm, package.json)@medusajs/ui * (npm, package.json)@medusajs/ui-preset * (npm, package.json)@radix-ui/react-accordion 1.2.1 (npm, package.json)@stripe/react-stripe-js 5.3.0 (npm, package.json)@stripe/stripe-js 8.2.0 (npm, package.json)@types/lodash 4.14.195 (npm, package.json)@types/node 17.0.21 (npm, package.json)@types/pg 8.11.0 (npm, package.json)@types/react 19.0.5 (npm, package.json)@types/react-dom 19.0.5 (npm, package.json)@types/react-instantsearch-dom 6.12.3 (npm, package.json)ansi-colors 4.1.3 (npm, package.json)autoprefixer 10.4.2 (npm, package.json)babel-loader 8.2.3 (npm, package.json)eslint 8.10.0 (npm, package.json)eslint-config-next 15.0.8 (npm, package.json)lodash 4.17.21 (npm, package.json)next 15.3.9 (npm, package.json)pg 8.11.3 (npm, package.json)postcss 8.4.8 (npm, package.json)prettier 2.8.8 (npm, package.json)qs 6.12.1 (npm, package.json)react 19.0.5 (npm, package.json)react-country-flag 3.1.0 (npm, package.json)react-dom 19.0.5 (npm, package.json)graph TD; classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6 classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6 classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf NoWorkflows[No Workflows Detected]:::atlasMore
avg_cc=3.17, max_cc=35, duplication=75.93%, dead_code=0
vulnerabilities=0, secrets=0, pipeline_security_findings=0
avg_cognitive=2.56, max_cognitive=41, fitness_violations=3, oversized_files=0
coverage=unavailable, ci_test_job=False, test_files_detected=False
dependencies=35, outdated=0, vulnerable=0, has_lockfile=False
workflows=0
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDsrc/modules/checkout/components/shipping/index.tsx:1Repository duplication_pct (75.93) exceeds policy threshold (15.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDsrc/modules/checkout/components/shipping/index.tsx:1Repository max_cognitive_complexity (41.0) exceeds policy threshold (25.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDsrc/modules/checkout/components/shipping/index.tsx:1Repository max_cyclomatic_complexity (35.0) exceeds policy threshold (20.0).
No known OSV vulnerabilities detected across 35 parsed dependencies.
No hardcoded secret patterns detected.
Single-package repository or no monorepo workspace manifests.
No Code-to-Cloud container, IaC, or deploy environment edges detected.