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

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.

-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
35 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 ...
0
votes
0answers
32 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
1answer
42 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
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 ...
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
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
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
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
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
16 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
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 ...
3
votes
1answer
179 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 ...
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 ...
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. ...
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 ...
-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 ...
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 ...
0
votes
0answers
32 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
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 $...
3
votes
3answers
125 views

Defer Code in Widgets - Page Speed

How to UP Page Speed With Widget Defer? Is there a way to defer a widget in the footer? I have an external API in a footer widget which is slowing down my page. It is not needed until the page is ...
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, ...
0
votes
0answers
38 views

Wordpress vs. best practices from webhint.io

I've recently scanned my website and some showcase websites with webhint.io* and noticed that they all do have a lot of hints in common. To give a few examples: 'content-type' header charset value ...
0
votes
2answers
59 views

Last-Modified header support doesn’t speed up server processing - want more

I’ve just added “Last-Modified” / “If-Modified-Since” header support for some pages on my site via the recommendation here, but I didn’t see a very noticeable client page load speed improvement. This ...
0
votes
1answer
61 views

wp_set_post_terms() seems very slow

Is it normal for wp_set_post_terms() to be very slow? When wp_insert_post() it takes about 1 second. Adding 4 wp_set_post_terms() 7 - 10 seconds to the operation. Pseudo code example: $values = ['...
0
votes
1answer
20 views

Periodically Query an external API on wordpress site

I am creating a wordpress site that will periodically retrieve data from an API and use that data to update info in the wp_users table. I don't really know how to go about this. I'll start with 2 ...
1
vote
1answer
282 views

Will Gutenberg Have a Negative Impact on Page Speed?

When WordPress includes Gutenberg by default, will WordPress sites suffer from slower page loading times? While it’s easy to test on a clean install, other factors, such as themes and plugins can ...
0
votes
0answers
240 views

WP_Term_Query->get_terms() very slow query for WordPress filter

My first site is almost done, but I am unhappy with how slow the filter-drop downs are populating. My site is for auto-parts so I have many categories with sub categories (Parts -> Type -> Make -> ...
0
votes
1answer
27 views

Server technical information and first respond time for WordPress

I made a wordpress theme, when I compare mine with another website (similar) mine is smaller Page size 1.1 MB Load time 5.05 s Requests 99 but their website is Page size 1.4 MB Requests 132 Load time ...
1
vote
1answer
22 views

Can the page load time depend on incidence of visiting?

Is it possible that page which is not visited frequently requires more time to first load after an activity than the site which is visited often? I have a one particular page which is visited from ...
4
votes
1answer
231 views

Multiple plugins vs combined one

I have different functionality add-ons to my Wordpress site, so usually i just create one plugin with all my custom functions. Now i want to separate this plugin to multiple plugins (one for each ...
0
votes
1answer
18 views

How to run hooks one by one manually?

Im tracking down slowness issues. This line: do_action( 'init' ); in wp-settings.php takes 4,5 seconds to run alone. Most of plugins are turned off now. Is there a way to run those init() hooks one ...
1
vote
0answers
96 views

Preload Cache for thousands of posts may be on non-production environment

I have a setup of three wordpress environments: Local: My Development machine (using docker) Staging: An AWS Free Tier EC2 machine Production: An AWS Free Tier EC2 machine I use git/git-hooks to ...
0
votes
1answer
23 views

Namespaced shortcode?

I'm in the middle of revamping a legacy WP-site which has a lot of custom shortcodes and apparently due to how the code is currently organized, these shortcodes are taking a toll in terms of ...
0
votes
1answer
273 views

does wordpress serve static files?

I am debugging an issue with WordPress and I wonder if static files like css/images/js are affected by WordPress/PHP or if they are served directly by apache? I do not have any WordPress cache ...
0
votes
0answers
48 views

REST api v2 how can modify respond types and make custom DTO for better performance

I using REST api v2 and its respond is about 1MB for one request (10 items) and it takes about 6 ~ 11 seconds that very bad. In my web site there is long articles that written in Persian that stored ...