• Resolved stevemoretz

    (@stevemoretz)


    Hello, thank you for this plugin. I think there is a weird bug in it slowing down the php side, basically your are calling the following function :

    transformElements from HTMLStreamFilter

    a lot!

    Take a look at the attached profiled pictures.
    Your plugin alone is taking 37% of my website load, because that function is called a dozen times.

    Since your plugin is designed for optimization I don’t think it’s doing its purpose, very well.

    https://ibb.co/yp2HBt7
    https://ibb.co/xq94Pw5

    I’m running the latest version of your plugin by the way.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Albert Peschar

    (@kiboit)

    Hi @stevemoretz,

    PhastPress needs to process your page in order to perform its optimizations. If your server isn’t too slow, this shouldn’t take more than 100 ms, depending on the size of your pages. If you use full page caching, which I recommend, this is a one-time cost per page.

    Even without caching, this small increase in page generation time should be compensated by the reduction in time to first render.

    The only case in which the optimization time will be excessive is if your hosting is slow.

    –Albert

    Thread Starter stevemoretz

    (@stevemoretz)

    Thank you!
    Just wanted to make sure that is not a bug.

    Hi @kiboit, first of all congratulations for the plugin, really well written and very useful.

    Which cache plugin do you recommend to use in conjunction with PhastPress?
    At the moment I’m only using Cloudflare APO and no wordpress plugins.

    As for the speed, I noticed that PhastPress takes about 40 / 50ms to perform the optimizations, can you tell me which are the “heavier” options?

    I am currently using only “Optimize CSS”, “Load scripts asynchronously” and “Minify scripts and improve caching”.

    Thank you!

    Plugin Author Albert Peschar

    (@kiboit)

    Hi @scontomio,

    40-50 ms is decent. You won’t get it much lower than that I’m afraid. It should save more than that in reduction of time to first paint.

    The most intensive optimization is “Optimize CSS”. But that one is also one of the most effective ones, so I wouldn’t recommend disabling it.

    With full-page caching enabled, the PhastPress optimizations will only delay the first render. I usually use WP Super Cache, but the other popular plugins mostly also work fine. See the FAQ.

    –Albert

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Makes Php side slow’ is closed to new replies.