Maintenance routines: weekly and monthly checklists
Run a 15-minute weekly routine and a 60-minute monthly routine on your WordPress site using copy-paste prompts for the AI Agent for WordPress.
An effective WordPress AI maintenance routine breaks into two cadences. A weekly pass catches updates and spam before they pile up. A monthly pass audits plugins, users, performance, media, and the database. With the AI Agent for WordPress in SiteGround AI Studio, each step in this WordPress maintenance checklist has a specific prompt you paste in, review the output, and approve. If you’re new to prompting the agent, see Write effective prompts for the AI Agent for the structure that makes these prompts work.
What this tutorial covers
- A four-step weekly WordPress maintenance routine you can run in 15 minutes using the AI Agent for WordPress.
- A five-step monthly WordPress site health check covering plugin audits, user security review, performance, media, and database cleanup.
- Exact, copy-paste prompts for every step.
- When to apply updates directly versus when to test on a staging site, with a clear decision rule for high-impact changes.
- A real walkthrough of one monthly routine on a live WordPress site, with the actions taken and the results.
What you’ll need
Before you start, confirm the following:
- A SiteGround AI Studio account.
- A WordPress site connected to AI Studio through the AI Agent by SiteGround plugin. The agent inherits the permissions of the user it’s connected through.
- Admin-level access to that WordPress site.
- A current full backup of your site. Running maintenance against a site without a current backup is the single most common cause of preventable downtime, so confirm a backup exists before applying any updates.
- About 15 minutes for the weekly run and 45 to 60 minutes for the monthly run. Plan the monthly run during low-traffic hours.
If you’re missing any of these, set them up first.
Quick overview: weekly versus monthly
The two routines are deliberately different in scope. Weekly tasks are fast, low-risk, and high-frequency: the kind of work that compounds into real damage if you skip it for months. Monthly tasks are slower, more invasive, and benefit from staging because they touch components that can break the front end if something goes wrong.
| Dimension | Weekly routine | Monthly routine |
| Time required | ~15 minutes | ~45–60 minutes |
| Risk level | Low | Medium |
| Staging needed | Optional (only for major core or plugin versions) | Recommended for plugin audits and database optimization |
| Tasks | Update check, low-risk updates, spam cleanup, quick performance check | Plugin audit, user and security review, performance deep check, media cleanup, database optimization |
| Goal | Keep the site current and clean | Catch slow-burn issues before they hurt performance or security |
The weekly WordPress maintenance routine
Run this every week on the same day. Consistency is what keeps the queue short. A site that’s been updated 47 times in 12 months is far less likely to have a bad update than one that batches three months of updates in a single push.
Step 1: Check for available updates
Start with a triage pass. You’re not updating anything yet. You’re getting a sorted list so you can decide what to apply, what to defer, and what needs staging.
Prompt to paste into the agent:
List all available updates on my WordPress site. For each update, provide:
– Type (core, plugin, or theme)
– Name and current version
– Available version
– Update category (security, feature, maintenance)
– Risk level (low, medium, high) based on whether it’s a major version, touches the front end, or is a known-stable plugin
– Recommendation: apply directly, test on staging first, or defer
Sort by risk level, security updates first.
Review the output. Security updates and minor patch versions of trusted plugins go in the “apply directly” bucket. Major version bumps (for example, 4.x to 5.x) on plugins that touch the front end go to staging.
Step 2: Apply low-risk updates
Approve only the updates you’ve categorized as low risk in Step 1. The agent should never auto-apply anything you haven’t explicitly approved. For the full update toolkit — compatibility checks, single vs bulk updates — see Run core, plugin, and theme updates.
Prompt:
Apply the following updates one at a time, confirming each one after completion: [paste the list of approved low-risk updates]. After each update, run a quick smoke test on the homepage and report any console errors or HTTP 500 responses. Stop immediately and roll back if any update fails.
Watch for the smoke-test confirmation after each update. If the agent flags an error, do not continue. Investigate that update before moving on.
Step 3: Clean spam comments and pingbacks
Spam degrades database performance and clutters moderation. A medium-traffic WordPress site can accumulate dozens of spam entries per week, and the wp_comments table grows accordingly.
Prompt:
Show me a count of: spam comments, pending comments, trashed comments, and pingbacks awaiting moderation. Then delete all spam comments older than 7 days and empty the trash. List the legitimate pending comments separately so I can moderate them manually. Do not delete anything in the pending queue.
Always review the pending queue yourself. Spam filters miss real comments, and an AI agent shouldn’t make that judgment call for you.
Step 4: Quick performance check
You’re looking for sudden regressions, not deep optimization. The goal is to spot a plugin update that doubled your Largest Contentful Paint before users complain.
Prompt:
Run a quick performance check on these pages: homepage, top blog post by traffic, and main commercial page. Report Core Web Vitals (LCP, INP, CLS) for desktop and mobile, total page weight in KB, and number of HTTP requests. Compare to last week’s run if available, and flag any metric that regressed by more than 15%.
If a metric regressed sharply, the most common cause is a plugin update from earlier in the routine. Roll it back, then re-run the check.
The monthly WordPress maintenance routine
The monthly routine catches what weekly checks can’t see: plugins you no longer use, dormant admin accounts, image bloat, and database tables that have quietly grown for months. Run it once a month, ideally on the first weekend or during your quietest traffic window.
Step 1: Full plugin and theme audit
Most WordPress sites carry plugins they no longer need, and over time some get replaced or forgotten. Each unused plugin is attack surface.
Prompt:
Audit every installed plugin and theme on my WordPress site. For each, report:
– Last update date from the WordPress.org repository
– Active install count
– Any reported vulnerabilities in the last 12 months
– Whether it appears active (called by templates, hooks, or shortcodes) or dormant
– Recommendation: keep, replace, or remove
Group results into: critical to keep, safe to remove, needs investigation. Flag any plugin not updated in over 12 months as a deactivation candidate.
Removing plugins is a high-impact change. Anything in the “safe to remove” group should still be tested on a staging site before you deactivate and delete it on production.
Step 2: Security and user role review
User accounts accumulate quietly. Former employees, abandoned client logins, and old developer accounts all retain access until someone audits them.
Prompt:
List every WordPress user with their role, last login date, and date created. Flag:
– Users with administrator or editor roles I have not personally approved
– Accounts with no login in the last 90 days
– Accounts created in the last 30 days I should verify
– Any user with a registered email on a domain different from my organization
Then check the security log for failed login attempts in the last 30 days and any user role changes.
Demote or remove dormant accounts. Reduce admin-level users to the minimum your operation requires, ideally two: a primary admin and a backup.For the full security workflow — vulnerability checks, settings audit, spam cleanup, and how the agent complements other security tools — see Handle security settings and checks.
Step 3: Performance deep check
Where the weekly performance check is a smoke test, this one is a diagnosis. You want a longitudinal view of what’s drifted over the past month and why.
Prompt:
Run a full performance audit on my WordPress site:
– Core Web Vitals across desktop and mobile for homepage, top 5 pages by traffic, and one product or commercial page
– Server response time (TTFB) on each
– Image optimization status: count of unoptimized images, oversized images, and missing modern formats (WebP/AVIF)
– Caching status: page cache, object cache, and CDN hit rates
– The 10 slowest database queries from the last 7 days
– Any plugin loading more than 100KB of CSS or JS on every page
Compare each metric to last month’s audit. Flag regressions over 10%.
Use the agent’s report to confirm your caching and image-optimization layers are still doing their job. If a previously-cached page is now serving uncached, that’s a higher-priority finding than a marginal LCP drift. For the full walkthrough on toggling caching layers, image optimization, and minification, see Adjust performance and caching settings.
Step 4: Media library cleanup
The wp_postmeta table and uploads directory grow steadily. Most of it is real, but a meaningful portion is unused: orphaned attachments, oversized originals, and duplicates from drafts that never published.
Prompt:
Scan the WordPress media library and report:
– Total media library size in MB
– Files not attached to any post, page, or custom post type
– Duplicate files (same content, different filenames)
– Original-size images over 1MB that have smaller versions in use
– Image files that have not been viewed in the last 6 months based on log data
Generate a cleanup report I can review. Do not delete anything yet.
Review the report manually before deleting anything. False positives happen. A file may be referenced from a custom field or a builder that the agent can’t see. When in doubt, move suspect files to a “review” folder rather than deleting outright.
For the full media management toolkit — bulk alt text, caption updates, upload workflows — see Manage your media library.
Step 5: Database optimization
WordPress databases bloat through revisions, expired transients, autoloaded options, and orphaned post meta.
Prompt:
Analyze my WordPress database and report:
– Total database size and breakdown by table
– Autoload size in wp_options (flag if over 1MB)
– Post revisions count by post (older than 30 days)
– Expired transients in wp_options
– Orphaned post meta entries
– Tables that would benefit from OPTIMIZE TABLE
– Recommended cleanup actions, in order of impact, with the estimated space reclaimed
Generate the report only. Do not run any cleanup operations until I approve them on a staging copy first.
This is the single most important “staging first” step in the monthly routine. Database optimization on a live site can lock tables and cause downtime, especially on larger sites.
When to use a staging site for high-impact updates
Staging exists so you can break things safely. The decision rule is simple: if a change touches the front end, the database, or a critical plugin, test on staging first. Specifically, use a staging site for:
- Major version updates of any plugin (for example, 4.x to 5.x), especially page builders, ecommerce plugins, and SEO plugins.
- WordPress core major version updates (for example, 6.4 to 6.5).
- Theme updates, particularly when the theme has been customized.
- Database optimization, regardless of size.
- Plugin removals, even if the plugin appears dormant.
- Any update flagged “high risk” in the Step 1 weekly triage.
The workflow is: clone production to staging, run the update on staging, verify the front end, run the update on production, then monitor for 24 hours.
Prompt for staging-based updates:
Apply the following updates on my staging site only: [list]. After each update, run a smoke test on staging covering: homepage rendering, primary navigation, contact form submission, checkout or sign-up flow, and any custom functionality I’ve flagged as critical. Report all errors, console warnings, and visual regressions. Do not promote staging to production. I will do that manually after review.
When this routine doesn’t apply
This checklist is built for self-managed WordPress sites with admin access and the ability to take backups and create staging copies. It is not the right fit if:
- Your site uses heavy custom code or a custom theme without version control. The agent’s recommendations may conflict with your developer’s deployment process.
- You run WordPress Multisite with 50+ subsites. The monthly audit needs to be scoped per network, not run flat across all sites.
- You manage a regulated site (healthcare, finance, government) where every update must follow a documented change management process. Use the prompts as input to that process, not as a substitute for it.
- You don’t have a current backup or a staging environment. Running maintenance without a rollback path is how preventable incidents become real ones.
Common mistakes and how to avoid them
Skipping the weekly routine and batching everything monthly
The whole point of the weekly cadence is risk reduction through smaller change sets. Batching three months of updates into one push means a much higher chance of an update breaking something, and a much harder time identifying which one did it. Run the weekly routine even when nothing seems urgent.
Letting the agent apply updates without your approval
The AI Agent for WordPress executes what you approve. Treat every prompt that ends in an action (“apply”, “delete”, “optimize”) as a checkpoint, not an automation. Review the agent’s plan, then approve. Auto-applying everything is how a routine quietly turns into a recovery operation.
Running database optimization directly on production
Even on small sites, OPTIMIZE TABLE on a busy database can lock writes for several seconds. On a checkout flow or a content publishing window, that’s enough to lose orders or corrupt drafts. Always run database cleanup on a staging copy first, verify the result, then schedule the production run during a low-traffic window.
Treating the media cleanup as a delete-everything task
The agent flags candidates for removal. It does not know which images are referenced from custom fields, page builders, or external integrations. Always review the report before deleting. When uncertain, move files to a holding directory rather than removing them.
Next steps
Save these WordPress maintenance prompts somewhere you’ll actually reuse them: a pinned note, a Prompt Library entry inside the AI Studio, or a shared doc if a team manages the site. Block 15 minutes on the same day each week for the weekly routine, and 60 minutes on the first weekend of each month for the monthly run. Consistency matters more than completeness. A weekly routine you actually do beats a perfect monthly plan you skip after two months.
If you haven’t connected your WordPress site to SiteGround AI Studio yet, install the AI Agent by SiteGround plugin from your WordPress admin and link it to your AI Studio account. From there, this entire WordPress AI maintenance routine runs through a single chat interface, with you in the approval loop on every action.
Frequently asked questions
How long does WordPress maintenance take with an AI agent?
The weekly WordPress maintenance routine takes about 15 minutes when run consistently. The monthly site health check takes 45 to 60 minutes including manual review of the agent’s reports. The AI agent doesn’t reduce the total time linearly. It reduces the cognitive overhead of remembering what to check and how, which is what makes the routine sustainable week over week.
Can I fully automate WordPress maintenance with AI?
You can automate the inspection and reporting steps fully, but the action steps (applying updates, deleting users, removing plugins, optimizing the database) should stay under human approval. Full automation creates a single point of failure: if a routine misclassifies a critical update as low-risk and applies it on production at 3 a.m., there’s no one watching the smoke test. The right balance is AI-assisted recurring WordPress tasks with human approval gates on anything destructive or hard to reverse.
Why not run all the monthly tasks weekly instead?
Some of the monthly tasks are too invasive for weekly runs. A full plugin audit, database optimization, and media cleanup each take time, require staging, and benefit from a longer review window. Running them weekly increases the chance of fatigue, skipped reviews, and accidental damage. Monthly cadence keeps the routine sustainable while still catching slow-burn issues before they become urgent.
Do I need a staging site to update plugins safely?
For minor patch versions of stable, well-maintained plugins, you can apply updates directly with a recent backup as your safety net. For major version updates, page builders, ecommerce plugins, and any plugin you’ve heavily customized, use a staging copy. The WordPress database cleanup staging AI workflow (testing destructive changes on staging before promotion) is the safest pattern for any change that touches the database or a critical plugin.
How often should I review the prompts and update them?
Once a quarter. Plugin ecosystems change, new vulnerabilities surface, and your own site evolves. Add specific checks for plugins you’ve come to depend on (your ecommerce plugin, your forms plugin, your SEO plugin), and remove checks that no longer apply. Treat the prompts as a living checklist, not a fixed script.