Hi Marco, thanks for bringing this to our attention. Can you share any more detail about how long this query is taking for you? It would also be useful if you could share your Site Health information with us via this private form.
Thread Starter
Marco
(@mcbus94)
I have just shared the site health.
It’s the slowest query in my site. Here following query monitor report:
with google site kit plugin: 2.54s, 102MB, 0,26s, 803queries
without google site kit plugin: 1.82s, 72MB, 0.17s, 711queries
please note I performed the test on a page that is not cached
Thank you
Thanks for sharing that. It looks like there is a bug which causes this query to happen more than it should, so I’ll open an issue to get this fixed, otherwise it should have a negligible impact on your site’s loading time. Note that this query only happens when you (as a user who can use Site Kit) is logged in and on a page where Site Kit is loaded, so it shouldn’t be affecting other users on the site.
Also, it’s unlikely that this one query is accounting for the entire difference in timing that you’re seeing with and without Site Kit. Site Kit does add some queries when enabled but again, this should only affect users that are logged in and on pages where Site Kit has a presence in wp-admin.
Just as an update on this @mcbus94, we’re working on a fix for this, with details below:
https://github.com/google/site-kit-wp/issues/11717
We expect this fix to be part of the next release, set for next week. We’ll let you know once it’s out. Thanks for the input!
Just to let you know that the latest version of Site Kit has been released, and this contains a fix for this issue that you raised. Many thanks for bringing this to our attention! Please update to this latest version, and ask if you have any further questions on this.