How to find a piece of code that loads the site. The site is on joomla . I measure the execution time of my template, it shows 0.1 ms. I measure the execution time of the code $app->execute(); . It takes a little over 10 seconds. I do not understand joomla where to dig further, and how to find this malicious code.

At first I sinned on programmers, but because the template does not give much time, then thoughts go in the direction of joomla.

PS The problem is only on the main page. I changed the template, I do not understand anything at all, the template has changed everywhere, but the main page remains the same, i.e. main does not depend on the template. Where does she come from then?

  • Tried to change the template? - user3127286
  • @ user3127286, changed the template, I don’t understand anything at all, the template has changed everywhere, but the main page remains the same, i.e. main does not depend on the template. Where does she come from then? - zakiroof
  • You need to start with developers.google.com/speed/pagespeed , not with php - Alexey Shatrov
  • @AlexeyShatrov, inappropriate comment. The question specifically says that it is php that loads the site, not the frontend. Those. TTFB more than 10 seconds. - zakiroof
  • I agree, skip this moment. - Alexey Shatrov

1 answer 1

Do not count for advertising, but I use https://blackfire.io , this is a php profiler. It shows clearly where, in which function, how much time and resources are spent. You can of course everywhere ponastavit microtime () and record in the log the name of the function and the amount of time spent on execution.