Questions tagged [optimization]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
212 views

Minimizing scripts & css files that plugins add

I try my best to limit plugin usage and only use ones that are well designed. But I still find that many will load a lot of extra scripts and styles, and few have options to load selectively based on ...
0
votes
1answer
162 views

High traffic management in WP

I have to develop a site in Wordpress similar to an already existing site in JSP which handles approx.50K users a day and 200 users at a time. And in load testing i get that wordpress can handle only ...
0
votes
1answer
14 views

How can i unload effect.min.js file?

I'm currently working on optimizing the speed of my WordPress site, and i successfully unloaded some unnecessary files, but there is one i can't seem to remove which is: https://domain.com/wp-...
0
votes
1answer
17 views

Can the benefits of performance optimization plugins outweigh the tax of installing them on performance?

Everyone knows that having too many active plugins often results in a slow site. I ran a check on one of my sites through GT Metrix and found several issues contributing to its slowness. Among these ...
0
votes
1answer
108 views

WordPress plugin activation, deactivation and uninstall hook not being triggered

I am developing a WordPress plugin which requires certain rules to be added to the .htaccess file of the WordPress installation upon activation of the plugin. Initially, before I switched my code to ...
0
votes
1answer
39 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
29 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 ...
0
votes
1answer
248 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 ...
0
votes
3answers
29 views

Optimising uploads folder then re-uploading?

Rather than using a plugin to optimise images via the admin, would downloading and optimising locally work as well? As in would downloading the uploads folder, using something like ImageOptim to ...
0
votes
1answer
33 views

Limit scripts and styles on dashboard for user role

How can I properly prevent scripts and styles from loading on dashboard for some user role? My users need only access to one plugin and that's the only thing they see on dashboard. How can I dequeue ...
0
votes
1answer
499 views

Optimize slow SQL query for multiple meta values

Can you help me to optimize this slow query? The page containing this query is loading slowly: SELECT a.id, b1.meta_value AS display_name, b2.meta_value as user_nicename, b3.meta_value as ...
0
votes
1answer
622 views

A faster way to query custom post types with multiple conditions?

I am using a lot of custom post types (CPTs) with custom meta and so far I have been using queries like the below, to get for example all events in CountryX that happened in 2014: <?php global $...
0
votes
1answer
400 views

Disable Garbage Collection? [closed]

I have a WP site which creates 500's errors for about 2% of Apache requests (mostly bots and crawlers). I'm not able to stack trace most of those requests with 500's neither to PHP or MySQL errors as ...
0
votes
1answer
307 views

Function to retrieve IDs of posts, cache results, and improve wp_query

I'm looking to optimize db performance by creating a function that retrieves IDs of posts in a certain category and caches results. So instead of having a query like: SELECT … WHERE 1=1 AND wp_posts....
0
votes
2answers
1k views

How do I minify '@import' css files with wp-minify?

I am trying to use wp-minify to minify my js/css on the fly. I can get the 'direct' css files to be minified, but I can't seem to get wp-minify to minify the 'linked' css files. My theme is a child ...
0
votes
2answers
626 views

Does WP Super Cache really compress my pages? [closed]

