| name | wp-maintenance |
| description | Site health checks, updates, backups, and troubleshooting |
| enabled | true |
Keep the WordPress site healthy and secure.
Health check
wp core version
wp plugin list --status=active --format=table
wp plugin list --status=inactive --format=table
wp plugin list --status=updates --format=table
wp theme list --status=active
wp db size --tables
wp db check
Backup procedure
wp db export /path/to/backups/site-$(date +%Y%m%d).sql
tar -czf /path/to/backups/site-files-$(date +%Y%m%d).tar.gz /path/to/site/
Update workflow
- Create a backup (database + files).
- Check for available updates:
wp core check-update
wp plugin update --all --dry-run
wp theme update --all --dry-run
- Apply updates:
wp core update
wp plugin update --all
wp theme update --all
- Flush cache:
wp cache flush
wp rewrite flush
- Verify site is working — check homepage, admin panel, key pages.
Troubleshooting common issues
| Symptom | Check |
|---|
| White screen | Enable WP_DEBUG, check error log |
| Slow site | Check caching, object cache, CDN, DB queries |
| 404 errors | Flush permalinks: wp rewrite flush |
| Login issues | Reset password via WP-CLI: wp user update <id> --user_pass=newpass |
| Plugin conflict | Deactivate all plugins, reactivate one by one |