Home » WordPress

Clean Up Your WordPress Database: Old Plugins

Posted By: Monday 14 March 2011 11 Comments

A couple of days ago I wrote a post called Clean Up Your WordPress Database: Post Revisions in which I explained how you could clean up your WordPress database. In this post I’ll get to another part of cleaning your database. As you know you can extend the possibilities of your WordPress powered blog with plugins. However, some of the plugins store their data inside your database.

Just to give you an idea; for a long time I’ve used a plugin called WordPress Popular Posts to display the 10 most popular posts. This worked like a charm till I actually checked the size of my database which was 27,8 MB! This was really huge and when I looked deeper I saw that the table which was used by WordPress Popular Posts was over 15 MB! This is when I decided to go and look for another plugin.

The total size after deleting old plugin's settings.

So upon installing a new plugin to display the popular posts I deleted the plugin but also the tables which were created by WordPress Popular Posts. But I also noticed that I still had some other tables in my database which were from some old plugins which I tested, so I deleted those as well. After deleting the unnecessary tables and optimizing my database, I had shrinked the size of my database from 27,8MB to 10.7MB!!

It’s actually not a big problem that plugins store their settings into the database, as the settings will remained saved even if you’ve disabled / deleted the plugins so you can use it another time. However this also means that you can have different tables created in your database but tables which you don’t need and table which increase your database size.

So in case you’ve been testing some plugins you should also pay attention to your database. Make sure to login and look at your WordPress database once in a while and see if there are any tables created by plugins which you don’t use and delete them if you’re sure that you’re not going to use them again.

Ow, what ever you do; be careful and make sure to backup your database before deleting any tables!

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed and I'll deliver the future articles to your feed reader.
Behrad

About Behrad:

I'm 29 years "old", married to Jannie and about to be a daddy! We live happily in Eindhoven, The Netherlands.
In 2006 I started BioTecK.net just to show/share my portfolio. After a while I started to blog about my experiences and stuff I do in my life, my interests; computers & computer related stuff, tips & tricks and basically everything which I want to share.
Read more about me, follow me on Twitter @BioTecK or contact me .

11 Comments so far, be the next one! »

  1. [...] The rest is here: Clean Up Your WordPress Database: Old Plugins – BioTecK.NET | Log … [...]

  2. zik says:

    owh something like that… the files become larger time to time… erm..

  3. papabear says:

    there is a plugin that will do that and I have forgotten what the name was. You see, I am a lazy bum and even the previous revisions stuffs, I have a plugin that cleaned them up for me..

  4. WordPress is awesome .

    you think something and you can get it done .

    Or hire some one to get it done if its new.
    thanks:)

  5. Tho Huynh says:

    I don’t know that Popular Posts plugin consumes too much space like that. Can you tell me the plugin that you used and work for you but limit the size of database?

  6. WordPress really is so user friendly that it makes a visitor’s time spent on the blog more interesting. Also, reading such informative posts on database clean up makes the readers have a closer look at how a WP blog actually functions.

  7. [...] the database: The last time I had “cleaned” the database was about a year ago. With this my database is 40MB, which is still too big! So [...]

Leave a Reply

All line breaks and paragraphs will be generated automatically.
BioTecK.net is a Gravatar-enabled blog. To get your own avatar, please register at Gravatar.
You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.