Web hosting services or owners often trick you with the term “unlimited” bandwidth when you host your website. However, “unlimited” doesn’t exist at all. If you read the terms of service (TOS) of Shared WordPress hosts, they have some limits. Over time your WordPress site gets more hits and your site may hit your limits. As per TOS of web host, you’d breach its policy and you’ll eventually get an email from hosting company. Anyway, to help you understand how disk usage works, we are writing some helpful tips to check disk usage in WordPress so that you can clean up your WordPress site for better performance.
How to Check Disk Usage in WordPress
1. Checking With WordPress Plugins
There are chunks of WordPress Plugins that check disk usage in WordPress sites. Our very first recommendation and trusted plugin is Disk Usage Sunburst developed by the team over at RaidBoxes. The Disk Usage Sunburst displays all the files of your WordPress install in a small round chart like the sun.This plugin is very handy when you wish to determine the biggest files in your WordPress installation!
We recommend to instantly deactivate or delete it when you have no use of it. Otherwise, such plugins will hurt your website in terms of performance.
2. Checking Disk Usage and Database Size from cPanel
If you have access to your Cpanel, you can see a complete overview of your database and disk usage. Just log in to your Cpanel using your host username and password and locate something like this on the sidebar (either left or right because it depends upon the hosting.
3. Using WP-Optimize Plugin to check Database Size
Sometimes just over-viewing the Cpanel to check the database size is not enough alone to check what is occupying the space in the database. A free plugin like WP-Optimize come in handy in such case. Essentially it is a tool to analyze and clean up your database. The main purpose of this plugin is to automatically clean your WordPress database to run your site at maximum efficiency. However, you can also see the full status about your database using this plugin.
4. Asking Your Hosting Provider
Sometimes the hidden data and files will allocate your tremendous space in both database and files. You can’t even see on the Cpanel or Plugin. If that misfortune ever happens, you can always ask your hosting provider to provide you with a detail report of disk usage. They will be more than happy to assist you to clean up your unused data as this is good for both parties. Just do not hesitate to email or pin at the support desk if you have any confusion.
7. Checking Disk Usage via SSH
SSH or Secure Shell is a cryptographic network protocol for operating network services securely over an unsecured network. This is one of the best techniques to check disk usage in WordPress. Although this is more tech savvy, still this is a pretty handful. First thing first, you need to login to your host via SSH and use the following commands to navigate to your wp-content folder.
After you’ve successfully entered into /wp-content folder, use the following command to sort the folder from ascending order in term of size. Meaning, the smallest file will be on the top and the largest will be on the bottom.
du -sh * | sort -h
You can go as deep as you need until you find what is taking up the most space on your site. In this case, it is our uploads folder.
Tips to Reduce Disk Usage in WordPress
Here are some of the quick and effective tips minimize disk usage on your WordPress site.
- Optimize your images
- Delete old themes and plugins
- Cleanup unused database tables left behind from plugins no longer being used.
- Cleanup and delete comments from spam or trash.
- Remove old log files as well as backup files.
So these are some of the tips to check disk usage in WordPress. Do you have any other easy tricks? If you have, feel free to share them in the comment section below.