Quick List: Things WordPress Plugins Developers Can Do to Help Their Plugins Scale

1) For heavy backend operations like generating reports, don’t generate the screen on the init hook. Schedule a cron job and generate it periodically … if the administrator needs it right away, give them a refresh button.

2) Don’t autoload options unless they are really needed on every page load. And if you do autoload the option then make sure it isn’t too big 10KB should be plenty. Keep in mind if you create your option for the first time using the update_option(); [codex] function it will be autoloaded by default. So you should instead intiate the option using add_option('myoption','myvalue', false);

3) Don’t use wp_postmeta fields for numeric calculations. WordPress strongly encourages developers to work within their custom post type API, which is good, but that doesn’t mean the Metadata API is equally good for all data types. For instance a post_type, “order”, in which the record will have fields like ‘subtotal’,’tax’,’discount’,’grand_total’, which will likely be summed and counted and multiplied etc, go ahead and use a custom table with a foreign key on post_id.

25 thoughts on “Quick List: Things WordPress Plugins Developers Can Do to Help Their Plugins Scale

  1. Oh my goodness! an incredible article dude. Thank you Nonetheless I’m experiencing concern with ur rss . Don’t know why Unable to subscribe to it. Is there anybody getting an identical rss drawback? Anybody who knows kindly respond. Thnkx

  2. I was very happy to find this net-site.I wanted to thanks in your time for this glorious learn!! I undoubtedly enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post.

  3. Howdy! This post could not be written any better! Reading this post reminds me of my good old room mate! He always kept chatting about this. I will forward this page to him. Fairly certain he will have a good read. Many thanks for sharing!

  4. I was extremely pleased to find this web site. I wanted to thanks for your time for this wonderful read!! I unquestionably enjoying just about every little bit of it and I have you bookmarked to take a look at new stuff you blog post.

  5. Undeniably imagine that which you stated. Your favorite reason appeared to be on the web the simplest factor to take note of. I say to you, I definitely get irked at the same time as people think about issues that they just do not know about. You managed to hit the nail upon the highest and outlined out the entire thing with no need side effect , people could take a signal. Will probably be again to get more. Thank you

  6. I keep listening to the reports talk about receiving free online grant applications so I have been looking around for the top site to get one. Could you tell me please, where could i get some?

  7. My brother suggested I might like this website. He was once entirely right. This publish actually made my day. You can not imagine simply how much time I had spent for this information! Thank you!

  8. Hello, i think that i saw you visited my website thus i got here to “return the prefer”.I’m attempting to to find issues to enhance my web site!I guess its ok to use some of your ideas!!

  9. I in addition to my buddies came reviewing the excellent information and facts located on your website while quickly I had a horrible feeling I had not expressed respect to you for those techniques. All the men had been for that reason passionate to learn them and already have simply been enjoying those things. Thank you for turning out to be well considerate and also for going for this sort of incredible areas millions of individuals are really needing to discover. My very own honest regret for not saying thanks to earlier.

Leave a Reply

Your email address will not be published. Required fields are marked *