Questions tagged [optimization]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
3k views

better wordpress minify problem

i am using better wordpress minify plugin but it breaks site due to one of css file http://www.mydomain.net/?mcsf_action=main_css&ver=3.1.1 i would like to add it into exception list so ...
0
votes
0answers
40 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
162 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
224 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
71 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 ...
8
votes
4answers
676 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 ...
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
57 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
317 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
2answers
1k 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 (...
1
vote
0answers
748 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 ...
1
vote
2answers
2k 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 -...
2
votes
1answer
855 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", "...
0
votes
1answer
56 views

ordering and optimizing functions

Ive been hard at work trying to build some functions to display products on my site. The prices for these products are calculated based on many variables. I think the first set of functions work, ...
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 ...
1
vote
1answer
434 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
266 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
40 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 ...
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. ...
0
votes
2answers
2k 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
75 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 ...
4
votes
11answers
2k views

Website is slow: advice on optimization

This WordPress-based website i just released is dead slow. I've optimised my theme a lot and get a pagespeed of 91/100 but the first time to byte is the culprit: it takes 8 up to 20 seconds. I've ...
1
vote
0answers
39 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
597 views

Disable unneeded scripts in a wordpress installation

I have inherited a quite bloated wordpress website that runs really slow even on dedicated hosting. I am trying to optimize the speed of it. I have run the website through different websites that ...
1
vote
3answers
184 views

How to Appease the Google PageSpeed Gods with regards to image optimization?

I have a site with a pretty large media library. The images are mostly in JPG format. When I ran the site through Google's PageSpeed, it heavily penalized the score because the images were not ...
1
vote
1answer
49 views

Optimizing function that automatically creates internal links based on post title string

Problem sovled,thank you @SamuelElh for the tip ,so I relect it in the code.Transient turns out to be the right solution. I wrote a function that adds links to existing post titles that occur in a ...
0
votes
2answers
66 views

Optimizing a Wordpress site

Many premium Wordpress themes come with a bulk of functionality and embedded wordpress/jquery plugins that aren't necessarily used at all in a certain project, so I'd assume weeding them out would ...
0
votes
0answers
54 views

Run command to optimize images after they get uploaded to WordPress

I been playing with jpegoptim on a ubuntu test server and like the result of its optimization, its there a way to run the optimization command to the new images uploaded through WordPress? Im aware ...
6
votes
2answers
4k views

Safe to disable wptexturize?

To optimise the speed of my platform (beyond caching, database optimisation, JPEG compression, CSS sprites etc), it has come to my attention that disabling the wptexturize() function may give some ...
1
vote
1answer
68 views

Where are the resized images coming from?

I'm trying to figure out the best way to deal with media that's uploaded into the library. There's a statement in the media library that confuses me a tad: "Discard any changes and restore the ...
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
28 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 ...
82
votes
14answers
6k views

Steps to Optimize WordPress in Regard to Server Load?

Besides installing W3 Total Cache or another caching plugin what steps can I take to make sure that my theme and site run as fast as possible.
1
vote
1answer
75 views

Optimizing WordPress's styles and scripts

I'm trying to optimize my website, get rid off unwanted scripts and styles. I wanted to ask what is the best way to do so. What is the difference between wp_deregister_script and wp_dequeue_script ? ...
0
votes
1answer
444 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
2answers
122 views

Compressing JS and CSS

I'm using W3TC to caching and minifying my Wordpress. Unfortunately it is not possible to minify and compress all of the files since minifying some of them is crashing the site. My question is, how ...
3
votes
2answers
6k views

Preventing YouTube embeds loading multiple instances of player JS?

I have noticed on many WordPress sites I work on that when there is more than one YouTube video embedded, multiple instances of the player JS will be called. Since it's a full megabyte of data, I am ...
2
votes
6answers
7k views

Speed up Wordpress

I don't have the feeling that my blog is particularly slow, but that's because I haven't really started out yet. I'm very worried that it will get slow soon, especially because I will have blog posts ...
0
votes
2answers
614 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 ...
1
vote
0answers
243 views

Cron Job Keep Running in spite of being disabled

I have Cron job issue in two of my sites (both hosted in siteground). It almost runs for every request made to the site I have added following code to wp-config.php file define('DISABLE_WP_CRON', ...
2
votes
1answer
95 views

Image sizes and order of operations

I'm working on optimizing my site, and part of that is compressing images and using smaller versions. I'm using WP Smush and creating a bunch of sizes for each image. All images have been smushed. My ...
0
votes
1answer
191 views

Varnish + Nginx for Wordpress is Good?

i m instaling my new server and trying make some good environment for my wordpress so i wanna know if installing Varnish + Nginx is good idea and will speed up my wordpress website or there is other ...
1
vote
1answer
4k views

Prioritize visible content - Page speed issue on Google insights

I'm new to wordpress and i tried to speed up the site, but i got some error please see the image. I used w3 total cache,autoptimize and Above The Fold Optimization plugins. But still site is slow on ...
3
votes
2answers
444 views

Easy way to process search results before displaying

I've got several search forms on my site and I want them to show different results. My website has a very strict hierarchy and the search form on a parent site should only show results from it's child ...
11
votes
4answers
5k views

Optimizing a Proximity-based Store Location Search on a Shared Web Host?

I've got a project where I need to build a store locator for a client. I'm using a custom post type "restaurant-location" and I have written the code to geocode the addresses stored in postmeta ...
15
votes
4answers
6k views

How to cache json with wp-super cache

In a new project we are using wp-super-cache (the client's preferred plugin) to create the static html files for custom content types. But we are trying to figure out if everything is being cached ...
0
votes
1answer
169 views

How to use Virtual Private Server as Wordpress Image CDN

I have 2 Private Server and 1 Shared hosting. 1 of my private server is not much in use, but my shared hosting is getting overloaded with images running wordpress. I want to set my own CDN with my ...
2
votes
1answer
155 views

Is checking whether the blog is installed necessary?

My Wordpress site has become kinda slow and unresponsive, so I am trying what can I do to speed it up by eliminating unnecessary database queries and other things. I stumbled across suggestion found ...
0
votes
1answer
562 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 $...