Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

Tagged: 

This topic contains 11 replies, has 2 voices.

Last updated by Dražen 1 year, 10 months ago.

Assisted by: Dražen.

Author Posts
September 8, 2023 at 10:30 am #14365841

severinP-4

Hello,

Since I installed WPML the site has suddenly become extremely slow.
This results in an extremely long “waiting time” in the “root document” of the individual pages. Which usually indicates bad code or incorrect PHP code.
The WPML plugins are all up to date.

The GT Metrix score fell from A to F. The screenshots were from the live site when I made the staging site live. The live site is now running again without WPML.
But the bad score still exists on staging.bullen-markt.de

Something is causing a conflict here.

I would be happy to provide you with the login details or server access details.

Kind regards

Waiting Time.png
Gmetrix F.png
Gmetrix A.png
Execution time plugins & Theme.png
September 11, 2023 at 7:57 am #14373249

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

it could be that you are checking the cached version or similar via GTMetrix.

Anyway, the most correct way to check the loading issue would be to check the loading time directly from your website.

Please make a backup before proceeding.

1) Install Query monitor plugin (https://wordpress.org/plugins/query-monitor/)

2) Check load time and number of queries in the top bar. Load time has "s" and queries "Q"

3) Disable all WPML plugins and check load time and the number of queries now

4) Disable all other plugins and leave active only WPML plugins, switch to WP default theme. Check again.

Please let me know how it goes and share each result with me.

Thanks,
Drazen

September 11, 2023 at 10:40 am #14375047

severinP-4

Hello Drazen,

thank you very much for the reply.
I don't think it's due to caching either.

Attached is the screenshot for your questions.

Seems like WPML is sending a large amount of additional requests.

Best Regards
Severin

4 Default theme and only WPML activated.png
3 WPML deactivated.png
2 All Plugins an Them activated.jpg
September 11, 2023 at 11:13 am #14375641

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back and taking the time to check.

I see a difference of almost 100% in time load, which should not be expected. It could be there is some compatibility issue with the theme or some plugins.

Since you have a staging site ready, please share wp-admin and FTP access in private boxes I have enabled, so I can take a further look.

Thanks,
Drazen

September 11, 2023 at 11:49 am #14375943

severinP-4

Hello

was that the private box?
It seems everyone can see it and knows the URL

September 11, 2023 at 11:53 am #14375981

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

it was not, there should be a private box after that reply where you could have added it.

I have made that reply private now and will check further.

Regadrs,
Drazen

September 11, 2023 at 11:57 am #14375987

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello again,

I do not understand the details you have shared.

I need the URL to the staging site and wp-admin access and also FTP access for that site.

I see you mentioned before hidden link, but seems there is additional protection and I can not access wp-admin.

Please remove it if possible and share the URL and wp-admin access.

Thanks,
Drazen

September 11, 2023 at 1:27 pm #14376699

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back.

I have updated WPML plugins and WooCommerce, using your parent theme to avoid any custom code, and disabled the Code snippet plugin for the same reasons.

I would also advise updating all other plugins to hopefully get a bit better results.

Anyway, now the difference I get is 6.79 vs 5.01s, which is a bit of an increase but not that large as before, and kind of expected since WPML adds a bit to your load time.

Also, I kept getting server timeout, so you might want to check with your hosting and increase your resources.

Hope this helps, let me know what you think.

Thanks,
Drazen

Screenshot_4.jpg
September 11, 2023 at 2:53 pm #14377511

severinP-4

Hello,

ok, but this is still a significant difference.
The loading time is still 8 seconds.

In addition, WPML and some other plugins were not even activated at your test.
Now the time with the main theme is still at 8 seconds.
The theme is not the problem. The theme is extremely fast as shown in the screenshot of my first question and on the live site: bullen-markt.de

Page loading times only increase with WPML.

I have an extremely fast server with the following metrics:
CPU: 6 vCore
RAM:8GB
SSD: 160GB

Try the live page. The speed and the scores are very good.
Only with WPML does the site become extremely slow, making it unusable.

I already did some speed tests but the page was fast bevor WPML and now takes up to 10 seconds to load.

September 12, 2023 at 7:27 am #14380663

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back.

I can not check the live website, since I do not have access to it.

Anyway, I further check the staging site, and this is what I have done:

- Update Elementor

- I would advise updating all other plugins Also, please.

- Increase your memory limit via wp-config.php

- Also Set multisite to false, as it was true, but you are not using multisite

- Disable other performance plugins, it is not recommended to use multiple at once.

- Run WPML troubleshooting tools
- Clear the cache in WPML
- Remove ghost entries
- Fix element_type collation
- Set language information
- Fix post type assignment

- Disabled not needed WPML addons. You do not really need a sticky link and Nav if you re not using it specifically, Also you might not need a WPML media addon as it is used only when you need to add completely different images via WPML > Media. If you are using the same images in both languages you do not need it and can disable it also.

Now when I check the load time is around 6.8 - 7s depending on the server response, but I would say that is a good result.

Video:
hidden link

Regards,
Drazen

September 13, 2023 at 2:22 pm #14390783

severinP-4

Hello,

Thank you very much for the adjustments!

If you simply access the frontend of the live page "bullen-markt.de" uncached and click through, you will see that this page usually only takes 1-2 seconds to load per page (every page). Does WPML really make the site that much slower?

The perceived loading time on the customer site in an uncached private window is suddenly much longer. Is WPML blocking the cache or not loading into it?

I made some comparison and the problem still remains:

Home page
hidden link

Product page
hidden link

There are also many more requests. Is it possible for example to delay or batch the requests of the different flags for the languages? But that's just a drop in the ocean and probably won't do much.

In particular, the uncompressed size of the website has increased significantly.
A conflict arises somewhere here, so that the waiting time increases so much. It is visible in GTmetrix data and if you visit the two websites directly uncached, the difference in performance is also clearly noticeable as human.

So how do we fix this?

And also my next question would be, if I'm not allowed to use code snippets and a child theme, how should I implement the customization?

September 14, 2023 at 6:13 am #14393457

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I can not compare your production and staging site, it doesn't have the same load time nor probably resources and etc. There is no point in comparing that.

I can only check the WPML impact on particular website, which I did check on your staging site.

The impact is a lot less now and from 5.5s to 6.8s with WPML, which is not an issue, and expect a small impact from WPML.

The only thing we can do here is check a website that you think has an issue and try to fix the problem there, which I did for staging. If same "fix" does not work for production and you have problems there, then we should check and debug further production website.

You are allowed to use custom code and child themes, but we can not debug or support custom code, If you need help with some part of custom or have doubts about how to use it we can try to help with advice in a new related ticket. Otherwise, you can hire a WPML contractor to help you out with custom code.

Regards,
Drazen

The topic ‘[Closed] Very Slow Page (TTFB) when activating WPML’ is closed to new replies.