AhmedAliAbdAlMowla/Emotion-recognition-using-facial-expressions

https://github.com/AhmedAliAbdAlMowla/Emotion-recognition-using-facial-expressions

Scanned on Mar 29, 2026

3 Medium
7 Low

AI Assessment

VERDICT

The scanner analysis indicates this project is not production-ready. While no security vulnerabilities or credential leaks were detected, significant best practices gaps and code quality issues would need addressing before deployment.

TOP RISKS

→ Duplicated code block of 23 lines flagged across three locations in gui.py (lines 33, 56, 85). The scanner detected this same pattern repeated three times, suggesting the code could be refactored into a reusable function.

→ No LICENSE file detected. The scanner flagged the repository lacks an explicit license declaration, which is critical for open source projects and legal clarity.

→ No tests detected. The scanner found no test suite in the repository, meaning code changes lack automated validation.

→ Code duplication reported at 10.9% overall (3 clones detected), indicating multiple instances of repeated logic throughout the codebase.

→ Missing repository documentation files: .gitignore, CI/CD configuration, SECURITY.md, and CODEOWNERS all flagged as absent.

WHAT TO FIX FIRST

Address the duplicated 23-line code block in gui.py (lines 33, 56, 85). Refactoring this repeated logic into a single function would reduce maintenance burden and improve code clarity. This is the highest-impact fix because it appears three times and likely affects readability across the entire gui module.

Note: These findings are from automated scanners. Verify the code duplication detection against your actual implementation to confirm it represents genuine refactoring opportunities rather than false positives.

fix-prompt.md

Category Breakdown

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

Findings(10 in 8 groups)

Tip: 7 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 gui.py at line 33, 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

gui.pyL33
gui.pyL56
gui.pyL85

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

The same code is copied in 3 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 your project, 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 3 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

Your project might be uploading sensitive files (like .env with passwords, node_modules, or build files) to GitHub. A .gitignore file prevents this.

AI Fix Prompt

Create a .gitignore file in your project root: 1. Create a file called .gitignore 2. Add these essential entries: node_modules/ .env .env.local dist/ .next/ *.log 3. Visit gitignore.io and generate one for your tech stack for a more complete version 4. If sensitive files were already committed, remove them from git tracking with: git rm --cached <file>

Your project has no automated checks (CI/CD). Code goes straight to production without any safety net — no tests run, no linting, no security checks.

AI Fix Prompt

Add a CI/CD pipeline to your project: 1. Create .github/workflows/ci.yml in your project 2. Add a basic workflow that runs on push and pull requests 3. Include steps for: install dependencies, run linter, run tests, build 4. Start simple — even just running 'npm test' on every push catches a lot of bugs 5. You can use ShipScanner's GitHub Action for automated code quality checks

Your project is missing a recommended best practice. Following best practices makes your project more professional, maintainable, and easier for others to contribute to.

AI Fix Prompt

Your project is missing: "No SECURITY.md file". Please add this to follow software development best practices. This improves project maintainability, collaboration, and professionalism.

Your project is missing a recommended best practice. Following best practices makes your project more professional, maintainable, and easier for others to contribute to.

AI Fix Prompt

Your project is missing: "No CODEOWNERS file". Please add this to follow software development best practices. This improves project maintainability, collaboration, and professionalism.

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: A 713
[![ShipScanner: A 713](https://shipscanner.dev/api/badge/cmnbds6ad0009if045ejwgqkg)](https://shipscanner.dev/report/cmnbds6ad0009if045ejwgqkg)