Home / Guides / WordPress handbook / Chapter 11
WordPress handbook · Chapter 11 · Maintenance
Maintenance, Backups and Incident Response
Most WordPress emergencies are maintenance that did not happen: an update left for months, a backup nobody tested, a certificate nobody watched, an administrator account nobody removed. This chapter turns the rest of the manual into routines, and gives you a calm, ordered plan for the day something goes wrong anyway.
On this page
How to use the maintenance checklists
The checklists below remember ticks in this browser, so you can work through a weekly or monthly round and see your progress. Press Reset at the start of each new cycle. They store only tick marks. Keep credentials in a password manager and site details in your own documentation, never in this page.
Adjust frequencies to the site: a busy store needs the weekly tasks more often; a brochure site can stretch them. What matters is that each task has an owner and actually happens.
Daily and weekly maintenance
Daily (mostly automated: check the alerts)
- Uptime monitor shows no unresolved downtime.
- Backup job reported success (files and database), and the copy reached off-site storage.
- No new security alerts (new administrator, file changes, malware detections, login spikes).
- Stores: orders flowing, payment webhooks succeeding, no spike in failed orders.
- Forms: submissions arriving (no unexplained silence).
Weekly
- Review and apply plugin, theme and core updates (staging first for major or business-critical ones).
- Check vulnerability alerts against installed versions; act on any that affect the site.
- Scan the PHP error log for new fatal errors and repeated warnings.
- Check Site Health for new critical issues.
- Review Action Scheduler for failed or past-due actions.
- Empty comment spam; review the form spam folder for false positives.
- Spot-check key pages as a logged-out visitor on mobile and desktop.
- Stores: place a test order (test mode or a low-value real product refunded).
Monthly, quarterly and annual maintenance
Monthly
- Review installed plugins and themes: remove unused, replace abandoned (Chapter 02 signals).
- Review user accounts: remove leavers, downgrade unnecessary administrators, check for unknown accounts.
- Review application passwords and REST/WooCommerce API keys; revoke unused ones.
- Check disk usage, database size and growth (largest tables, autoloaded options).
- Check certificate expiry dates and domain expiry dates.
- Check email authentication (SPF, DKIM, DMARC reports) and deliverability of transactional email.
- Review performance (Core Web Vitals, uncached response time) for regressions.
- Verify file integrity:
wp core verify-checksumsandwp plugin verify-checksums --all. - Check that the PHP version is still in security support and the host has no pending end-of-life notices.
Quarterly
- Test-restore a backup to staging and confirm the site works with recent content and orders.
- Rotate any shared or service credentials that policy requires; confirm MFA on all privileged accounts (WordPress, hosting, registrar, DNS, CDN, email).
- Review WAF and rate-limit rules: what they block, false positives, unused exceptions.
- Review security headers and HTTPS configuration with an external scanner.
- Review data retention: delete expired form uploads, old logs and stale staging copies.
- Refresh staging from production (with email and payments disabled).
- Review cron/scheduled tasks for orphaned events from removed plugins.
Annually
- Review hosting plan capacity against traffic growth and PHP worker usage.
- Review the plugin stack as a whole: overlaps, licences due for renewal, simpler alternatives.
- Rehearse the incident-response plan (who does what, contact details, access).
- Review privacy notice against current plugins, integrations and data flows.
- Confirm domain auto-renewal, registrar lock and contact details are current.
- Update this site's documentation: architecture, providers, owners, recovery steps.
Backup strategy
A backup strategy is defined by two numbers and one rule:
- RPO (recovery point objective): how much data you can afford to lose. A brochure site may accept a day; a store taking orders every few minutes may need hourly database backups or continuous replication.
- RTO (recovery time objective): how long you can afford to be down. This decides whether a plugin restore that takes three hours is acceptable, or whether you need host snapshots that restore in minutes.
- The 3-2-1 rule: at least three copies of the data, on two different types of storage, with one copy off-site, and ideally one that the site itself cannot modify or delete (immutable or versioned storage). Ransomware and attackers delete backups they can reach.
What to back up
| Item | Why | Notes |
|---|---|---|
| Database | All content, users, orders, settings | Most frequently changing; most important |
wp-content/uploads | Media and uploaded documents | Large; incremental backups help |
wp-content/themes, plugins, mu-plugins | Custom code and premium plugins you cannot re-download quickly | WordPress.org plugins can be reinstalled, but versions matter |
wp-config.php, .htaccess, .user.ini | Configuration | Contains secrets: encrypt the backup |
| Server configuration (VPS) | Nginx/Apache/PHP-FPM configs, cron jobs | Often forgotten until a server rebuild |
| DNS zone export, CDN rules | Fast recovery after account loss or migration | Export periodically |
Exclude caches, old backup archives and log files from backups (Chapter 03, backup conflicts). Store backups encrypted where they contain personal data, and apply a retention schedule (for example 7 daily, 4 weekly, 6 monthly) that also satisfies your privacy obligations.
Restore testing
A restore test answers: does the backup contain everything, can we actually restore it, how long does it take, and who knows how? Restore to staging, log in, check recent content and orders, check media and forms, and record the time taken. The quarterly checklist includes it for a reason: failed restores are discovered during disasters far more often than during tests.
Safe update procedure
- Confirm a fresh backup exists and note its time.
- Read changelogs for major updates: security fixes, breaking changes, PHP requirements, database migrations.
- Apply updates on staging; test critical paths (login, forms, checkout, search, key templates, editor).
- Schedule production updates at low-traffic times, with someone available to roll back.
- Update in a sensible order: core minor → plugins (dependencies before add-ons, e.g. WooCommerce before its extensions) → theme. Do major versions individually.
- Clear caches (plugin, server, CDN) after updates that change front-end assets.
- Retest the critical paths as a logged-out visitor, and watch logs and monitoring for a few hours.
- Record what was updated and any issues found.
Security releases for actively exploited vulnerabilities skip the queue: update immediately, or apply a WAF virtual patch until you can.
Monitoring
| Monitor | What it catches | Notes |
|---|---|---|
| External uptime (HTTP check every 1–5 min) | Downtime, 5xx errors | Check a page that exercises PHP and the database, not just a cached home page; also check for expected text |
| Certificate expiry | Renewal failures | Alert at 14 and 7 days before expiry |
| Domain expiry | Lapsed registration | Plus registrar auto-renew and lock |
| Error-rate / log alerts | New fatal errors after updates | Many hosts and APM tools offer this |
| Security alerts | New admins, file changes, malware | Security plugin or host |
| Transactional checks | Broken checkout or forms while the site is "up" | Synthetic checkout tests, order-volume anomaly alerts |
| Search Console | Security issues, manual actions, indexing drops | Verify the domain property and enable email alerts |
| Email deliverability | DMARC failures, blocklisting | DMARC aggregate reports and postmaster tools |
Incident response: when a site is hacked
A compromise of a site that stores personal data (accounts, orders, form entries, uploads) may be a reportable data breach under laws such as the GDPR or South Africa's POPIA, which require notifying the regulator and possibly affected people within set timeframes. Bring in a qualified security professional and get appropriate legal or compliance advice early. Payment card data has its own obligations under PCI DSS via your payment provider. This manual does not replace professional advice.
Signs of compromise
Unknown admin users; changed admin email; default_role set to Administrator; PHP files in uploads; unfamiliar mu-plugins; injected JavaScript or spam links; redirects for mobile or search visitors; spam pages in Google results; outgoing spam or host abuse notices; browser or Search Console security warnings; payment-page skimming reports from customers.
Response steps
- Contain. Put the site into maintenance mode or restrict access (host-level), especially if it serves malware or skims payments. Change hosting panel, SFTP and database passwords from a clean device. Notify the host. They may already be investigating, and may have server-level tools and logs.
- Preserve evidence. Before cleaning, copy the current files, database and logs (access, error, WAF, activity) somewhere safe. Logs may be your only way of identifying how the attacker got in and what data they touched. Hosts rotate logs quickly, so copy them early.
- Assess. Identify the entry point: vulnerable plugin version (check vulnerability databases against your versions and log timestamps), compromised account (login logs), or hosting-level access. Determine what was accessed or changed and the time window.
- Clean or rebuild. The most reliable approach is a rebuild: fresh WordPress core, fresh copies of every plugin and theme from official sources (latest versions), custom code reviewed line by line, uploads scanned and stripped of any executable files, and the database reviewed (admin users, options such as
siteurl,home,active_plugins,default_role, widgets and posts for injected scripts, cron events). Alternatively, restore a backup from before the compromise, then patch the entry point before going live, or you will be reinfected. - Reset all credentials. All WordPress user passwords (force resets), new keys and salts (
wp config shuffle-salts, which logs everyone out), the database password, API keys stored in the site (payment gateways, SMTP, CDN), application passwords, and hosting, SFTP and SSH keys. - Harden. Patch the entry point; remove unused plugins and themes; apply the Chapter 02 priority matrix; enable MFA; add WAF rules; block PHP in uploads.
- Recover reputation. Request review in Google Search Console once clean; check blocklists; notify customers where required or appropriate.
- Monitor closely for weeks: file integrity, new admins, outbound traffic. Reinfection soon after cleaning means a backdoor or the entry point was missed.
- Review. Write up timeline, cause and lessons, and update maintenance routines accordingly.
- Deleting the one infected file a scanner reported and declaring victory; attackers usually leave several backdoors.
- Restoring a backup that already contains the backdoor (compromises often predate detection by weeks).
- Cleaning without patching the vulnerability, so the site is reinfected within hours.
- Changing passwords from a malware-infected computer.
- Wiping logs and files before preserving evidence.
Site documentation register
Every site should have a short document (kept in your own systems, not on this website) that someone unfamiliar with it could use in an emergency:
- Domain registrar, DNS host, web host, CDN, email provider and payment providers. Account owners, not passwords; credentials belong in a password manager.
- Architecture: server type, PHP version, caching layers, object cache, where backups go and how to restore them.
- Critical plugins and why each exists; custom code locations; licence renewal dates.
- Business-critical user journeys to test after any change.
- Contacts and escalation paths: host support, developer, security provider, internal decision-makers.
- Known quirks: exclusions added for conflicts, WAF exceptions and why they exist.
Rather have someone else keep WordPress healthy?
Our managed hosting and care plans cover updates, backups, security monitoring and fixes like the ones in this handbook, so you can get on with running the business.
See Hosting & Care