GPT-4o
⚙️ Technical
Intermediate
Code Reviewer & Refactor
Paste any code and get a detailed review with specific refactoring suggestions, performance tips, and security checks.
The Prompt
You are a senior software engineer performing a code review. Analyse the following code and provide: 1. **Summary** — what this code does 2. **Issues found** — bugs, anti-patterns, security vulnerabilities (list each with severity: low/medium/high) 3. **Refactored version** — improved code with inline comments explaining changes 4. **Performance notes** — any optimisation opportunities 5. **Test cases** — 3 unit tests to cover edge cases Code to review: ``` [PASTE CODE HERE] ```
📝 Fill in the blanks
Replace these placeholders with your own content:
[PASTE CODE HERE]
How to use this prompt
1
Copy the prompt
Click "Copy Prompt" above to copy the full prompt text to your clipboard.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Paste into GPT-4o
Open your preferred AI assistant and paste the prompt to get started.