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 [optimization]

The tag has no usage guidance.

0
votes
0answers
13 views

problem with caching with swift performance lite wordpress login logout problem

I am using Easy digital download to sell online product . the problem is i have enable Shared Logged in Cache option from swift performance lite setting which result really good for page speed . ...
0
votes
0answers
12 views

How can I speed Ultimate Member website?

I have a website with approx 200 members. It has profile setup functionality where a members logins to check other members profile. I set this up using Ultimate Member plugin. The problem with ...
0
votes
0answers
29 views

Wordpress Query optimaization for slow query

I've WP installation with some 120K posts. One of the slow queries that frequently appear at @mysql-slow.log is below # Query_time: 1.744827 Lock_time: 0.000567 Rows_sent: 1 Rows_examined: 635732 ...
0
votes
0answers
12 views

Uncached* Page Speed

I have a woocommerce based website. I'm using WP-ROCKET for caching and i happy with it for cached website pageload is 1second but uncached webpages like search or a new page this pageloads takes ...
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
0answers
15 views

How to optimize backend? Remove unneeded queries on All posts page primary

How to disable tags, categories, authors and date in All posts page? Any post type. In Screen options I have removed everything (author, categories, tags, comments, date) but in reality this doesn't ...
0
votes
0answers
16 views

Does &$this is really disallowed to use anywhere?

I got this message from the validator of plugins from Envato: When creating a callable, never use &$this, use $this instead: I think he may be wrong with his 'never use'. Are we ...
1
vote
0answers
44 views

What type of index should I use for postmeta?

I already added a composite index but it still took 5 seconds to finish these 2 queries. SELECT COUNT( DISTINCT( wpp.id ) ) FROM `wpdgls_posts` wpp JOIN `wpdgls_postmeta` wpm ON wpp.id = wpm.post_id ...
3
votes
1answer
181 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
0answers
33 views

How to prevent Vimeo duplicate requests?

I've been tasked to optimize a wordpress site (big surprise...) and found that Vimeo embeds duplicates of their player api js file. I would have thought the browser would prevent this but apparently ...
0
votes
1answer
29 views

Is querying wpdb directly and skipping actions provided by WP's core “wp_update_post” a good idea?

I need to query a lot of posts at once. A lot and performance is more than crucial here - things moving slow will net me bad reviews, a lot of them, but cutting a bit through WP's overhead could net ...
0
votes
1answer
84 views

Need to optimize wordpress websites on google pageinsight

I am trying to optimize my websites on pagespeed insight. And, for this I have tried lots of speed optimization wordpress's plugins and all have very good ratings by the users. But not even single ...
0
votes
0answers
31 views

Is there any way to get all custom posts and all custom terms with it's meta in few queries?

I'm developing a website with a record for me query count. It has 720 Query for the main page. I want to reduce it. The main page structure is like this: ~10 Custom Taxonomy Term Each Term has a ...
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 ...
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
1answer
23 views

How to find and remove unnecessary theme scripts? [closed]

When I load my website, I see many java scripts and css loading and slowing my website. Many of them I know I'm not using, like fonts, extra theme css from a template that I'm not using, icons and so ...
-1
votes
2answers
86 views

Optimized PHP & Wordpress settings for speed/performance?

I have a big site with several plugins that take up memory, a lot of requests to the server, etc. I've maxxed out my hosting to help account for this, but are there optimum PHP and Wordpress settings ...
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 ...
-5
votes
0answers
40 views

What are some ways to speed up a WordPress site that most people don't know? [closed]

I am looking for ways to speed up my site, https://whatifhq.com I know this isn't the best place to post this, but I could not find anything else on the web other than "get a better server", "reduce ...
5
votes
3answers
314 views

register_post_status - show_in_admin_all_list & show_in_admin_status_list does not affect query

In the register_post_status, I've already disabled show_in_admin_all_list & show_in_admin_status_list for my custom status my_hidden_status However, from the query log the post_status ...
0
votes
0answers
13 views

How do you ensure your code is as performant as it can possibly be within the ecosystem?

I've built a framework I'm proud of. 14k lines of PHP clean code, this was all transported into a plugin. My framework offers extensive functionality on the customer support side, boasts great ...
6
votes
2answers
51 views

What's the case against transient-ing almost everything that's mostly static?

Assume I have a menu that's simply static, for most sites, or rather, let's use my example, a blogging site, it almost never, never changes. Why not hook it to a transient that never expires unless ...
0
votes
1answer
656 views

Optimize WP Meta Query for large amount of post meta?

I have a large WP site with about 2k posts and 150k postmeta. When browsing to a large category, the archive loads very slow due to the WP query that is seeking for featured posts, to show them first. ...
0
votes
0answers
39 views

Combine multiple WP queries into one, and separate posts by tags