I enabled the compression option on WP Super Cache (off by default!) on my blog. After that, Website Optimization started identifying my pages as being compressed (before, it didn't). All seemed well ...
0
votes
0answers
22 views

Wordpress + Polylang: translations too time consuming, how to optimize?

I am using Wordpress, Porto Wordpress Theme and Polylang for translation (4 languages). I need to translate all website pages into all 4 languages. The website has around 50 pages. I plan to create ...
0
votes
0answers
12 views

Problem with cache, plugin Litespeed and server Litespeed

I have been using the wordpress Litespeed plugin on my site Trailer y Estrenos CO. I have the Chemicloud hosting and it uses the Litespeed server, which according to them, it works super well if is ...
0
votes
0answers
29 views

Google Page Speed

My website is in Wordpress so I am asking question regarding Google Page Speed here. My issue is i had completed the development of home page of existing page now when i am trying to check the score ...
0
votes
0answers
12 views

Should I use 'tag', 'cat' and 'tax_query' parameters together in a WP_Query?

What I'm building I'm developping a plugin. I'm currently filtering the posts by tags and categories (tag and category_name WP_Query parameters) with values given in a shortcode. I want to add the ...
0
votes
0answers
37 views

How to fix Autoptimize and Cloudflare interaction

Yesterday I was trying to change just one option of the WP Autoptimize plugin (inline and defer css) to avoid it render blocking. This was the process of it: I extracted the critical CSS with an ...
0
votes
1answer
7 views

Can mediaelement-and-play core JS be dequeued?

I'd like to understand what is the purpose of the WordPress core javascript file /wp-includes/js/mediaelement/mediaelement-and-player.min.js I am asking that because it weighs 136KBytes and I'd like ...
0
votes
0answers
21 views

Imagify / Image Optimization for theme inline div background?

I'm using the imgaify plugin to serve webp images. Using their plugin a normal tag ends up looking like this: <picture class="attachment-large size-large wp-post-image"> <source type="image/...
0
votes
1answer
29 views

SQL: How to find all attachments that are not used in any posts/pages/custom_post_types

I have a wordpress installation where the posts also contain attachments that were not embedded in the content by using the media library -> add. I would like to find all attachments that are not ...
0
votes
0answers
39 views

Wordpress UPDATE queries on MySQL database stuck

I have an Amazon 24XL server 96 Cores 378 GB RAM Database size 5.7G Debian GNU/Linux 9 (stretch) PHP 7.3.16 mysql Ver 15.1 Distrib 10.3.22-MariaDB I have only one WordPress site where users read ...
0
votes
0answers
94 views

wp_options table size grown-up to GBs from MBs overnight

Our host just informed us that our db has reached it's capacity limit and the database has been blocked (It all happened overnight as the DB size was in MBs only and now it's 2 GB). The INSERT ...
0
votes
0answers
28 views

How to optimize wp_delete_post() function, or why it is so slow

I have a code block to delete all the products from a store. This products have several custom fields and some images attached. The code is below: set_time_limit(0); define('WP_USE_THEMES', false); ...
0
votes
1answer
147 views

Should I use wp_cache in my plugin to make it faster?

As a plugin developer, I strive for coding plugins that take as less server resources as possible. That's why I thought of avoiding to repeat queries to the database that are run on the same request (...
0
votes
1answer
26 views

What is the best way to host a site with many images without it being too slow?

I have a friend that wants me to help them with their WordPress website that has about 150 images for their gallery. Their site is quite slow even after I optimized the images using the ImageOptim app....
0
votes
0answers
15 views

Why does my site download two different versions of the same image?

On both my homepage I have a masonry layout with thumbnails. These are lazy-loaded by JetPack. I noticed that for every thumbnail, two images are being loaded. One with a request url of https://i2.wp....
0
votes
0answers
46 views

Is there a better way to resize and compress/optimize images without using a plugin?

Images resized through Wordpress' add_image_size function seem to be notoriously blurry and too heavy (file-size-wise): When I compare the outcome of manual resizing of a JPG image with OS X's Preview ...
0
votes
0answers
7 views

Is it possible that WordPress keeps old plugins languages in wp-content/languages/plugins?

I just discovered that an updated WordPress install in which I deactivated plugins a long time ago has kept the old languages files in the folder wp-content/languages/plugins. According to the Query ...
0
votes
0answers
17 views

How do you A/B split test a blogs landing page?

I have a shop and a blog. Currently they are split between two URLs, for example johnsmith.com and johnsmithshop.com Most people know me by johnsmith.com, and go to that URL even when they plan to ...
0
votes
0answers
43 views

Reusing old post IDs

When I exported my posts I noticed that some of the ID numbers were missing e.g. it started from 8 and went to say 21 and then from 24 to 30 etc. Is it possible to reuse IDs 1-7 (or any others that ...
0
votes
0answers
92 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
17 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 ...
0
votes
0answers
157 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
166 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
33 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
73 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 ...
0
votes
2answers
747 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 ...
0
votes
1answer
1k 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
2answers
1k 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
45 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 ...
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
61 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
504 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 ...
0
votes
0answers
45 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
0answers
93 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
47 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 ...