Questions tagged [performance]

Writing efficient code leads to better performance of a site, which is usually measured in the speed with which pages are served.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Wordpress site is not loading properly ( showing a min-page)

I hope you are doing well, yesterday I was adding new products, deleting some of the categories, and uploading photos, and then I checked my changes but suddenly the website was not loading properly ...
Tony Dughem's user avatar
0 votes
0 answers
38 views

"Object-cache.php" disables wp_cron and even disables my entire site, and keeps reappearing by itself again after I delete it

I'm having a truly maddening issue. It may involve plugins (or it may not, I don't know) but I believe it is sufficiently technical to be allowed here. A few weeks ago, I needed to revert to a backup, ...
John Smith's user avatar
0 votes
0 answers
40 views

How to correctly cleaning wordpress options table

I want to clean my WordPress site options table using SQL. I'd installed the plugin Performance Lab v2.7.0 by WordPress Performance Team which said that my autoloaded options are making my site slow (...
Nehemoth's user avatar
0 votes
1 answer
66 views

Identifying Issues in Pagespeed Insights: Server Response Time and Long Main Thread Tasks

I recently ran a Pagespeed Insights analysis for my WordPress site and encountered two prominent issues that I would like to address: server response time and long main thread tasks. Server Response ...
Agustí Pardo's user avatar
0 votes
0 answers
50 views

How to boost WP custom post REST API GET queries by custom taxonomies

Let's say you have a custom post type custom_type registered in your main plugin file. You also have multiple custom taxonomies registered in your main plugin file. All in all something like this: ...
DevelJoe's user avatar
  • 487
0 votes
1 answer
335 views

In WordPress how do you remove render-blocking CSS manually without a plugin?

I want to remove the render-blocking CSS that PageSpeed Insight tells me about. Plugins don't seem to work. To do it manually I gathered that you should add some code to the "functions.php" ...
Zaza Zaza's user avatar
0 votes
0 answers
40 views

Very long initial loading (20sec)

I am witnessing an odd behavior on a website I am currently developing – and I don't really know how/ where to look for the cause of that problem. The problem only occurs after I haven't opened the ...
tillinberlin's user avatar
0 votes
0 answers
68 views

Lazy load video block while keeping autoplay

Is it possible to somehow lazy load default Video block, while keeping the videos autoplay? Or to somehow late-load and autoplay them, for example 5 seconds after the whole page as been loaded? Or is ...
Tahi Reu's user avatar
  • 206
0 votes
0 answers
47 views

Is is possible to append .webp to srcset images using wp_filter_content_tags()?

I am using wp_filter_content_tags() to serve my images so it will include the necessary srcset images and lazy loading attrs. My server env makes using a traditional webp conversion plugin a pain so I ...
Bagseye's user avatar
  • 69
0 votes
0 answers
49 views

How to optimize recaptcha__en.js

In gtmetrix the file recaptcha__en.js loaded twice from https://www.gstatic.com But one size is 403kb and the other is 210kb !! How to use one call only of small size ? the recaptcha__en.js used in ...
zac's user avatar
  • 103
0 votes
1 answer
27 views

This SQL request call all time and overload my server : SELECT meta_value FROM wp_sitemeta WHERE meta_key = 'wp_installer_network' AND site_id = 1

I have this SQL request who is call every time on my website and take between 1 and 2 secondes to execute so my serveur break down. What is it and how delete it ? SELECT meta_value FROM wp_sitemeta ...
user1795017's user avatar
0 votes
1 answer
17 views

Could a very long article slow down all website and wpadmin?

There is this article in the wordpress website that counts: words: 8207 characters: 56302 estimated reading time: 43m 20 images and 183 paragraphs and 201 blocks. Could affect loading time of every ...
axel's user avatar
  • 161
0 votes
0 answers
21 views

Why after customizing Home Page, the site is loading six missing blob sources, slowing down all site?

GET blob:http://www.mywebsite.it/cb7bb04e-9872-4165-b31e-c6686ee64947 net::ERR_FILE_NOT_FOUND This is what I see at the end of the loading of the page in the network console. There are six of these ...
axel's user avatar
  • 161
4 votes
2 answers
47 views

Degraded WordPress admin dashboard performance [closed]

My daughter's school asked me to take a look into "why their site is suddenly very slow". It runs on one.com/Wordpress, of which I know almost nothing, my own sites are VPS/Django-based. But ...
texnic's user avatar
  • 141
0 votes
0 answers
55 views

Can running a WP-Cron to update_post_meta cause performance issues?

I'm counting post views on a custom field inside wp_postmeta, the update happens each time a user interacts with the post. I was reading at this response Will a large postmeta table slow a site down? ...
Michael Rogers's user avatar
0 votes
1 answer
189 views

How to cache WordPress oembed links in the page header?

WordPress places JSON oembed links in the page header, such as in this example: <head> ... <link rel='https://api.w.org/' href='http://example.com/wp-json/' /> <link rel="alternate&...
Blake Patterson's user avatar
0 votes
1 answer
305 views

