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.

4
votes
2answers
986 views

Stress testing WordPress

We are going to launch a community site with 100K posts, 100K comments, 10K terms, 5 users ( all admin/editorial), and approx 500K recs in the wp_postmeta. Site may grow with a larger author base and ...
4
votes
2answers
3k views

Post ID At The End Of Permalink URL Effects Performance (Positively)?

HARD NOTE: This question is solely about performance, and NOT search engine optimization. So, please make sure your answers are as such. W.r.t permalinks, "year" is the most obvious numeric of choice,...
4
votes
3answers
704 views

Refresh external feeds only in cron?

Is there an easy way to ensure that external feeds (via fetch_feed()) are only fetched via cron, and not when a regular user visits the site? This is for performance reasons, I want to minimize the ...
4
votes
1answer
621 views

Is the theme customizer slowing down my site?

I have built an awesome theme, which is very flexible, because it has 500 settings of different (custom) types in the theme customizer. I generate the live css like it says in the codex: function ...
4
votes
2answers
499 views

Use override_load_textdomain for cache translation and improve performance

I have a multisite wordpress with multiple localized sites (es_ES, de_DE, it_IT). I want improve page speed by caching wordpress translation file. My code works (inspired by Tristan Darricau)! and ...
4
votes
1answer
2k views

How can I reduce the number of database query calls for this custom homepage?

I am working on the design of a blog with the below(just a sample) category hierarchy. PARENT | ...
4
votes
2answers
3k views

Slow admin - waits and is blocked for a long time

I have a wordpress site and sometimes when logged in to the admin it can be quite slow. I've attached an image to show what i mean. The first request waits for about 8 seconds before anything else ...
4
votes
1answer
706 views

Fastest Server Config, Whats your suggestion?

If you were configuring a new VPS for a WP website that hasn't launched yet, What technologies would you choose? (website specs below) Website Targeting 50-60k hits /mo. and more The website is ...
4
votes
1answer
6k 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 ...
4
votes
3answers
161 views

What is the most efficient way of implementing a favorite post system?

I am going to implement a favorite post system so users can save their favorite posts for later reading. I want to know what is the best approach for doing it taking into considaration the ...
4
votes
2answers
2k views

Slow SQL_CALC_FOUND_ROWS Query

We are experiencing very slow performance with queries that use SQL_CALC_FOUND_ROWS within the admin section of WordPress. We currently have about 125,000 posts on our site and use Varnish to cache ...
4
votes
2answers
838 views

WP_Options ID high

I have a site where the options_id field in the wp_options table has grown very, very large. A month and a half after the installation, the auto_increment value is now at over 10 million. While ...
3
votes
2answers
147 views

Is security a problem in Wordpress?

I am going to start a big corporate website for his car shop which is supposed be more secured. Is Wordpress okay to start a secured and reliable website? As far as i heard, Wordpress hackers ...
3
votes
3answers
3k views

Memory needed to host 200 wordpress sites?

I'm planning to use Multisite to host 200 different wordpress blog with each having their own unique subdomain. I notice each time I create a virtual host for each subdomain it'll use roughly 50mb ram....
3
votes
1answer
1k views

Advanced Custom Fields - Query Efficiency

For testing purposes I have edited page.php to have nothing other than: <?php while ( have_posts() ) : the_post(); ?> <h1><?php the_title(); ?></h1> <?php $site_options = ...
3
votes
2answers
142 views

What effect does the_content filter have on performance?

