Code Review Cheat Sheet
Complete reference guide for Code Review with interactive examples and live playground links
Click on any section to jump directly to it
Basic Review
Code Style Review
Basic code style review checklist
Code Review
# Review code style
Check for:
- Consistent indentation
- Proper naming conventions
- Code formatting
- Line length limits
- File organization
# Review comments
Check for:
- Clear and concise comments
- Documentation completeness
- Comment relevance
- Comment placement
- Comment formatting
Function Review
Function review checklist
Code Review
# Review function implementation
Check for:
- Single responsibility
- Proper error handling
- Input validation
- Return value consistency
- Function length
# Review function parameters
Check for:
- Parameter naming
- Parameter order
- Optional parameters
- Default values
- Parameter types
Class Review
Class review checklist
Code Review
# Review class structure
Check for:
- Class responsibility
- Method organization
- Property visibility
- Constructor implementation
- Class size
# Review class relationships
Check for:
- Inheritance usage
- Interface implementation
- Composition patterns
- Dependency injection
- Coupling level
Security Review
Input Validation
Security review checklist
Code Review
# Review input handling
Check for:
- Input sanitization
- Type checking
- Length validation
- Format validation
- Boundary checks
# Review data handling
Check for:
- Sensitive data exposure
- Data encryption
- Secure storage
- Data transmission
- Data retention
Authentication Review
Authentication review checklist
Code Review
# Review authentication
Check for:
- Password hashing
- Session management
- Token handling
- Access control
- Authentication flow
# Review authorization
Check for:
- Role-based access
- Permission checks
- Resource access
- API security
- Security headers
API Security
API security review checklist
Code Review
# Review API security
Check for:
- Input validation
- Rate limiting
- CORS configuration
- Error handling
- Security headers
# Review API endpoints
Check for:
- Authentication
- Authorization
- Data validation
- Error responses
- Security best practices
Performance Review
Algorithm Review
Algorithm review checklist
Code Review
# Review algorithm efficiency
Check for:
- Time complexity
- Space complexity
- Edge cases
- Optimization opportunities
- Resource usage
# Review data structures
Check for:
- Appropriate usage
- Memory efficiency
- Access patterns
- Modification patterns
- Scalability
Database Review
Database review checklist
Code Review
# Review database operations
Check for:
- Query efficiency
- Index usage
- Connection management
- Transaction handling
- Data consistency
# Review database design
Check for:
- Table structure
- Relationship design
- Normalization
- Index design
- Query patterns
Resource Management
Resource management review checklist
Code Review
# Review resource usage
Check for:
- Memory management
- File handling
- Connection pooling
- Resource cleanup
- Resource limits
# Review caching
Check for:
- Cache strategy
- Cache invalidation
- Cache consistency
- Memory usage
- Performance impact
Testing Review
Unit Test Review
Unit test review checklist
Code Review
# Review unit tests
Check for:
- Test coverage
- Test isolation
- Assertion quality
- Test naming
- Test organization
# Review test cases
Check for:
- Edge cases
- Error cases
- Input validation
- Expected outputs
- Test data quality
Integration Test Review
Integration test review checklist
Code Review
# Review integration tests
Check for:
- Component interaction
- Test setup
- Test teardown
- Test isolation
- Test coverage
# Review test environment
Check for:
- Environment setup
- Test data
- Mock objects
- Test dependencies
- Test configuration
Performance Test Review
Performance test review checklist
Code Review
# Review performance tests
Check for:
- Test scenarios
- Load patterns
- Metrics collection
- Resource monitoring
- Test duration
# Review stress tests
Check for:
- System limits
- Error handling
- Recovery testing
- Resource usage
- Test documentation
Maintainability Review
Code Organization
Code organization review checklist
Code Review
# Review code organization
Check for:
- File structure
- Module organization
- Code grouping
- Dependency management
- Code reusability
# Review code complexity
Check for:
- Cyclomatic complexity
- Code duplication
- Method length
- Class size
- Module coupling
Documentation Review
Documentation review checklist
Code Review
# Review code documentation
Check for:
- Documentation completeness
- Documentation accuracy
- Documentation clarity
- Documentation relevance
- Documentation maintenance
# Review API documentation
Check for:
- Endpoint documentation
- Parameter documentation
- Response documentation
- Error documentation
- Example usage
Best Practices
Best practices review checklist
Code Review
# Review coding standards
Check for:
- Design patterns
- SOLID principles
- DRY principle
- KISS principle
- Code style guidelines
# Review error handling
Check for:
- Error types
- Error messages
- Error logging
- Error recovery
- Error propagation
Code Review - Interactive Developer Reference
Hover over code blocks to copy or run in live playground