Articles of performance

WordPress performance – send all metaboxes to function or to call it again

I need to send my metabox information to a function – the meta is already called on page template $meta = get_post_meta(get_the_ID()) but I need to use this data in function the metaboxes are around 20 and containing different information (strings, arrays, multidimensional arrays, etc) For best WordPress performance which is better option – to […]

AJAX – SHORTINIT set to TRUE returns blank

Thought I’d take this nifty shortinit trick for a spin. However, when I include this in my custom ajax handler, I get no response from my callback. If I comment it, it works just fine. Anything changed? <?php //mimic the actual admin-ajax define(‘DOING_AJAX’, true); if (!isset( $_POST[‘action’])) die(‘-1’); ini_set(‘html_errors’, 0); define(‘SHORTINIT’, true); require_once(‘wp/wp-load.php’); //Typical headers […]

Performance testing a Worpress site locally?

G’day, I am a novice in WordPress development, I have searched a lot but couldn’t find the solution. I have developed a WordPress site and I want to test it on localhost, I want to test the server performance, speed, system operations like bandwidth issues, server load and busyness etc. Can anyone help please? In […]

wp_get_update_data() function running on every admin request

In one specific instance of a WordPress build the admin is incredibly slow, after checking the issue out with the Query Monitor plugin I notice that WordPress is running a handfull (~15) HTTP requests whenever you click around the admin panel. These requests are all fired from the wp_get_update_data() function, of which goes away to […]

How can I control which plugins run in the dashboard?

I do not wish to activate/deactivate plugins. But for plugins that have no menu pages/submenu pages, that mostly do things on the frontend, I wish to disable while viewing the dashboard/admin pages. The end goal of this is to reduce the loading of plugins in the backend area. So as to make dashboard viewing/using/etc far […]

Dashboard memory overload problem

I have a client who has a dev server, and we continue to have problems. We recently tried to install a new theme, and it’s child, and it did become active, but anytime we try to access the dashboard we get this error. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate […]

How to remove /page/2/ from home page?

First of all: I don’t understand the meaning or the action that http://myurl/page/2 does? I checked the Net tab in Firebug and saw that my page takes more than 3 seconds to load /page/2… but I don’t need pagination at my front page at all. I don’t get where it comes from either. My question: […]

wp_posts query slowing down my website

My website’s been incredibly slow and I installed the query monitor plugin to learn more about the issues that caused this. When loading my index page, the following query takes 0,2412 (seconds?!) to load, and it’s coloured in red in the plugin so I guess this has something to do with the slow loading process. […]

One sub site is slow while all others load fine, same theme & plugins

I have one sub site that is running slow and takes over a minute to load. It times out all the sites like pagespeed insights or pingdom. This is the site: http://www.evantage360.com/jleech I don’t want to delete all my plugins since there are over 100 other users so cloned the site & deleted all my […]

Improving WP_Query for performance when random posts are ordered

I have made a new query after I’ve asked a question about my query_posts code… you guys didn’t find that great, so I decided to change that. I made this: $page = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $rand = new WP_Query(“showposts=10&orderby=rand&paged=$page”); while($rand->have_posts()) : $rand->the_post(); My question is: how can I improve this? Isn’t it better […]