# Code Review Please review the provided code for: 1. **Bugs & Logic Errors** - Identify potential bugs, edge cases, and logical issues 2. **Performance** - Spot inefficient algorithms, unnecessary allocations, or N+1 queries 3. **Security** - Check for vulnerabilities like injection, XSS, or unsafe operations 4. **Code Style** - Ensure consistency with project conventions 5. **Error Handling** - Verify proper error propagation and user-friendly messages For each issue found, provide: - Location (file:line) - Severity (Critical/High/Medium/Low) - Description - Suggested fix with code example End with a summary score (1-10) and overall assessment.