Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

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.

4
votes
3answers
1k views

Could a large quantity of files in the uploads folder affect performance?

There is a site, where images are not organized into month- and year-based folders. There are more than 20 000 of images in one folder (uploads) now. When I try accessing the folder via a file browser,...
-1
votes
1answer
22 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
8 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'...
0
votes
0answers
5 views

Pre-Render next new user page after sending response to client

Is it possible to execute non blocking code after sending response to client? If so, What would be the best way to render a page and store it in memory till next user execute a request, and just serve ...
-1
votes
1answer
34 views

How to improve my site's loading time?

my wordpress site is hosted on godaddy, using flatsome theme, 7 plugin (including img-lazy load & woocomerce). i have use free cloudflare cdn, but still my site need 13+ seconds to load. i have ...
-1
votes
1answer
35 views

How to resolve google page speed issues for wordpress website

My current WordPress website has several issues in Google Page speed test Defer unused CSS I have already implemented CDN and used plugins like WP Rocket(One of the top plugin for WP website ...
-1
votes
1answer
41 views

WordPress and TTFB (time to first byte) stats

I am currently working with a client that last time I checked was averaging 8-9 SECONDS for their TTFB (time to first byte). So as you can imagine they are looking at a 12-14 seconds page load time. I ...
0
votes
1answer
41 views

Slow page Loads When Using Dynamic Coding

I have written code to get certain tags, and then show the products that have those tags. This is the code: $tag_string = ''; for ($i = 0; $i < 8; $i++) { for ($j = 0; $j < 8; $j++) { ...
0
votes
0answers
30 views

woocommerce image product add a class and data-src attributes

I'm trying to add a class lazyload and the data-src attribute to my product images (woocommerce). I've look everywhere and couldn't find a solution for this. I've try with some plugins, like a3 ...
0
votes
0answers
22 views

Theme header is loaded twice

I've custom theme, and in my header I have SQL query that increase a counter into the database. The problem is it's increasing twice or two different rows(one after another). The problem seems to ...
0
votes
0answers
16 views

Removing the unwanted style sheets and scripts using plugin for improvise the page perfomance

I am already installed the asset cleanup plugin for removing the unwanted css and scripts.The plugin does not contains the bulk unload option without some specific pages and post types. Ex: I am ...
0
votes
0answers
17 views

Wordpress high availability using EFS. Need inputs

I am a WP admin who is struggling with site performance issues usung the below stack AWS spot instances with auto scaling and EFS for WP data. Mounted EFS with AWS recommended settings. Using ...
0
votes
0answers
8 views

Performance Issue with Forms

i'm having massive performance Issues with a Website i'm creating. My user Profiles are quite big, at the moment about 200 fields. The loading times of the page are increasing drastically, at the ...
11
votes
2answers
5k views

WordPress usermeta scaling for thousands of users

I have developed a CRM plugin for a client integrated with WordPress user management and I stored additional information for each user under the wp_usermeta table. However, the client's customer ...
0
votes
1answer
22 views

Does is_admin() really provide a plugin performance improvement?

I have this block in my Main.php class which loads the admin, core and front classes that make up my plugin function registerObjects() { // register the front $controller = new front\...
0
votes
0answers
12 views

Make index.php pre rednered

can I pre-render index.php on server side and make sure my site serves it instead of index.php I want to improve my performance but keeping dynamic capabilities.
0
votes
0answers
10 views

WP Cron regularly causes “Environment health Degraded on AWS”: Happens with HTTP 200 as well as HTTP 500 sometimes

This problem is ocurring regularly and I get dozens of notifications from AWS. Example: Timestamp: Tue Feb 26 17:26:00 UTC 2019 Message: Environment health has transitioned from Ok to Degraded. ...
0
votes
0answers
6 views

Printing extra scripts before src scripts to optimize minification and page speed

In WordPress a plugin may add extra data to be printed before or after a script when enqueueing a script. Quite a few plugins that we have enabled do this to define for example an ajax URL etc and it ...
0
votes
1answer
472 views

wp_get_attachment_image_src() regenerate custom size images everytime

i try to make simple gallery from post's attachment images with custom sizes. i wrote simple loop: $original = array(); $gallery = array(); $gallery_min = array(); $imgs_args = array( '...
0
votes
1answer
20 views

TTFB is too slow in back-end [closed]

the following picture is my TTFB screenshot. it`s very slow, so my website back-end is very slow !! https://upload.cc/i1/2019/02/16/xy1k9f.jpg https://upload.cc/i1/2019/02/16/R987jH.jpg How can I ...
0
votes
1answer
556 views

Slow wp-cron HTTP requests

My website is very, very slow. Using Query Monitor, I diagnosed slow HTTP Requests, taking up to 40 seconds (usually 12 secs). These HTTP Requests are POSTs to http://website.com/wp-cron.php?...
4
votes
3answers
1k views

Do multiple revisions really slow down WordPress?

I have read numerous times that I should clean up my database to keep performance high. Keeping multiple revisions of posts is always cited as a big performance stealer. I'm suspicious of this claim....
0
votes
0answers
11 views

What cause OpCache speed fluctuation?

My testing website is suffering from TTFB speed fluctation which i belive is caused by OpCache, When OpCache is turned off the TTFB speed become steady between 1500-1700ms however if i turned it on ...
0
votes
1answer
212 views

Bandwidth usage increased in WordPress 3.5

I am facing bandwidth issue, for last (2012) whole year bandwidth usage of my WordPress site was 11.66 GB, after updating WordPress to version 3.5 in early January 2013, bandwidth usage for my site in ...
0
votes
0answers
14 views

update_post_meta performance in a loop woocommerce

I have a simple question, I am working on the list order screen of woocommerce and want to add some buttons that via ajax will update some data to the database using update_post_meta. The issue is ...
0
votes
1answer
652 views

(Xdebug Profiler) Why are there two cachegrind files generated for one page?

When I enable xdebug profiler, open a page in admin, it generates two cachegrind files with almost identical name cachegrind.out.1498219635_761795.crown__minilio_wp-admin_edit_php cachegrind.out....
0
votes
1answer
18 views

Wordpress site not loading styles on desktop?

I've created a Wordpress website using Astra and Elementor. I haven't coded any of it or done anything manually other than using the editor to edit some template blocks. Now, when I try to load one ...
0
votes
1answer
25 views

Number of categories slowing down the site

I had over 10K categories and posts on my WP site. Posts are created but don't have any content. I am hosting the site on mid-tier option for WP sites on Siteground. Due to a large number of ...
1
vote
1answer
26 views

What is this code trying to do? It was the cause of my 20s TTFB

I was troubleshooting a 20-30s TTFB for a Wordpress Theme with the help of the fabulous Query Monitor. I was able to narrow down the cause to this code: #e0e950# error_reporting(0); @ini_set('...
0
votes
2answers
30 views

Performance vs plugin genrated javascript

First off let me explain what I mean. I work on a company that got a WP page with a theme installed and a load of plugins, like YOAST, WooCommerce, more plugins for woo commerce etc etc. Those plugins ...
0
votes
3answers
15 views

Suggestion to improve slow Wordpress page

So The website on the company I work on, has issues with delayed homepage loading times. Obviously I suggested to remove a few features from the first page, but I am afraid that all the included ...
0
votes
1answer
74 views

Wordpress speed slow after .5 million single image post via wp-cli

I am trying to Creat Wordpress website that will contain 10 Million post, such that when i upload a single its become a post with it's own name as title. and i am importing these images with Wp-cli. ...
56
votes
4answers
11k views

Do deactivated plugins slow down a WordPress site?

Most people are aware that minimizing the number of plugins used is a good way to help keep a WordPress site running fast. However, does that general rule include deactivated plugins?
3
votes
1answer
178 views

Speeding Up Bulk Post Creation - wp_insert_post & update_post_meta

I am creating posts (variable products) using (wp_insert_post) function. An Example, I have 9 colors, 9 sizes. Which makes 9×9 = 81 total variations for 1 product, which is 81 times below function to ...
0
votes
1answer
18 views

Huge time to first byte on live site

I have problems with loading my site. Time to first byte varies from 0,5 to even 10s. I can't find what may cause that lag in back-end processing. My site : www.mm.bartoszwasz.pl Test with GMetrix ...
0
votes
1answer
719 views

Why my wordpress site is extremely slow even being on a powerful EC2 and RDS stack

I have a website and 2 blogs running on an ubuntu server which is in EC2. I have php7.0 fastcgi along with nginx on this server. Out of these 2 blogs, one blog is extremely slow and one is fast. And ...
0
votes
3answers
903 views

Performance bug - slow DB query

Since 2017-09-26 I have terrible problems with performance on my website. Loading single post or any other page takes even 20s. I've been debugging it it found out, that the problems are DB queries. ...
1
vote
0answers
28 views

how to solve slow WordPress site caused by attachment_metadata

My WordPress sites starting to become slower by time, after two years they become very slow. I tried many things, such as: improved my DB, used cache plugins (WP Rocket and W3 Total Cache) which both ...
4
votes
2answers
808 views

WP_Options ID high

I have a site where the options_id field in the wp_options table has grown very, very large. A month and a half after the installation, the auto_increment value is now at over 10 million. While ...
0
votes
1answer
24 views

Cache the registration of a custom post type?

In computation, cache is used to store the state of something that is complex to generate. We then use the cached version for future requests. Taking a look inside the register_post_type function, I ...
0
votes
0answers
17 views

get_template_part calls amount and performance?

I'm trying to build the theme that is easily customizable by other developers and chose to go get_template_part route so files can be easily overwritten in child theme. My question is there some ...
0
votes
0answers
44 views

Why is one specific admin account hanging on the Posts page?

A client told me that one of their admin accounts wouldn't load the Posts page. I tried it myself and experienced the same issue (it hangs for almost a minute, then throws a 502 error). Strangely, ...
1
vote
1answer
2k views

Is there a real benefit in using wordpress optimized hosting?

I'm building a site for a client. This site often takes a long time to load initially, but is rather fast when loading the next page because of WP Super Cache plugin. But still, the majority of ...
1
vote
1answer
56 views

Side effects of Script and Iframe in post

I am writing a post on HTML. Afcorse the post will have Codes in it. So for showing results in the post, I am taking help of JSFiddle, by embedding results of the code. JSFiddle gives two methods for ...
-1
votes
1answer
37 views

Wordpress system (hardware) requirements?

Question: what requirements are for wordpress site? CPU, RAM, network speed, etc? I understand that it varies by number of users and number of plugins, etc, but perhaps anyone knows anything or there ...
29
votes
3answers
5k views

What are the best practices for using a caching plugin on a shared host?

I've launched quite a big site the other day and I'd like to incorporate a caching plugin. The setup is single-site with some Buddypress features mixed in (for user registration, maps with gpress, ...
1
vote
2answers
2k views

Large Number of Wordpress Posts

I am in process of setting up a catalog website and it has some 1.5 Lac products. I will write some script to import all the products but I am not sure whether WordPress will be able to handle such a ...
0
votes
0answers
31 views

Can lots of tags affect performance?

I'm working on a plugin that will auto-tag my posts (it's for a very specific, single project only). It will apply 6 tags based on the content of the post. Forward thinking, I wonder if the number of ...
1
vote
2answers
2k views

Preloader for a Wordpress Site

If i want to add a pre-loader to a Wordpress site that is going to have a high image content, is it best to put the code in the head of the site? I have done a child theme on my localhost site, but ...
1
vote
1answer
40 views

Display tags with random thumbnail from selection of posts with that tag

What I want to achieve consists of two parts: First a set of containers that display each tag (with name, description and link). This is easily achieved with a get_tags and foreach loop. <?php $...