This is general question but lets say I have a function and on a specific page I want to display a table. The function only applies to one page on my site but every post/page will run this function (...
3
votes
1answer
4k views

Is it true $wpdb->get_results is faster than WP_Query in most cases?

On my homepage, I have a section where I have to display the last five featured posts, where a featured post is simply a post with a custom field is_featured set to 1. I achieved what I want with two ...
3
votes
4answers
309 views

Hardcoding and WordPress Performance

On the WordPress Optimization/Performance page it suggests hardcoding static variables rather than referencing them through WordPress functions. I think I get the rationale behind that. But what ...
3
votes
1answer
631 views

Will removing revisions positively impact database performance?

As per this question over on DBA.SE, I'm having quite a few issues with database optimisation. I'm just wondering if removing/disabling revisions will positively impact my database usage? We don't ...
3
votes
2answers
513 views

Is Wordpress fast enough for a heavy traffic project?

I was always a WP guy, built many small sites with it. I will create a new community with a big fanbase and I was wondering if 3.1.3 is fast enough? I didnt have the opportunity to work with it since ...
3
votes
2answers
222 views

Does a WP site consumes memory resources when there are NO visitors?

I understand that every time a visitor goes to a website, it triggers the PHP code that then demands system resources. My situation is that I have many websites, some not used, just sitting there, ...
3
votes
1answer
414 views

WordPress tips for speed and performance [closed]

I have got some problems with performance, exactly page speed load on my Website. Here are things listed below: I have got WordPress installed on my VPS with Nginx platform. AMD 8 cpu's 2x SSD ...
3
votes
4answers
826 views

Do Plugins effect site loading time?

Is there any way to measure the time it takes for plugins to load and in which pages they load (without figuring out the entire code)? In addition, I would like to find out which plugins load files in ...
3
votes
3answers
2k views

What is the expected limit for acceptable performance of WordPress without any adjustments?

In your experience, when is the time one needs to start thinking about scaling up? What is the expected performance of a common WordPress installation on a standard Apache web server, without any [...
3
votes
3answers
554 views

Extremely slow Wordpress website with 6000 posts

I have a website with 6000 posts and it is extremely slow. Sometimes I get this error in my browser: Service Temporarily Unavailable The server is temporarily unable to service your request due to ...
3
votes
2answers
400 views

In terms of performance - Is unmanaged VPS better than a managed one - for WP sites?

I am looking into optimizing my WP blogs, and one thing that comes out is that several of the most acclaimed solutions people are offering (Such as eaccelerator and Nginx), are only available if I had ...
3
votes
3answers
249 views

Utilize WordPress Authentication Only

I want to do a small game for the users of my WP site. The game itself will only use the authentication system from WP, but all of its other logic is entirely external. Right now, if I use a standard ...
3
votes
1answer
975 views

Disable slow media queries?

When a user creates/updates a post within the admin, it takes between 15 and 30 seconds for that operation to complete. The culprit appears to be this slow query: SELECT ID FROM wp_posts WHERE ...
3
votes
3answers
308 views

How can Wordpress be made more memory efficient?

Let's assume this is a site that has dynamic content pertaining to the user, or content that changes very often, so varnish is out. Let's also assume that there are no plugins and the theme is vanilla....
3
votes
2answers
4k views

WordPress for a very large website

I've searched and searched but I did not find an answer online. Also, I've posted this on StackOverflow and apparently it wasn't ok and I reposted this here. I hope it's ok. I have this website which ...
3
votes
1answer
557 views

Wordpress tries to load “next page” after done loading current page

I have a fresh 3.5.1 installation - default theme, no plugins. Running HTTPFox on Firefox shows that after a GET-request of any given page in Wordpress has finished loading, a GET-request is sent ...
3
votes
2answers
508 views

Shortcode perfomance solution

I have a site that is performance critical. Doing shortcodes I thought about the time the server needs to parse and return the content, instead to allow some HTML (<div class="redletter">) to go ...
3
votes
2answers
207 views

Get Y random authors' ID/Object with more than X number of posts

I want to display Y number of authors' info randomly. These authors have to have at least X numbers of posts published. Please keep in mind that this would be for a blog with thousands of users where ...
3
votes
2answers
439 views

Can we have a post without a slug?

When I insert a post I've found that there is a slow call to wp_unique_post_slug from within insert_post (In the database I'm using to test there is 155,000 posts - live would have considerably more). ...
3
votes
1answer
2k views

WordPress dashboard is slooow. Front end is fast

Every aspect of my dashboard is slow--it can take 30-60 seconds to get a list of pages, or to updated a post. Yet, the front end is fast. I checked all the plugins--no problem there. I deactivated ...
3
votes
1answer
1k views

Improve or optimize a very slow query

I have a fairly large database - 113,299 rows in wp_posts and 216,0649 rows in wp_postmeta. There is one custom query that I run after a post is added or edited, which appears in MySQL's slow-log ...
3
votes
2answers
2k views

Very slow query

This query works, but it takes upwards of 20 seconds to run on a Quad Core dedicated server... How can I optimize this? $slides=get_posts( array('post_type' => 'any', 'numberposts' => 5, '...
3
votes
1answer
1k views

store/cache ajax sent data to avoid repeated request

I developed a widget that offer a full blown archive search tool, where the user can select various options that are joined into an objects to be passed to WP_Query in an ajax action that returns the ...
3
votes
1answer
82 views

What is best way passing variables to theme templates and using them different places like widgets?

I have a template file at /parts/template.php which contains a post listing code like, echo get_the_title(); //same lines with my_render_function and i am using it at archive.php with this lines. ...
3
votes
1answer
2k views

Website Loads Twice Unnecessarily

When I use tools.pingdom.com, I can see that my website is loading twice unnecessarily. The first time www.junkluggers.com is loaded, a cookie is set. Then part way through the loading process, www....
3
votes
3answers
20k views

WooCommerce with thousands of products - site is very slow - optimize db queries? [closed]

So far I've got around 8,000 products in my WooCommerce and the product page on the front end takes several seconds to load, even after caching. My VPS host says that I should have multiple databases....
3
votes
1answer
674 views

What is a reasonable get_num_queries() result?

What is a reasonable number of results I should expect with get_num_queries()? I know it depends on the theme, and I know that smaller is better, but what is a ballpark figure? 10s? 100s?
3
votes
1answer
44 views

What is the proper use of https in a modern E-Commerce environment?

Traditionally https was only used when absolutely necessary to protect personal and vital information. Checkout and account registration being the most common. The major reason for a lack of broad ...
3
votes
1answer
219 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 ...
3
votes
1answer
203 views

Cache Wordpress translations

I'm debugging a slow Wordpress website, and saw this XDebug report from Webgrind: The majority of the processing is done by translation related functions. I would like to: A) Cache translations so ...
3
votes
1answer
82 views

Promoting child theme to stand alone

I have developed a website using a fully fledged theme packed with tons of bloatware and custom functions/widgets I am not using. The package is slow, and 95% of CSS (1MB!!!!) and Javascript is never ...
3
votes
0answers
105 views

Combine JS and CSS for WordPress admin

I am using W3 total cache which allows me to combine JS and CSS in the forward facing site, but is there any way I can do the same for the admin/backend/dashboard area. I can't think of a technical ...
2
votes
3answers
130 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 ...
2
votes
2answers
8k views

What's the difference between wp_insert_user() and wp_create_user()

I know the former allows additional parameters, so you can more user info, but other then that, why do both exist? The specific reason I want to know is that wp_insert_user() is happening REALLY ...
2
votes
2answers
2k views

Disable Outbound Web Requests

I've setup wordpress on AWS. I want to reduce as much network traffic as possible. What services/jobs do I need to disable in Wordpress?