Stack Exchange Network

Stack Exchange network consists of 174 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
25 views

My site is so slow! [on hold]

Everyone, good morning. I have a serious problem regarding the speed of my site. I've greatly diminished the photos and the quality of them, but the page still has a horrible score on Test My Site. ...
0
votes
1answer
14 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
102 views
+50

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
20 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 ...
-1
votes
0answers
17 views

How to improve WP-site speed when W3 Cache is incompatible with the WP-site

I'm struggling in improving my Wordpress site sitespeed and my site is incompatible with W3 Cache. Any ideas how to improve the sitespeed some other way? The images are allready resized.
0
votes
0answers
55 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
18 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
15 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
1answer
18 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
54 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 ...
0
votes
0answers
16 views

Placeholder lazy load images

I finally implemented lazy loading on my images without a plugin. Also, I added a noscript tag below my images for SEO purposes. But, I would like to implement a placeholder like Medium.com ...
-1
votes
1answer
32 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
25 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
29 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 $...
2
votes
3answers
118 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
35 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
34 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
46 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
46 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
15 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
190 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
162 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
0answers
18 views

Remove querry string from a html link

For perfomance purposes (remove Google Maps Scripts) i use Google static maps to load a lot of locations in my Wordpress website. All maps have differents urls but the syntax is similar. I'm not ...
0
votes
1answer
25 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
20 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
148 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
16 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
64 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
0answers
18 views

Website refuses to use optimised css file & just creates a new unoptimised file

We're trying to "optimise css delivery" to satisfy pagespeed insights. When we use critical css generator on the file it says should be optimised it just creates a new unoptimised file with a ...
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
200 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
43 views

Website loading, going blank, then reloading

I am having an issue with my website load (www.flyingvgroup.com). When I input my site URL, the site appears, goes to a white blank screen, and then reappears. I ran a GT Metrix test found here and ...
0
votes
0answers
43 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 ...
0
votes
0answers
473 views

Serve cookie free URLs in WordPress without using a CDN

I ran a GTmetrix test on my site (example.com) and got a very low score (50) for "coockie free domains". I gather from this error that the webpage of each URL of my domain is served with cookie ...
0
votes
0answers
23 views

How to run large query without breakign execution time , or memory limit error

I am writing a code to copy post from a database where may be thousands of them, but now my query is breaking. Can anyone let me know, how can I run my code without exceeding execution time? I have ...
0
votes
1answer
1k views

wp_redirection_404 table has grown to 7GB

The company I work for has an enterprise Wordpress site that was acquired from a different company. I don't know if there was a past hack or if it's just accumulated spam or what, but the ...
0
votes
0answers
33 views

Why are the latest visits to my website originating from my own website?

To start with, I don't know anything about coding and stuff. I am here to seek help from experts hoping they can help me resolve the issue. I have a website/blog that runs on WordPress. I have a VPS ...
2
votes
4answers
249 views

Is there any performance consideration when using Custom Post Types?

Consider a busy site with about 10,000 posts divided in 10 custom post types. Custom taxonomies and custom fields are also used on all of them. The main query was modified to include all these posts ...
0
votes
1answer
23 views

Most performant/functional way to add actions/filters?

This question may seem trivial however as I see all of those styles very often I wonder if there is a difference (e.g. in performance or functionality): Possibility 1: function myabc() { } ...
4
votes
1answer
4k views

How to fix wordpress slow first time load (Local Server)?

Summary Accessing WordPress page for the first time took about 5-7s to load from a local server vs 300-500ms for subsequent page loads on any links. Approximately 10x slower for first time access ...
0
votes
0answers
51 views

is using “require_once” in wordpress theme affect the speed ???

I am working on a framework to make my workflow faster like a starter theme plus boilerplate. so one of main parts that will make the work faster is the plurality ... I for example in function.php ...
0
votes
1answer
1k views

Will loading too many ACF Fields cause slow down?

I work on a website which uses about 5-8 ACF fields on almost every page (an ACF Fan!). The count goes up to 10-12 fields in the single.php of my CPTs. I call the ACF fields directly using the ...
0
votes
2answers
27 views

Measure WordPress performance on different hosts

Hello guys and happy new year! I am looking for a reliable way to compare WordPress site performance on several different hosters. Key factors for me are: try not to use 3rd party tools or plugins ...
0
votes
1answer
27 views

Counting user's comments - efficient way?

As a way to "reward" users, I'd like to showcase their comment count on their comments. However, every answer I've seen as to how to achieve this involves querying the database and counting through ...
2
votes
2answers
857 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....
1
vote
1answer
485 views

admin-ajax.php slows down, but cant figure out which plugin

admin-ajax.php slows down, but cant figure out which plugin. Tried to follow these steps: https://woorkup.com/diagnose-admin-ajax-php-causing-slow-load-times-wordpress/
0
votes
1answer
49 views

Improve WordPress performance on large number of posts

We've 500K+ posts and database is around 3.x GB. (we allocated 5GB innodb buffer pool) We've been using caching plugin, but performance still sluggish on area where cache is not useful, e.g. wp-admin ...
1
vote
1answer
527 views

Why can't /wp-login.php be load balanced?

I've seen several questions posted but they either blow passed this specific item or go unanswered. Basically, I have a load balance set up between two instances of the same wordpress website with ...
0
votes
2answers
287 views

How to combine multiple wp_insert_post into one in order to gain better performance

I need to insert about 300 posts into the DB programmatically. Usually i use wp_insert_post to do this job with one record each time, but this time I don't think it'll work well with hundreds of rows....
0
votes
1answer
81 views

Avoid loading Facebook buttons and statistics multiple times

When my site loads single posts, some Facebook buttons (share, save, like) with the associated statistics are displayed in three different places: at the top and at the bottom for posts and in the ...