Inherited a WordPress Site? Clean It Up & Hand It Back Safely
In this article
- Why Inherited WordPress Sites Are Usually a Mess
- Before You Touch Anything: Backup and Inventory
- Update Carefully, One Step at a Time
- Clean Out the Junk: Plugins, Themes, Users, and Content
- Security Check: Passwords, Permissions, and Malware
- Test Everything and Document Your Work
- Handing It Over: The Final Checklist
- Frequently Asked Questions
If you’ve inherited a WordPress site, the goal is to clean it up without breaking it and hand it back to its owner in a secure, maintainable state. Start by taking a full backup and a complete inventory of what’s on the site before changing anything, then systematically update, remove, and verify each component. This guide walks you through the entire process, from initial assessment to final handover.
Why Inherited WordPress Sites Are Usually a Mess
WordPress sites get inherited for many reasons: a developer left, a company bought another company, a volunteer took over a club site, or a client’s previous contractor disappeared. In almost every case, the site has accumulated problems over time. Common issues include outdated core files, plugins and themes that haven’t been updated in years, abandoned user accounts, spam comments, broken links, and a database bloated with post revisions and transient data. There may also be custom code snippets that only the original developer understood, or plugins that were installed for a one-time event and never removed. The longer the site has been neglected, the more likely it has security vulnerabilities or compatibility issues that could cause it to break at any moment.
Before You Touch Anything: Backup and Inventory
Your first step is to create a complete backup of both the files and the database. You can do this via your hosting control panel (cPanel, Plesk, etc.) or using a plugin like UpdraftPlus, BackupBuddy, or Duplicator. Download the backup to your local machine and store it somewhere safe, like a cloud drive or an external hard drive. You should also make a list of everything you find: every plugin, theme, user, page, post, and custom file. Record the current versions of WordPress core, all plugins, and the active theme. Note any custom code in the theme’s functions.php file or in a child theme. This inventory will be your roadmap for what to clean and what to keep.
Update Carefully, One Step at a Time
Outdated software is the most common cause of hacked WordPress sites. However, you should not simply click “Update All” on a site you don’t know. Updates can introduce compatibility issues, especially if the site uses a custom theme or older plugins. Instead, update things one at a time, starting with the WordPress core, then the plugins, then the theme. After each update, check the front end of the site to make sure it still looks and works correctly. If something breaks, you can quickly identify the culprit and roll back that specific update. If you’re using a staging environment (a copy of the site on a subdomain or a local server), test all updates there first before applying them to the live site. If you don’t have a staging site, make sure your backup is current before each update.
Clean Out the Junk: Plugins, Themes, Users, and Content
Once the site is up to date, it’s time to remove the clutter. This is a judgment call, but a good rule is to delete anything that isn’t actively used. Here’s a checklist:
- Plugins: Deactivate and delete plugins that are not in use. If you’re unsure, check the plugin’s settings page and see if it has any active configuration. Look for plugins that duplicate functionality (e.g., two caching plugins). Keep only what’s necessary.
- Themes: Delete all themes except the active one and a default WordPress theme (like Twenty Twenty-Four) as a fallback. If the active theme is a child theme, keep the parent theme as well.
- Users: Remove any user accounts that are not needed. Look for usernames like “admin” or “test” and change them or delete them. Assign any content owned by deleted users to another user.
- Posts and Pages: Move old, irrelevant content to the trash and then permanently delete it. Be careful not to delete anything that is important for SEO or legal reasons. Use the “Revisions” feature to clean up post revisions if you have thousands of them.
- Comments: Delete spam comments and unapproved comments that are not real. You can use the built-in “Empty Spam” button in the Comments screen.
- Database: Run a plugin like WP-Optimize or WP-Sweep to clean up transients, post revisions, and other database clutter. This can speed up the site.
Security Check: Passwords, Permissions, and Malware
After cleaning, you need to secure the site before handing it back. Start by changing the admin password and making sure the admin username is not “admin”. Force all users to use strong passwords. Update the WordPress security keys (in wp-config.php) if you suspect they’ve been compromised. Check file permissions: directories should be 755, files should be 644. You can do this via FTP or a file manager. Scan the site for malware using a plugin like Wordfence, Sucuri, or Jetpack. If you find malware, you may need to clean it manually or hire a professional. Also, check that the site’s SSL certificate is working properly and that the site URL is set to HTTPS in Settings > General.
Test Everything and Document Your Work
Before you hand the site back, you need to test that everything works. Go through the main pages, forms, and any e-commerce or membership features. Check for broken links using a tool like Broken Link Checker. Test the site on mobile devices and different browsers. Make a list of what you changed and why. This documentation is crucial for the next person who inherits the site. It should include the backup location, the list of plugins and themes, any custom code, and the login credentials for the new owner (or instructions on how to reset them).
Handing It Over: The Final Checklist
When you’re ready to hand the site back, make sure the new owner has everything they need. Provide them with the following:
- Admin login credentials (or a way to reset them).
- FTP/SFTP and database access details.
- The backup files you created.
- A list of all plugins and themes, with a note on which ones are essential.
- Any custom code snippets or child theme files.
- Instructions on how to update the site in the future.
Explain to the owner that regular maintenance is necessary: updates, backups, and security scans. If you’re handing it to a non-technical person, offer to set up automatic updates for minor core releases and security patches. Also, make sure the site is running on a secure hosting provider and that the domain name and SSL certificate are up to date.
Frequently Asked Questions
How do I know if an inherited WordPress site is hacked?
Signs of a hack include unexpected redirects, pop-up ads, new admin users you didn’t create, or a blacklist warning from Google. You can also scan the site with a security plugin like Wordfence or Sucuri. If you find anything suspicious, change all passwords immediately and restore from a clean backup if you have one.
Should I update WordPress core, plugins, and themes all at once?
No, update them one at a time and test after each update. This way, if something breaks, you know exactly which update caused the problem. Use a staging site if possible to test updates before applying them to the live site.
What should I do with a custom theme that hasn’t been updated in years?
If the custom theme is essential to the site, you need to check if it’s compatible with the current WordPress version. If it’s not, you may need to hire a developer to update it. If it’s a simple theme, you might be able to replace it with a well-coded free or premium theme, but be careful about losing custom functionality.
Can I delete plugins that are inactive?
Yes, you can and should delete inactive plugins. They still contain code that could be vulnerable, even if they are not active. However, before deleting, make sure the plugin is not needed for a future feature or for data that is stored in the database.
How often should I back up an inherited WordPress site?
At a minimum, back up the site before any major change, like an update or a cleanup. For ongoing maintenance, set up automatic daily backups and store them off-site. Many hosting providers offer automatic backups, but you should also have your own.
What if I don’t have access to the hosting account?
If you don’t have hosting access, you can still work on the site through the WordPress admin dashboard, but you won’t be able to manage files or the database directly. You’ll need to contact the hosting provider or the previous owner to get those credentials. If that’s impossible, you may need to migrate the site to a new host.