Msaied855/ClientSideTask

https://github.com/Msaied855/ClientSideTask

Scanned on Mar 25, 2026

10 High
8 Medium
56 Low

AI Assessment

VERDICT

Based on automated scanner findings, this repository shows acceptable security posture but needs significant work on code quality and project documentation before production deployment. The 56 code quality issues and missing project fundamentals (tests, README, LICENSE) indicate an incomplete state.

TOP RISKS

→ Duplicated code block spanning 522 lines flagged 10 times across package-lock.json, node_modules/mrmime/index.js, and node_modules/dayjs/index.d.ts. Scanners detected substantial code duplication at 8.5% (149 clones), suggesting potential maintainability issues.

→ No test suite detected. The scanner found zero test files in the repository, creating risk for undetected regressions.

→ Missing core project files: no README, no LICENSE, and no .gitignore. These are flagged as best practices violations that indicate incomplete project setup.

→ Three medium-severity findings related to button type usage and iterable callback returns in code quality analysis, file paths not specified in scanner output.

→ 32 unused variable instances and 11 formatting violations scattered across the codebase.

WHAT TO FIX FIRST

Add a comprehensive test suite. The "No tests detected" finding would have the largest immediate impact on production readiness and code confidence. This single addition addresses a critical gap in the C grade.

NOTES

The 10 duplicated code block findings reference node_modules entries, which may represent false positives (dependencies typically should not be flagged). Verify these findings against your actual source code. All security and secrets scanning passed cleanly. Focus remediation on documentation, testing infrastructure, and code cleanup rather than security hardening.

fix-prompt.md

Category Breakdown

Security0%Secrets & Credentials0%Dependencies0%Code Quality0%Best Practices0%
300/300
Security
200/200
Secrets & Credentials
150/150
Dependencies
88/100
Code Quality56 findings
87/100
Best Practices7 findings

Findings(74 in 16 groups)

Tip: 56 low-severity findings are style suggestions, not security risks.

The same code is copied in multiple places. If there's a bug in one copy, all the other copies still have it. This makes fixing bugs much harder.

AI Fix Prompt

In package-lock.json at line 15, duplicated code was detected. Refactor it: 1. Identify the repeated code block 2. Extract it into a shared function with a descriptive name 3. Replace all multiple copies with calls to the new function 4. If the copies differ slightly, add parameters to the function to handle the differences 5. Make sure all existing behavior is preserved after the refactor

package-lock.jsonL15
node_modules/mrmime/index.jsL1
node_modules/dayjs/index.d.tsL1
node_modules/eta/dist/index.cjsL123
node_modules/eta/dist/index.d.ctsL1

A code quality issue was found. It may not be a security risk, but fixing it makes your code more reliable and easier to work with.

AI Fix Prompt

In your project, there's a code quality issue: "Use Button Type". Please review and fix this according to best practices. The linter rule lint/a11y/useButtonType this as a problem — look up the rule for guidance on the correct fix.

A code quality issue was found. It may not be a security risk, but fixing it makes your code more reliable and easier to work with.

AI Fix Prompt

In your project, there's a code quality issue: "Use Iterable Callback Return". Please review and fix this according to best practices. The linter rule lint/suspicious/useIterableCallbackReturn this as a problem — look up the rule for guidance on the correct fix.

Your project has no README file. People (and AI tools) can't understand what your app does, how to set it up, or how to use it.

AI Fix Prompt

Create a README.md file in your project root with: 1. Project name and a one-line description of what it does 2. How to install/set up the project (prerequisites, npm install, env vars) 3. How to run it (dev server, build, test commands) 4. Brief explanation of the tech stack 5. Keep it simple — a good README is better than a perfect one you never write

Your project has no license file. Without one, nobody can legally use, modify, or contribute to your code — even if it's public on GitHub.

AI Fix Prompt

Add a LICENSE file to your project root: 1. For open source: create a file called LICENSE and paste the MIT License text (most popular for open source) 2. For private/commercial: add a LICENSE file stating "All rights reserved" and your copyright 3. Choose a license at https://choosealicense.com if you're unsure 4. Add the license type to your package.json: "license": "MIT"

Your app has no automated tests. You won't know if a code change breaks something until real users complain. This is the #1 reason apps break after updates.

AI Fix Prompt

Your project has no test files. Add basic tests: 1. Install a test framework: npm install -D vitest (or jest) 2. Create a __tests__ folder or add .test.ts files next to your source files 3. Start by writing tests for your most important functions — the ones that handle money, auth, or user data 4. Add a "test" script to your package.json: "test": "vitest" 5. Run tests with: npm test

There's code that's not being used anywhere. It won't cause security issues but makes your app harder to understand and maintain.

AI Fix Prompt

In your project, there are unused variables or imports. Clean them up: 1. Remove any variables, functions, or imports that are highlighted as unused 2. If you plan to use them later, add a TODO comment explaining why they're there 3. Check if removing them causes any issues by running your app

A code quality issue was found. It may not be a security risk, but fixing it makes your code more reliable and easier to work with.

AI Fix Prompt

In your project, there's a code quality issue: "Format". Please review and fix this according to best practices. The linter rule format this as a problem — look up the rule for guidance on the correct fix.

A code quality issue was found. It may not be a security risk, but fixing it makes your code more reliable and easier to work with.

AI Fix Prompt

In your project, there's a code quality issue: "No Descending Specificity". Please review and fix this according to best practices. The linter rule lint/style/noDescendingSpecificity this as a problem — look up the rule for guidance on the correct fix.

A code quality issue was found. It may not be a security risk, but fixing it makes your code more reliable and easier to work with.

AI Fix Prompt

In your project, there's a code quality issue: "Use Arrow Function". Please review and fix this according to best practices. The linter rule lint/complexity/useArrowFunction this as a problem — look up the rule for guidance on the correct fix.

Share your ShipScanner

Show the world your code quality. Your report has a beautiful preview image built in.

Embed Trust Badge

Show your code quality score in your README. The badge updates automatically every time you re-scan.

README.md
ShipScanner: B 665
[![ShipScanner: B 665](https://shipscanner.dev/api/badge/cmn5gr5u60001jr04rs3zl4so)](https://shipscanner.dev/report/cmn5gr5u60001jr04rs3zl4so)