Is option_active_plugins actually doing anything useful?

I’m training to speed-up our wp-json responses, which are now spending approx 70% just on WordPress initialization. I searched the Internet and from the answers I found the Must use plugins with ...
tole's user avatar
  • 111
0 votes
2 answers
31 views

Regarding to the performances, should I check if a post has a thumbnail before or after checking if is the front page (or single page, etc.)?

Regarding to the performances, and the performances only (and not from the point of view of the readability of the code), is it a best practice to check if the post has a thumbnail before to check if ...
PhpDoe's user avatar
  • 197
0 votes
0 answers
73 views

How to make the Panel // WP-Admin lighter via Mobile

By accessing the WordPress Admin Panel. via Cell/Mobile the loading is too slow. And the layout is not responsive. In Chrome console I get the following errors [Violation] 'DOMContentLoaded' handler ...
PauloBoaventura's user avatar
1 vote
0 answers
17 views

How to debug periodic performance issue

I have an periodic performance issue on my site. Seems like every exactly 10 secods, something clogs the CPU up to 100%. I can clearly see it's something from the site itself rather than the ...
Yochai Timmer's user avatar
0 votes
0 answers
49 views

How do I remove lazyloading on the mh-spotlight-widget

What is the easiest way to disable native lazy load without a plugin for a specific widget in WordPress? I can't find anything at all about this question that I could use for functions.php? // XX = ...
Aprilia Parrino's user avatar
1 vote
0 answers
36 views

Horrendously slow admin and pretty slow sites [closed]

We host dozens of plain PHP sites that respond within milliseconds. The average page load time is around 10 ms. One of our users installed 2x WP 5.5 sites and gradually upgraded them to 6.0. Their ...
Minasian's user avatar
2 votes
1 answer
509 views

External HTTP API calls slowing down Wordpress admin [closed]

By using Query Monitor I'm finding that virtually every page load within Wordpress admin results in 15-25 server-side HTTP API calls being made. Most take less than 0.1s, but there's 5 or more that ...
Baraka's user avatar
  • 121
2 votes
1 answer
269 views

Speed up / Optimize Admin Edit Post Page on Large Websites (50-150k posts, 50 custom fields per post)

I'm working with a set of large Wordpress installs with 50-150k posts, each with 40-50 custom fields. The installs are very basic, with limited plugins (less than 5), and a default Wordpress theme (i....
dfcode3's user avatar
  • 711
1 vote
1 answer
387 views

Fastest way of counting posts of a custom post type in a specific taxonomy term?

I know this kind of question is legion but I have read through all related topics and I can't find a satisfying solution. What I want to achieve is simple: on my taxonomy (author) term archive page I ...
Julien G's user avatar
1 vote
1 answer
35 views

Looking for most performant way to execute several similar WP queries within shortcodes

I have a very data-driven website where each page contains several (5-10) shortcodes, each of which execute WP queries and display the results. The queries are usually quite similar - I've added 3 ...
Alex's user avatar
  • 21
0 votes
1 answer
19 views

Disabling ajax code that does a POST request that ends in a 400 error code

I have a javascript snippet that sends a POST request, but the backend no longer serves that request. Would removing that code significantly improve the website performance? The problem is that the ...
Sayaman's user avatar
  • 135
0 votes
1 answer
155 views

Does fixing PHP notices improves website performance?

$geolocation = esc_sql($_COOKIE['geolocation']); I have this, and using Query Monitor, I've been able to find out that this notice is being thrown out 490 times on the home page alone, so I am ...
Sayaman's user avatar
  • 135
0 votes
1 answer
633 views

Which is faster wpdb & get_row or wp_query & ge_post_meta?

Im planning to make a private api and i was wondering which one should i use go for my datas. wpdb & get_row with my custom sql regular wp_query & get_post_meta() Im wondering if it's better ...
Amenadiel's user avatar
0 votes
1 answer
150 views

(Wordpress 5.8.3) Function.php or a plugin for better performance? [duplicate]

I'm working on an e-commerce site and a lot of customization needs arise. There are many codes in the child theme. Hundreds of lines... I always have this question in my mind: Is it better to write a ...
user avatar
0 votes
0 answers
28 views

How do you make a site load faster when offloading is not an option?

I have a website where I can't offload it any more, and it still loads some pages slow. Those pages are ones that can't be cached, like the cart or the checkout (Woocommerce). I have tried 5 different ...
Konstantinos Sakkas's user avatar
0 votes
1 answer
238 views

Wordpress Admin extremely slow when other admin logged in

The sites has multiple authors/admins, who may sometimes edit/publish posts at the same time. Whenever more than one user is author/administrator is editing/publishing another post, the WP Admin ...
Ed Shway's user avatar
  • 101
0 votes
1 answer
91 views

Pass debug_backtrace() in Wordpress filter

