AhmedAliAbdAlMowla/Emotion-recognition-using-facial-expressions

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

Scanned on Mar 16, 2026

3 Medium
7 Low

AI Assessment

VERDICT

Based on automated scanner findings, this project is not production-ready. While security and dependency checks pass cleanly, significant code quality issues and missing project governance files would require remediation before deployment.

TOP RISKS

→ Duplicated code block detected in gui.py at lines 33, 56, and 85 (23 lines repeated three times). The scanner flagged this as a maintainability concern across the codebase.

→ No LICENSE file was detected. This creates legal ambiguity about usage rights and is flagged as a best practices violation.

→ No test suite detected in the repository. The scanner found no testing infrastructure, which means code coverage and regression protection are absent.

→ Code duplication represents 10.9% of the codebase with 3 identified clones, flagged as a quality issue affecting maintainability.

→ Missing CI/CD configuration file was flagged, indicating no automated build/test pipeline is configured.

WHAT TO FIX FIRST

Consolidate the duplicated code block in gui.py (lines 33, 56, 85). Extracting this 23-line block into a single reusable function would resolve three medium-severity quality findings simultaneously and improve maintainability.

NOTE: The scanner flagged these issues based on static analysis. Verify the code duplication findings against the actual gui.py file to confirm they represent genuine refactoring opportunities versus false positives. The absence of tests and CI/CD are structural issues requiring decision-making beyond automated detection.

fix-prompt.md

Category Breakdown

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

Findings(10 in 8 groups)

Duplicate found between gui.py:33 and real_time.py:25. Consider extracting shared logic into a reusable function or module.

Affected files

gui.pyL33
gui.pyL56
gui.pyL85

This repository has no LICENSE file. Without a license, the code is technically all-rights-reserved by default, which prevents others from using it.

Affected files

unknown

No test directory or test files were found. Automated tests are critical for maintaining code quality and preventing regressions.

Affected files

unknown

39 duplicated lines out of 357 total lines across 4 files. High code duplication increases maintenance burden and bug surface area.

Affected files

unknown

This repository has no .gitignore file. Without one, build artifacts, dependencies, and IDE files may be accidentally committed.

Affected files

unknown

No CI/CD configuration was found (GitHub Actions, GitLab CI, CircleCI, etc.). Continuous integration helps catch issues before they reach production.

Affected files

unknown

This repository has no SECURITY.md file. A security policy helps users report vulnerabilities responsibly and shows that the project takes security seriously.

Affected files

unknown

This repository has no CODEOWNERS file. CODEOWNERS ensures that pull requests are automatically assigned to the right reviewers, improving code review coverage.

Affected files

unknown

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 697
[![ShipScanner: B 697](https://shipscanner.dev/api/badge/cmmt5z4jq0001kt040h0w7ld7)](https://shipscanner.dev/report/cmmt5z4jq0001kt040h0w7ld7)