Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.
17 of your 31 findings came from Repobility's proprietary detections. ✓ Repobility tags below mark them.
Upstream (GitHub) caused delay on this scan — not Repobility.
  • GitHub API rate-limited (HTTP 403) — preflight skipped, fell back to direct git clone.
  • Clone from GitHub took 183.31s for a 152.6 MB repo slow.
  • Repobility's analysis ran in 0.41s after the clone landed.

victordomingos/optimize-images

https://github.com/victordomingos/optimize-images · scanned 2026-06-05 22:59 UTC (4 days, 5 hours ago) · 10 languages

55 raw signals (29 security + 26 graph) 11/13 scanners ran 60th percentile · Python · small (2-20K LoC) System graph score 97 (lower by 25)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 4 days, 5 hours ago · v2 · 31 actionable findings from 2 signal sources. 11 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Score breakdown â 2026-05-18-v5
Component Sub-score Weight Contribution
structure_score 75.0 0.15 11.25
security_score 100.0 0.25 25.00
testing_score 46.0 0.20 9.20
documentation_score 90.0 0.15 13.50
practices_score 42.0 0.15 6.30
code_quality 73.0 0.10 7.30
Overall 1.00 72.5
security_score may be inflated — optional security scanners were skipped on this fast scan
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Scan summary Quality grade B (72/100). Dimensions: security 100, maintainability 75. 29 findings (2 security). 2,741 lines analyzed.

Showing 19 of 31 actionable findings. 42 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high Security checks quality Quality conf 1.00 ✓ Repobility [MINED107] Missing import: `stat` used but not imported: The file uses `stat.something(...)` but never imports `stat`. This raises NameError at runtime the first time the line executes.
Add `import stat` at the top of the file.
optimize_images/img_dynamic_quality.py:36
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED107] Missing import: `tempfile` used but not imported: The file uses `tempfile.something(...)` but never imports `tempfile`. This raises NameError at runtime the first time the line executes.
Add `import tempfile` at the top of the file.
optimize_images/img_info.py:50
low Security checks quality Quality conf 1.00 ✓ Repobility [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and SystemExit from working.
Review and fix per the pattern semantics. See CWE-705 / for context.
optimize_images/watch.py:96
low Security checks quality Quality conf 1.00 ✓ Repobility [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and SystemExit from working.
Review and fix per the pattern semantics. See CWE-705 / for context.
optimize_images/__main__.py:133
high Security checks quality Quality conf 1.00 ✓ Repobility 3 occurrences [MINED108] `self._wait_for_write_finish` used but never assigned in __init__: Method `on_created` of class `APIOptimizeImageEventHandler` reads `self._wait_for_write_finish`, but no assignment to it exists in __init__ (and no class-level fallback). This raises AttributeError the first time the method runs against an instance.
Initialize `self._wait_for_write_finish = <default>` in __init__, or add a class-level default.
2 files, 3 locations
optimize_images/watch.py:52, 72 (2 hits)
optimize_images/api.py:320
low Security checks security Injection conf 1.00 [SEC103] LDAP injection — non-constant search filter: User input concatenated into an LDAP search filter. Attackers inject `*)(uid=*` style payloads to bypass auth or enumerate accounts.
Escape with javax.naming.ldap.Rdn.escapeValue or equivalent. For python-ldap, use ldap.filter.escape_filter_chars. Better: use parameterized search APIs (Spring LdapTemplate filter encoders).
setup.py:44
medium Security checks security auth conf 0.92 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks but does not define .repobility/access.yml or equivalent authorization documentation.
Add .repobility/access.yml mapping routes to anonymous, authenticated, owner, admin, and super_admin. Keep business-specific rules in the repo so CI can enforce them.
low Security checks quality Error handling conf 0.55 ✓ Repobility 3 occurrences Broad exception handler needs review
This handler catches Exception/BaseException. It is actionable when it swallows errors without logging, re-raising, or returning a structured error. Handlers that intentionally convert exceptions into typed error results should not be treated as high risk.
3 files, 3 locations
optimize_images/constants.py:14
optimize_images/img_optimize_jpg.py:39
optimize_images/img_optimize_webp.py:50
Error handlingquality
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). Either auth lives in custom code, in a separate service, or is missing.
auth
medium System graph cicd CI/CD security conf 1.00 No CI/CD pipelines detected
No GitHub Actions, GitLab CI, or CircleCI configs found. Without CI you can't gate deploys on tests/lints.
CI/CD securityCoverage
low Security checks security auth conf 0.76 [AUC005] No authorization-focused tests detected: No test files with common authorization, ownership, 403, admin, or super_admin assertions were found.
Add regression tests for anonymous denial, cross-user object denial, admin role limits, and super_admin-only behavior.
low Security checks quality Quality conf 0.60 Duplicated implementation block across source files
Duplicate implementation blocks are maintenance debt. Keep them visible, but they are not a high-severity defect unless the duplicated logic is security-sensitive or drifting.
optimize_images/data_structures.py:32 duplicationquality
low Security checks quality Quality conf 0.60 Duplicated implementation block across source files
Duplicate implementation blocks are maintenance debt. Keep them visible, but they are not a high-severity defect unless the duplicated logic is security-sensitive or drifting.
optimize_images/api.py:183 duplicationquality
low System graph quality Tests conf 1.00 Low test-to-source ratio
2 tests / 20 src (ratio 0.10).
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: optimize_images/watch.py:is_image, optimize_images/api.py:is_image This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph software Dead code conf 1.00 Possibly dead Python function: build_tasks
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
optimize_images/batch_core.py:13
low System graph software Dead code conf 1.00 Possibly dead Python function: optimize_as_batch
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
optimize_images/api.py:165
low System graph software Dead code conf 1.00 Possibly dead Python function: optimize_single_image
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
optimize_images/api.py:196
low System graph software Dead code conf 1.00 Possibly dead Python function: watch_for_new_files
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
optimize_images/watch.py:84
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/33f84364-e46a-49a2-b7fe-65ee7a9c1173/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/33f84364-e46a-49a2-b7fe-65ee7a9c1173/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.