As you know, debug_backtrace() function has a large output. I need to pass it in my filter. $meta = apply_filters( 'filtername' , $meta , debug_backtrace() ); Does this have a big impact on site ...
ma ja's user avatar
  • 125
0 votes
1 answer
237 views

Puzzled at HTTP/2 301 response header

I am running curl -I https://padelove.gr/cart with the https:// part prepended explicitly, and I am noticing that the response header is about an HTTP/2 301 redirect on the very same URL. Shouldn't ...
Konstantinos Sakkas's user avatar
0 votes
1 answer
116 views

"Disable" specific plugins on certain pages

I want to disable specific plugins on specific frontpages, but not "disable" them in the backend, i.e. really disable them in the DB. Just NOT load them, as if they weren't installed. Did ...
tim's user avatar
  • 154
2 votes
2 answers
148 views

Changing BIGINT to INT

We have a WP page running with a Buddypress network, which is highly dynamic. We are trying to identify every possible opportunity to reduce load and storage - and found that quite some tables use ...
tim's user avatar
  • 154
-1 votes
1 answer
82 views

Is there a way to pass google webmaster CLS on WordPress website?

I have developed WP theme for 3 webisites. Both are using pure WP codex code. No frameworks, nothing. The only thing I use is WP bakery PB plugin. But still it is not passing the CLS. I am switching ...
K H's user avatar
  • 51
3 votes
1 answer
4k views

Disable lazy loading on specific images

Wordpress adds lazy loading on all images. Lighthouse recommends disabling lazy loading on images in above the folder. I would like to figure out how to disable it only on images that I call with ...
Vinz Clortho's user avatar
1 vote
1 answer
124 views

Does using WP-cron make the site slower for the user?

Forgive my "beginnerness" in this matter but I have 2 options to trigger a heavy task (massive update on users' properties to solve an issue between 2 plugins that weren't meant to cooperate)...
Iago's user avatar
  • 11
1 vote
1 answer
254 views

WP Optimization: Removing Orphaned wp_options (especially the autoload ones)

Is there no mechanism which purges old options from the DB? I tried a few plugins in the past and I found out that there are a few pretty long option strings which are set to autoload but IMHO not ...
tim's user avatar
  • 154
0 votes
0 answers
16 views

Is there any difference between widgets (used in order to manage menus) and register_nav_menus() in terms of performance?

I plan to add in the footer of my website 4 menu areas (such as "About us", "Services", etc.), each area with 3 or 4 links. In terms of performances, should I use widget ...
PhpDoe's user avatar
  • 197
1 vote
0 answers
714 views

How to preload images through Code Snippets wp_head for specific pages?

Circumstances: Website Structure My Wordpress website is used as presentation and portfolio for my graphic design services. Visual impact is important for me, so most of my pages contain big ...
Ernest's user avatar
  • 53
2 votes
0 answers
271 views

Multisite with 220+ sites painfully slow

We’re having issues with the site being painfully slow. It can take anywhere from 6 second to 20 seconds to login. The odd thing is that this only seems to happen with the Super User account that has ...
TAL9000's user avatar
  • 21
1 vote
0 answers
63 views

Control panel loads slowly due to 2 slow queries on comment table

Our WP site’s control panel loads very slowly. Analyzing this with the Query Monitor plugin, I see that it is slowed down by two queries, both on the comment table. First one: SELECT comment_approved, ...
dsaada's user avatar
  • 11
0 votes
1 answer
158 views

Is there anyway to split posts to different databases?

We have a huge database (4GB) and mostly are wp_posts wondering if is that possible to like, split it to two different databases to have better performance? for example, split post types with PRODUCT ...
Amino's user avatar
  • 323
1 vote
2 answers
488 views

is there a way to preload specific images for desktop users only? (excluding mobile users)

My website has a few .PNG images animated at the very start of my Contact page. Those images are a bit heavy (because they have transparent background), so the animation starts with some of them ...
Ernest's user avatar
  • 53
0 votes
1 answer
107 views

Deleted Image giving a 301

I have images that were deleted from the site (the page and the media library) but are still being requested which can be seen in the network tab. They are redirected and take a huge amount of time ...
Daniel's user avatar
  • 1
1 vote
1 answer
50 views

Why a URL with a query is always slower than that without a query?

I find a strange thing. For a WordPress site, a URL with a query is always slower than that without a query, even no Cache plugin is installed/enabled and no CDN cache is enabled. For example: http://...
alancc's user avatar
  • 41
0 votes
1 answer
57 views

Plugin has added weird data in wp_options, set to autoload

I am new to learning out about autoload in wp_options and performance issues. So exploring one of my sites I find a plugin has added a bunch of data in a wp_options field which appears to be blog ...
user1954838's user avatar
0 votes
1 answer
58 views

url_to_postid method in walker_nav navigation menu causing exceptionally high TTFB

I am using the walker class to create my custom mega menu, and using it to display post thumbnails at a menu depth of 2. It seems using the url_to_postid method seems to be causing a high ttfb of >...
Prateek Pandey's user avatar

1
2 3 4 5
12