Open the page locally and check debugbar. How many queries are run, and how many models are hydrated?
Is the data on the staging server (in the database) 100% the same as production?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I get an A grade on staging server and a C on production server which is weird (It is the same code):
On production I have a: reduce initial server response time
which has a High Impact
https://gtmetrix.com/reduce-initial-server-response-time.html
The Application code is crucial to web performance optimization.
We strongly recommend that you solicit developer assistance as you are now dealing with the core logic of your website.
When you engage in code profiling, some of the optimizations include:
I don't understand point 1 - 3. Does it means removing unnecessary code ? I have some codes that I commented out since my klien canceling a feature that I already build. So there are many comments.
What about Repo functions that the program does not called out - does it count (I actually don't have one at this point of time since I build a new repo) ?
@davy_yg Yes that is all you need to do. And no, dont use it on production. You check your amount of queries etc. locally. You can always seed some test data so the amount of data is the same on local as it is on production
Please or to participate in this conversation.