What is the most common cause of an unexpectedly slow PHP application?
- A Using double quotes instead of single quotes
- B Inefficient database queries such as N+1 patterns and missing indexes
- C Excessive comments
- D Long variable names
Answer
Inefficient database queries such as N+1 patterns and missing indexes
Micro-optimisations in PHP are noise compared with database cost. Profile before optimising, and check the slow query log first.