Most of my busiest pages have 5 different queries that look something like this: new WP_Query(array( 'category_name' => "cat1", 'tag' => "tag1", 'posts_per_page' => -1, '...
0
votes
1answer
257 views

How to optimize wp_option table?

My Wordpress website is often going down with the error message "error establishing a database connection" and when I contacted my hosting server, they replied that the query takes a long time(more ...
0
votes
0answers
901 views

Generate new image sizes instead of serving scaled images

So https://gtmetrix.com/ will show me images on my Wordpress website that are a large resolution and are being resized via CSS, eg: XYZ.jpg is resized in HTML or CSS from 4207x3665 to 263x229. ...
0
votes
0answers
38 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 ...
1
vote
0answers
120 views

Query posts without meta preload

I'm optimizing high traffic website. Trying to solve following issue: Site's home page is extremely slow and top showing 100% CPU because of Mysql. After some investigation with Query Monitor plugin, ...
0
votes
1answer
202 views

Queries take 120+ seconds on my large Wordpress site

i have a couple of Wordpress website running on a VPS, each one of them has 1M+ posts. When adding new posts queries just hangs for a long time until the website crashes. I use XML-RPC to post to my ...
-1
votes
1answer
53 views

How to make wordpress backend mobile optimized.?

I have a membership website where my users can create their own page. Most of my users are from mobiles (they do not have laptops). When I open my website in android chrome browser, the WordPress ...
0
votes
0answers
18 views

How can I stop widgets from re-executing every time I access the logged-in homepage?

I have a few widgets and they're being built-up every time someone accesses their logged-in homepage. I assume this is so that everything works nicely. Unfortunately, this is a tremendous ...
0
votes
0answers
50 views

Above the fold plugin error “The Proxy Cache directory contains n cache entries.”

I've just starting using this plugin with a site that I did not code or configure. I'm getting this error: "The Proxy Cache directory contains n cache entries. This may indicate that auto-capture ...
0
votes
0answers
170 views

Serve resources from a consistent URL GT Metrix

I am optimizing WordPress website speed and i have fixed all other issues mentioned by GT metrix (Website to test website speed) but could not fix Serve resources from a consistent URL. I know there ...
1
vote
1answer
444 views

wordpress with 1.5 million posts

I wanted to transform my dictionaries into a WordPress website that has different dictionaries for different views. As you can imagine by now, the posts will mostly have just 2 words and a short ...
1
vote
0answers
627 views

admin-ajax.php + load-scripts.php hanging for minutes

My issue is that when I do a simple Admin Dashboard change, like updating a post or page, I sometimes wait up to 10 minutes for the request to finish. I have tried restarting the process and my ...
8
votes
4answers
459 views

Set Alias for meta_query arguments in get_posts()

Is there a way to set an alias on the meta_query arguments when running a get_posts()? One of my queries is performing poorly. To optimize I just need to be able to reuse the same joined table ...
2
votes
1answer
734 views

Can't move jQuery to footer

Below two methods did not help me. My jQuery is always on the head section. What can be the reason? Method 1: (adding below code to function.php) if (!is_admin()) add_action("wp_enqueue_scripts", "...
1
vote
1answer
343 views

Using uncss or similar with WordPress?

I am interested in implementing uncss in the cli with npm packages (no gulp/grunt) to strip out reams of unused code from parent themes. There is a tutorial from 2015 but there is an open issue and ...
1
vote
1answer
228 views

WP Responsive images - upload custom image sizes

I've been trying to find solution to my problem for the last couple of weeks without any luck. I've been finding that my theme and WP both fail to create proper responsive images. This especially goes ...
0
votes
0answers
38 views

Number of queries in wordpress

I have 870 queries in 3,216 seconds. Is that normal? What are that queries? How can I reduce that queries? What is number of normal queries. Custom Page: 870 queries in 3,216 seconds. Home Page: 866 ...
0
votes
1answer
4k views

How to set a Cookie-Free Domain with WordPress?

I recently set up a WordPress site here. I added these two lines in wp-config.php: define("COOKIE_DOMAIN", "www.artisanplombier-pascher.com"); define("WP_CONTENT_URL", "https://static....
1
vote
1answer
22 views

How inefficient is it to use a Custom Post for 4-5 sentences & pull all to 1 page?

Right now, I created a custom post type "resource" that is currently set to hidden. I'm planning on getting all resource posts and displaying them on 1 page. Not like an archive page, but like a post. ...
1
vote
2answers
1k views

How can I use PurifyCSS to clean WordPress style.css?

I am trying to use PurifyCSS to clean my style.css file. When I try it on static html file if works fine. See example of my CLI command: purifycss wp01/wp-content/themes/mytheme/style.css index.html -...
0
votes
2answers
1k views

Combining several CSS files into one for optimization

I have an idea. And I hope it is already implemented somehow. Here is an example of CSS files in the head of a page <link rel='stylesheet' id='validate-engine-css-css' href='https://example.net/...
0
votes
0answers
57 views

How to optimise this database query?

I need to collect several tables for posts, and this is currently my query: $result = $wpdb->get_results( " SELECT p.ID AS id, pm.meta_value AS text, pm2.meta_value AS ...
0
votes
2answers
742 views

How to properly insert a stylesheet in wp_head

I am generating critical CSS for every page and category. At the moment I am inserting the stylesheet through functions.php like this simply using echo. function criticalCSS_wp_head() { if (...
2
votes
0answers
38 views

SuperCache for Custom Templates

I've started creating custom templates. For instance, I wanted a news template for posts that are news oriented. So, I made news.php <?php /* * Template Name: News Article * Template Post Type: ...
0
votes
2answers
46 views

Is it inefficient to repeat a Shortcode 100 times on a page?

I've been using shortcodes for cutting down on the amount of html I have in my visual editor. I have a shortcode [person] with features name, age, location, phone, and description. I want to list my ...
2
votes
1answer
40 views

Could a higher number of registered image sizes affect performance?

This question is related to this one, but is a bit different. In the layout (archive page) for a Wordpress project I'm working on right now there's a couple of image sizes that do not appear anywhere ...