A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
0answers
19 views

Page Speed is Significantly Terrible [closed]

Upon running several speed tests at Google Insights I receive a pretty quality score for both mobile and Desktop. Mobile is set at 25-30 (which is honestly typical for my industry and Googles high ...
1
vote
1answer
38 views

How to decrease the number of queries with get_posts and ACF?

In my index.php file, inside the classic WordPress loop, I had to query posts in order to retrieve the ones with a relationship value created with a custom field (managed with ACF plugin). I managed ...
0
votes
0answers
19 views

Is storing in a variable the result of a fonction a most powerful way to code an if structures in WordPress?

In the footer-menus-widgets.php template, from Twenty Twenty theme (by Automatic), we can find a way to code a template and call functions that uses variables to store the result of functions like ...
0
votes
0answers
19 views

page loading time of a cached page

I am trying to find page loading time of a page using following code function loading_time() { echo '<p>Page loading time:'.timer_stop(0, 3).' seconds</p>'; } add_action( 'shutdown',...
0
votes
1answer
20 views

Wordress importing scripts

I am fairly new to Wordpress theme development, and I'm trying to structure my code using the best practices possible In your opinion whats the better option to import javascript files: OPTION 1 &...
0
votes
1answer
16 views

Regular XML-RPC timeouts

I am hoping to get some tips for troubleshooting this annoying timeout issue. Configuration: Windows 2012 R2 with IIS PHP 7.3 MySQL 5.7 Wordpress.org 5.3.2 WP is configured as network with 5 ...
1
vote
1answer
25 views

Page taking time in loading. Also used lazy loading but doesn't work?

There are number of logo images and many are shown under show more button. But all are getting loaded at a time. Due to page speed decreases. I have used lazy load plugin but still is taking time on ...
-1
votes
1answer
153 views

Stop all SQL_CALC_FOUND_ROWS wordpress queries

In phpmyadmin I often see this query that hangs with a status of "sending data": SELECT SQL_CALC_FOUND_ROWS wp2a_posts.ID FROM wp2a_posts WHERE 1=1 AND wp2a_posts.post_author IN (1) AND ...
1
vote
1answer
26 views

Are pages consuming more server resources than posts?

Is there any performance difference between the way wordpress handle pages and posts when i'm querying for them ? In the same way, is there any performance difference between hierarchical custom post ...
0
votes
1answer
22 views

What Is The Best Method/Tool To Investigate WordPress Internal Performance?

I have a very basic WordPress site and, using www.webpagetest.org, I can see that my site takes around 4 seconds before it transfers a single byte. I've already fixed delays associated with https ...
0
votes
2answers
24 views

WordPress Meta description - is it better to use manual configuration?

I was wondering: aside from the fact that plugins are easier to use, wouldn't it be better to configure meta description on a wordpress website manually by code in the header.php or functions.php file ...
0
votes
0answers
13 views

Two CSS files loading extremely slow

My WordPress site was running slow so I did a GTMetrix test on it. I have two files that seem to be the problem. How do I locate these files and tackle the issue ?
0
votes
0answers
5 views

How to manage the strong impact on Performance (serverside and clientside) of 404 Pages: how to solve?

When a non-existing image is asked to the server hosting Wordpress, it returns a standard 404 page which result in: PHP having to render a page which cannot be cached and loads ALL the plugins 152 ...
-1
votes
1answer
23 views

Site too Slow to establish db connection?

After deployment site was too slow on analysis it takes time at db connection side. DB is in remote server. Trying queries without WordPress gives faster response. But WordPress takes around 40 sec ...
0
votes
0answers
9 views

Website Load Time takes forever

Hi weve got two dashboard in wordpress, One is the admin dashboard of the website and the admin dashboard of the client. For example my website name is www.abc.com, inside the admin dashboard theres a ...
-1
votes
1answer
16 views

Site load time increased

My WordPress site(urchd.com) load time increased and sometimes I face error 524 due to some queries execution time exceeds 21 seconds. I already tried contacting my hosting provider they say that you ...
0
votes
2answers
22 views

How fast can I expect WordPress to be on a fresh install locally?

I have installed WordPress on my local developer's machine. This developer's machine is pretty respectable by today's standards (double digits of RAM in GB, and a great processor), and I don't ...
2
votes
1answer
103 views

Is it useful to turn on MySQL query cache for performance

Now the MySQL default query cache is disabled, as I remember long time ago, the hit rate of MySQL is quite high when running WordPress. So I am thinking if enable it now will improve performance, ...
0
votes
0answers
13 views

Which is faster: Loading images from the repo, or loading them using ACF Image Content via Media Library

I have two methods of loading images in my mind right now: 1 - I store an image in a folder within my repo, and load it as a background image, defining it statically in CSS/Inline CSS. 2 - I store ...
0
votes
0answers
14 views

Load time of Meta Box fields too long

I use WordPress and Meta Box plugin in a lot of websites. But I have a problem with one of them, the edit page of one page is too long to load, because I need to use a lot of editors with Meta Box on ...
1
vote
1answer
27 views

Load time cost of using a redirect plugin v direct .htaccess entry

Occasionally, when I inherit a WordPress project developed by someone else, there is a plugin installed to do redirects. On my own projects, I enter all redirects directly into the .htaccess file. ...
0
votes
0answers
26 views

How to fix Specify a Vary: Accept-Encoding header in wordpress website

When i test my website performance, i got notification for Specify a Vary: Accept-Encoding header. So i added code in my ht-access page. But there is no change even i add code also.So what else i can ...
0
votes
1answer
22 views

Wordpress Performance and bulk edits

Should Wordpress slow down and throw 502 and 504 errors , when 5-6 people simultaneously are making bulk edits on the site on different/separate accounts? It's a Woocommerce site with 600 products on ...
0
votes
0answers
21 views

What could explain an extremely high TTFB (~20-30s) when not logged in, but then drastically reduced when logged in?

Tested this across browsers, essentially my site has a TTFB of about \~25s when visiting a page on the site. However, if logged in as a user, TTFB going to any page on the front-end is drastically ...
1
vote
0answers
22 views

Custom Post Type + ACF and performance [closed]

I'm developing a custom plugin for a rather large website. Currently I'm using Custom Post Types (over 10 types), all of them have several Advanced Custom Fields to store their data. It is expected ...
1
vote
1answer
26 views

Register vendor JS/CSS only on pages that require them?

I have some JS \ CSS that is used within selected pages on my site for various UI functions, for example an image slider. This image slider is only used on a few pages inside the site and loading it ...
0
votes
1answer
32 views

Simple way to hide\show an announcement (just a div) on homepage?

In wordpress, in a particular page that is used as the homepage i have a section of HTML used for an announcement. I am wanting to enable someone to easily customize this section from the dashboard, ...
0
votes
0answers
94 views

Page flashes/flickers on every page load

I recently started learning Wordpress, and i noticed something quite disturbing: Under most circumstances, every page load would cause parts of it to "flicker". For instance, if i use the generic "...
0
votes
0answers
20 views

Get all top categories, then only 3 posts for each

I'm building a custom homepage that has that structure:  Cat 1 Post 1 | Post 2 | Post 3 Cat 1 Post 1 | Post 2 | Post 3 etc... I know how to get all top non-empty categories, loop through them ...
1
vote
0answers
222 views

Mysql + Wordpress is killing my server (huge CPU usage and getting slow) [closed]

I have recently installed wordpress in a production server with 80K fields in wp_users registered, 175K fields in wp_post table and 350K fields in wp_postmeta. Problem is that mysql database is ...
0
votes
1answer
26 views

Performance hit of Inline CSS

I would like an opinion. Does inline CSS hurt website speed performance? Because even though I write all my custom CSS in the theme customization page Custom CSS section, still in some speed tests ...
0
votes
1answer
36 views

Best way to store 1 billion+ posts?

Hey there I am working on a site that collects a lot of data via scraping. For each data created i'm adding it to WP as a CPT. The problem is I'm going to reach around 1 billion rows eventually, and ...
0
votes
0answers
30 views

How can I figure out what is making my Wordpress site so slow?

My site, which is small and only just recently launched, is pretty damn slow when it comes to doing admin stuff. What tools/techniques can I use to help narrow down whether the slowness is due to my ...
0
votes
1answer
73 views

get_the_id, get_the_permalink, and get_the_title all with one DB call

we are trying to optimize a heavy traffic WP site, and am looking for a way to get the data for these three WP functions with only one query, in order to reduce queries & load on DB server: $wpid=...
0
votes
0answers
34 views

“edit page” not loading

This has been happening for the last few days... Click on edit page. The page turns white, the loading bar starts moving and it looks like it's making progress based on this. By about half way along, ...
0
votes
0answers
29 views

Why is this function so slow?

My client has a WP website, its a real estate site with the properties setup as custom post types. Below is my search query to filter the listings based on a search form, all fairly standard stuff. ...
1
vote
1answer
64 views

Is it better to put CSS in additional CSS or in Child theme styles.css [closed]

By better i guess i mean which works faster when rendering the page. I understand that the additional css editor stores the changes in the database. Does that make it quicker or slower than using ...
1
vote
1answer
23 views

Preload external PHP information

I have pricing that I load from my billing system whmcs to my WordPress website using PHP. I wanted to know if there is a way I can preload it for it to load nicely or cache only that page or ...
-1
votes
1answer
60 views

Eliminate Render blocking CSS?

OK, so I'm really struggling with a 'brand-new' WordPress website. I'm no WordPress developer, I only have some knowledge of HTML, CSS and a very basic understanding of PHP, Javascript and jQuery. ...
-1
votes
1answer
16 views

Using <style> tag or inline style attribute?

I have a widget in plugin that will display a list of items <li> and I'd like to add one color to those items as option (color picker)... The question here, do I throw that color as a: <...
0
votes
0answers
68 views

Slow page loads due to WordPress Core Query

I have a page with many posts and every single page load is noticably slow. Hence, I have checked with Query Monitor the culprit(s) for the slow loading time and found that one query in particular is ...
0
votes
1answer
82 views

What can be a solution when my wordpress is extremely slow?

When I was writing a blog article today, I realized that my wordpress suddenly became extremely slow. Until yesterday it'd been working totally fine. To give you some background information, I'll ...
0
votes
0answers
51 views

Optimize WP site for millions of posts

I have a news portal Using WP cms, It has around 90K posts. DB size 2GB. Used Apache, ngnix, WP Memory Limit 4096M, Time 300 Sec, Using CDN :) I am using 2 Dedicated servers E5 2650 V4, 96GB Ram. ...
0
votes
1answer
34 views

Unusual high query of user meta data

We have a WordPress installation with many plugins installed. The site is not that highly frequented (maybe 10-20 concurrent users). I know the amount of plugins comes at a cost of performance. ...
0
votes
0answers
15 views

using global variables and performance

I use global variables to retrieve all sort of available data, especially $post and $posts, for example in order to retrieve the url of a user from the post loop instead of using ...
0
votes
0answers
19 views

Change loading order of blocks

I have a block with a video in WordPress, and the images below it are out of order until the video finishes loading. How do I change the loading order so that the images finish loading before the ...
1
vote
1answer
25 views

Including post thumbnail url in loop's post object to reduce number of queries

I'm working now on high performance Wordpress website and it requires me to analyze a lot of queries, caching options etc. I've discovered that if you use get_the_post_thumbnail() even within the loop,...
1
vote
1answer
17 views

Is there a way to append meta data without creating a race condition?

Our site has a lengthy AJAX function that appends content to the user's cart, which is stored as an array in the usermeta table. The function looks something like this: $cart = get_user_meta($userID,...
-1
votes
1answer
270 views

Combining JS files to one script

I am trying to combine all JS files - local and third party files. I tried using the following plugins to do the same: Autoptimize: It is just not combining the JS files to one Fast velocity minify: ...
1
vote
0answers
11 views

How to cache a different page version based on HTTP header?

My website has an HTTP response header generated by Cloudflare that contain the visitor country code, and i can use that header in PHP to generate a dynamic content based on the visitor country, now i'...