All plugins

Dragon Safe Updates

Snapshots every plugin and theme update, tests your site straight after it, and rolls the update back automatically if it breaks the site.

Dragon Safe Updates snapshots and tests every plugin and theme update, and rolls it back automatically when the test shows real breakage - so a bad update is caught and reversed instead of being discovered by your visitors. It runs entirely on your own server: no account, no cloud service, no telemetry.

Getting started

  1. Install and activate the plugin as normal.
  2. On activation, Dragon Safe Updates installs a small helper file into wp-content/mu-plugins/ if that folder is writable (see The mu-plugin below). If it is not writable, the Settings tab offers to install it and explains what is lost without it.
  3. Go to Dashboard -> Safe Updates. The Probes tab already has sensible defaults (home page, admin, login, and WooCommerce checkout/cart/shop pages if WooCommerce is active) - review them, and add any custom URL you want tested (must be on your own site).
  4. That's it. Every update path - the Plugins screen, the Updates screen, WP-CLI, automatic updates - is protected automatically from this point on. The dedicated Updates tab is there if you want to review and update several packages in one guided run, but it is optional.

How a safe update works

  1. Snapshot, just before install. Dragon Safe Updates zips the package's current files with ZipArchive, dumps the database tables that are provably its own (see "What is restored, and what is not" below; with a per-table and per-package size cap), and saves every non-transient option to a gzip file. Every one of these is encrypted before it is stored (see "Storage and encryption"). Files are always packaged as a ZIP, never left as raw files under uploads - a raw PHP file there could be executable on a server that ignores .htaccess.

  2. Install, unchanged. WordPress installs the update exactly as it would without this plugin.

  3. Probe, right after install. Dragon Safe Updates requests each configured target from your own server, with Cache-Control: no-cache and a signed marker WordPress's own error scraper recognises, and reads back whether PHP finished cleanly, what HTTP status came back, and whether the expected content (a login form, an admin bar, valid JSON) was present.

  4. Decide. Every result is compared against a pre-update baseline (captured in the same run, or a cached one whose fingerprint - site URL, loopback base, probe targets, active plugins, theme - still matches). A hard failure triggers an automatic rollback, if enabled: a fatal; a 5xx that WordPress itself rendered and that isn't maintenance mode; and, against a trusted baseline that was healthy, a 5xx the web server answered on PHP's behalf (a crashed worker, a gateway timeout), no response at all, or a 4xx on home/admin/login. The last three are asked once more before they are believed. Everything else that looks different is a soft flag, reported but not acted on.

    The baseline is what makes the second group possible. The Plugins screen, the Updates screen and WP-CLI install with WordPress already in maintenance mode, so those updates compare with the last reading on record. Safe Updates takes one a day with its daily maintenance, after each update that is not rolled back, and whenever you press "Run probes now", so there is usually a recent one to compare with. When the site has changed since that reading (another address, other active plugins, another theme or other probe pages), or there is no reading yet, only a fatal or a 5xx WordPress itself rendered can trigger a rollback; the rest of the second group is reported as a flag. A 3xx redirect is never a hard failure - a scrape: ok result proves PHP finished without a fatal, so a routing change is reported as the redirected flag, never rolled back.

  5. Roll back, only on a hard failure. The package believed responsible (by file-path attribution) is restored first; if the site is still broken, every updated package in the run is rolled back, newest first, re-probing after each, until the probes pass or the list runs out. Each rollback step restores files, then the package's snapshotted tables that actually changed, then the changed options that are provably the package's own: the option name must start with the package's slug (or a known prefix for popular plugins whose options are named differently), and it must not be one of WordPress's own options - checked against a built-in list, against the families WordPress names at run time, and against the running WordPress core's own source files. Everything else that changed during the update (other plugins' options, WordPress settings, plus a fixed denylist: cron, active_plugins, update locks, and this plugin's own options) is left exactly as it is, listed on the History row as "changed during the update, not restored", and can be put back by hand from there. If the core files cannot be read within a few seconds, no option is restored automatically and the History row says so. If the final re-probe still fails, the verdict is rollback_failed - no further automatic action, an admin notice, and full detail on the History row.

  6. Record and hold. The outcome is written to History. After any rollback (automatic or manual), that version is held: WordPress still lists the update, but Safe Updates refuses to install it - automatically or by hand - until the hold is cleared from Settings.

Protection levels

Measured on activation, from Settings, and shown on Site Health:

LevelWhenWhat still works
FullLoopback requests reach the site and get scrape markers back; filesystem access is direct; storage is writable.Everything: snapshots, probes, automatic rollback.
Files-onlyLoopback requests don't work, or the scrape markers don't come back (page cache, blocked loopback).Snapshots and manual rollback still work; the watch window still catches delayed fatals. No probe-based automatic rollback, because there is nothing trustworthy to probe with.
Monitoring-onlyDISALLOW_FILE_MODS is set, snapshot storage is not writable, or snapshots cannot be encrypted (no PHP sodium extension, or no private temporary folder outside the WordPress folders).The watch window and history only - files cannot be snapshotted or restored on this site at all.

An unmeasured site (no probe run yet) is treated as full until a real measurement says otherwise, rather than showing a fresh install an unearned warning.

Each tab

  • Updates. Pending plugin and theme updates, current version -> new version, where the package comes from, and a risk badge (computed on demand via "Preview changes", which downloads the actual update package and runs the change-risk scan before you commit to it). Held versions are badged. Select packages and click "Update safely" to run them through the queue with a live per-package progress panel (snapshot -> install -> probes -> verdict).
  • History. Every recorded update, filterable by verdict, type, path and date. Each row expands to show probe results, the change-risk report, the options/tables diff and (for a rollback) every restore step in order. Actions: Roll back (to that row's snapshot), Re-test (probe the site right now), View changes (a server-rendered diff of changed text files under 256 KB, snapshot vs current).
  • Snapshots. Every retained snapshot, grouped by package, with size, date and pin state. Actions: Restore, Pin (exempt from pruning), Delete. A storage usage bar shows how close you are to the total cap. WordPress.org-hosted packages also get "Roll back to a WordPress.org version", which reinstalls a specific released version through the normal upgrader - so it is snapshotted and tested exactly like any other update - and needs a direct filesystem connection. Both restore routes take the same run lock the update queue uses, so a rollback started while a queue is installing is refused rather than interleaved with it.
  • Probes. The auto-detected targets (home, admin, login, WooCommerce pages when active, most recent post/page, REST root) with per-target on/off toggles, up to 10 custom URLs (must share your site's host), timeouts and a run budget, and a "Run probes now" button to capture a fresh baseline on demand.
  • Settings. Auto-rollback on/off (default on), snapshot retention and size caps, email about a broken update (default on, to admin_email plus whoever started the update; covers a rollback, a failed rollback and an update left broken in place), watch window length, the mu-plugin's install/remove control and status, the protection-level panel, the held-versions list with "Clear the hold", the probe secret with a rotate button, and the delete-data-on-uninstall checkbox.

Beyond wp-admin: the Plugins screen gets a live row notice after each update ("Tested 5 pages - OK - Snapshot kept" or the rollback message), and the Dashboard widget lists the last 5 updates with their verdicts, current storage use, and any active watch windows.

Verdicts

VerdictMeaningWhat to do
passedEvery probe passed with no flags.Nothing.
passed_with_flagsNo hard failure, but something changed worth a look: a soft flag, changed options, changed tables, or a medium/high change-risk signal.Check the History row's expanded detail. Nothing was reverted; this is informational.
rolled_backA hard failure was detected and the automatic rollback fixed it (re-probe passed afterwards).Read why it failed in the row detail before updating again; the version is held, so it will not install until you clear the hold.
rollback_failedA hard failure was detected, rollback was attempted, and the re-probe still fails.Investigate now - the site may still be broken. The row shows every restore step taken and the remaining failure. A notice stays on the Safe Updates screen until dismissed; on Plugins, Themes, Updates and the Dashboard it appears once.

A rollback you start by hand (History > Roll back, or wp dragon-safe-updates rollback) is judged on the FILES: once they are back, the rollback worked. If a table or option step did not complete, the row is passed_with_flags with the restore_incomplete flag naming the failed steps, the screen says so as a warning, and WP-CLI still exits 0 - the site is restored and running the old code. If the site still fails its check after the files have gone back, the screen and the CLI say so separately and WP-CLI exits 1, because that is something to act on now. rollback_failed on a manual rollback means only one thing: the package's files could not be put back. | failed | A hard failure was detected and NOTHING was rolled back: automatic rollback is off, or there was no snapshot or temp backup to roll back from. | The site is failing now. A notice offers a one-click rollback when a snapshot exists; an email is sent when "Email about a broken update" is on; WP-CLI exits 1. The version is not held, because nothing was rolled back. | | unprotected | The package cannot be snapshotted or rolled back at all. Reason single_file_plugin: a plugin that is one .php file with no folder of its own. | Nothing. The update itself was not affected; if it breaks the site, the fix is by hand. | | untested | Every probe came back inconclusive, or probing wasn't possible at all this run. | Never triggers a rollback by itself. Check the Troubleshooting section below - usually a page cache in front of loopback requests, or loopback blocked entirely. | | held | The update was blocked before installing anything, because that version is held: after a rollback, or by your own code through the dragonsafeupdates_hold_update filter. | Clear the hold under Settings > Held versions when the version is fixed. |

Flags glossary

Soft flags never trigger a rollback on their own.

FlagMeaning
redirectedThis target now returns a 3xx that differs from its baseline. Proven not a fatal (PHP finished running); reported as a routing change.
status_changedHTTP status differs from the baseline (not a redirect, not already a hard failure).
size_deltaResponse body size differs from baseline by more than 40%.
slowerResponse took more than 3x the baseline time AND more than 1 second longer.
inconclusiveThe probe could not get a definite reading (see untested above).
expect_failedThe target answered, but the expected content (e.g. a login form) was missing, and this wasn't already a hard failure for the target.
skippedThis target was not probed this run.
options_changedOne or more options changed by the update, excluding the restore denylist.
tables_changedOne or more of the package's own tables changed.
risk_medium / risk_highThe change-risk report found signals at this severity or above.
unverified_failureThe target is failing (a 4xx on home/admin/login, a missing login form, a 5xx from the web server, or no answer), and there was no trusted baseline to say whether this update caused it. Never rolled back on its own, never a clean pass.
no_baselineThere was no baseline at all to compare with, in the run or on record. Confidence is reduced.
cached_baselineThe comparison used a cached baseline from an earlier run, not one captured in this run - confidence is reduced. On the bulk and AJAX paths this is normal: WordPress is already in maintenance mode when the baseline would be taken, so no baseline is probed there at all.
cache_mismatch (baseline source)The cached baseline's fingerprint (site URL, loopback base, targets, active plugins, theme) no longer matches the current site, so it is UNTRUSTED: it can still exonerate an "already broken" target but can never license a status-based hard failure or a rollback.
stale_baselineThe cached baseline is older than 24 hours. It is still used, and the row says how old it is.
maintenance_modeWordPress was still in maintenance mode when a background update finished (it stays on for a package that is not active), so nothing was probed and the update is untested.
not_active_during_testThe package was not active while it was tested (a plugin updated while inactive), so a pass says nothing about whether it works.
revalidate_freq_high / validate_timestamps_offOPcache could not be flushed and would not re-read the new files in time (or at all), so the probes may have run old code. Confidence is reduced.
opcache_restart / opcache_restart_pendingOPcache was reset during the update (some plugins do this when they are updated, and PHP does it when its OPcache memory is full). PHP restarts OPcache only when no request is using it, and an update from the Plugins screen is tested from inside its own request, so until that request ends every probe runs without OPcache and needs much more PHP memory. A probe that ran out of memory that way, or returned a bare 500 with no answer from WordPress (a second out-of-memory error in a shutdown callback stops WordPress before it can answer; a bare 502, 503 or 504 still counts), is not counted (opcache_restart on the target) and confidence is reduced (opcache_restart_pending on the run). Any other error, including a real fatal error, still counts, and an update left untested this way stays in the 72-hour watch window. WP-CLI updates are not affected: the restart happens on the first probe.
reprobe_stale_opcacheAfter a rollback the re-probe still failed, but every restored file matched the snapshot byte for byte on a host where OPcache could not be flushed; the rollback is recorded as done, with reduced confidence.
snapshot_failedSafe Updates could not take its own snapshot (a full disk, an unwritable store). WordPress's temporary backup is still used for an automatic rollback; a later manual one is not available.
too_large, low_disk, timeout, unreadable_file, unreadable_dir, no_zip_backend, io, missing_dirThe snapshot was taken, but it kept no file backup, and this is why. An update that otherwise passed is recorded as passed_with_flags, and the row's Notes say so in words.
tables_failed, tables_not_snapshotted, options_failed, options_over_capThe snapshot kept the files but not (all of) the tables or the options. The History row lists each table that was left out and the reason.
restore_incompleteThe rollback put the package's files back and the site came back with it, but a table, option or cache step failed. The verdict stands - the site works - and the row names the steps that did not complete. One cause is worth knowing: if another plugin filters an option's value (option_{name}) so that what WordPress reports already equals what the snapshot holds, WordPress treats the write as "nothing to do" and the row keeps its current value. The step is reported as incomplete rather than quietly passed, and the option can be put back by hand from the History row. Safe Updates does not force the write, because a plugin deliberately refusing one (pre_update_option_{name}) must still win.
hold_failedThe version that broke the site could not be recorded as held, so WordPress may offer it again. Hold it by hand from the Settings tab's Held versions list.
symlinks_not_restoredThe package contained one or more symbolic links that could not be recreated after the files were restored. The files themselves came back.

What is restored, and what is not

An automatic rollback restores files always, and tables and options only when they are provably the package's own. The proof is the name alone:

  • it starts with the package's whole folder name at a boundary (wp-mail-smtp owns wp_mail_smtp_*; an option may also drop a leading wp- when two words remain), or
  • it starts with one of a short, vetted list of aliases for plugins that do not name things after their folder (WooCommerce: wc_, woocommerce_).

One word of a folder name is not proof (display-posts does not own wp_posts), and a folder name under four characters proves nothing. On top of that:

  • WordPress core's tables and options are never restored, by any route: name, alias, a pinned table in Settings, or a filter. For options the running WordPress core's own source is checked as well as a shipped list.
  • The longest installed folder name wins. elementor does not own elementor_pro_* while elementor-pro is installed.
  • A pinned table (Settings) must sit under the site's table prefix and cannot be a core table or one of this plugin's own.

Everything else that changed during the update is listed on the History row as not_restored, and the non-core ones can be ticked and put back by hand. Core options are listed for information only and can never be restored from the History screen. If Safe Updates could not read the WordPress core files in time, the row says core_scan_incomplete: files and tables were restored, no options were, and Site Health reports it. If the options backup could not be used (it failed its integrity check, or it was encrypted with a key this site no longer has), the row says options_restore_failed.

The limit of a name rule is a shared prefix: an extension that stores its data under its parent's prefix looks like the parent's own.

Storage and encryption

Every snapshot file is encrypted at rest: the files ZIP, the file list kept beside it, the table dump and the options backup. The container is XChaCha20-Poly1305 secretstream from the PHP sodium extension, in 1 MB authenticated chunks with a final-chunk marker, so a file that was altered, reordered, cut short or extended is refused, never partly read. The key is 32 random bytes created for the site on its first snapshot and kept in a non-autoloaded option (dragonsafeupdates_snapshot_secret_key), never in the snapshot folder; it does not depend on the security salts, so rotating them changes nothing. Each snapshot records which key it was written with: if the key is lost (a database restored from before the plugin was installed, for example), the Snapshots tab marks the snapshot as unrestorable and a restore is refused before anything is touched.

Snapshots live in wp-content/uploads/dragon-safe-updates/<random>/, or under the folder named by DRAGONSAFEUPDATES_STORAGE_DIR (below). Nothing readable is ever written there: a snapshot is built, and decrypted for a restore or the History comparison, in a new private folder (mode 0700) in the server's temporary directory (get_temp_dir(), then PHP's own), outside the WordPress folders, and that folder is removed as soon as the step finishes; one left by an interrupted request is swept after an hour. If no such folder can be made, or the PHP sodium extension is missing, or the key cannot be read, no snapshot is taken: the update still runs, and History, the protection-level panel and Site Health say why. The ZIP itself needs the PHP zip extension (ZipArchive); without it no file snapshot is taken.

A restore unpacks the decrypted snapshot into a hidden folder beside the package (.dragonsafeupdates-restore-...) and renames it into place, while the live folder waits beside itself in another hidden folder (.dragonsafeupdates-failed-...) and is put back if the swap fails. Both are removed when the restore finishes; a leftover from an interrupted request is swept after an hour (staging) or seven days (previous files). Each stored file also carries a SHA-256 recorded at capture and is never decrypted or restored if it no longer matches. Every level of the store carries an empty index.php and a deny-all .htaccess, and its folder name ends in a random string; with encryption these are defence in depth. Site Health fetches a test file over a loopback request and tells you if your server serves or lists the folder. Snapshots written by the unreleased builds before 1.0.3, which were not encrypted, are deleted on upgrade.

Rollback

  • Automatic, during an update, when a hard failure is detected and Auto-rollback is on (Settings). Uses core's own restore_temp_backup() while the just-replaced files are still in wp-content/upgrade-temp-backup/, falling back to the plugin's own snapshot ZIP once that window has closed.
  • Manual, from a snapshot, on the History or Snapshots tab: restore files, tables, options, or any combination, from a specific retained snapshot.
  • Manual, to a WordPress.org version, on the Snapshots tab (packages hosted on WordPress.org only, and only on a direct-filesystem site): reinstalls a specific released version through the normal upgrader, so it is itself snapshotted and probed like any other update. If that reinstall breaks the site, it is recorded but not automatically reverted again - the snapshot from just before it is still there for you to restore by hand.
  • Held versions: after any rollback, the version that failed is held. WordPress still lists the update; Safe Updates refuses it instead - auto_update_* is forced off, and a manual or bulk update stops at upgrader_pre_download with an error naming the version, whichever plugin fetched the package. The same goes for the other ways a version can arrive over an installed package: an uploaded ZIP that replaces the current one, a forced reinstall (wp plugin install --force, wp plugin update --version=) and "Roll back to a WordPress.org version". Those installs are refused when the version is held; they are not snapshotted or tested, because WordPress runs them as installs, not updates. The plugin's update row on the Plugins screen says so before you click, and the row is badged on the Updates tab of the Safe Updates screen. Use "Clear the hold" in Settings to install that version again.

Change-risk signals

Compares the old and new file trees of a package. Heuristic signals, not a malware verdict.

SignalWhat it looks forSeverity
header_changeAuthor, Author URI, Plugin URI, Update URI or Requires headers changedmedium
new_remote_hostA new http(s)://host literal outside a small allowlist (wordpress.org, w3.org, schema.org, gmpg.org, Google Fonts)medium; high if paired with wp_remote_post/curl_exec/file_get_contents('http...') in the same file
scan_incompleteThe change-risk scan could not read a file it needed, so new remote hosts were not checked formedium - a scan that did not look is not a scan that found nothing
dynamic_codeNew eval(, create_function(, assert() on a string, preg_replace(...'/e'), or base64_decode() combined with eval/gzinflate/str_rot13high
shellNew exec(, shell_exec(, system(, passthru(, proc_open(, popen(high
user_adminNew wp_create_user(, wp_insert_user(, add_role(, set_role(, or 'administrator' near any of thosehigh
fs_writeNew file_put_contents() targeting ABSPATH, .htaccess or wp-configmedium
obfuscationA line over 5000 characters with high hex density, or Shannon entropy over 5.5medium
unexpected_phpA new PHP file under assets/, images/, css/, fonts/, or a dotfilemedium
growthPackage size grew past 300% of its previous sizelow
filesCounts of files added/changed/removedinfo

Runs before an update (Preview changes) and after (the History row), comparing the snapshot against the newly installed files.

Watch window

For 72 hours (configurable) after any passed/passed_with_flags update, fatal errors are still being watched for - some only show up on a plugin's own admin page, in a cron job, or on a REST call the update-time probes never visit. The mu-plugin's shutdown watcher (or, without it, the plugin's own wp_should_handle_php_error hook) records these into a capped ring of 500 rows. If a fatal is correlated to a package updated inside its window, you get an admin notice and a dashboard-widget line naming the file, line and a one-click rollback. A package WordPress itself paused (wp_paused_plugins/wp_paused_themes) that still has a retained snapshot gets the same notice on your next admin page load.

Settings reference

SettingDefaultNotes
Auto-rollbackOnTurn off to report hard failures without acting on them.
Retention per package3Oldest unpinned snapshots pruned first; range 1-20.
Total storage cap1024 MBRange 16-8192 MB; Site Health warns above it.
Package size cap512 MBOver cap: files not retained for that snapshot (flagged, rollback then relies on core's own temp backup only).
Table size cap64 MB per tableOver cap: table listed as "not snapshotted".
Total tables cap256 MB per package
Options cap32 MB
Probe timeout15 secondsPer probe target.
Run budget60 secondsWhole probe run; stops at the first hard failure.
Watch window72 hoursHow long delayed fatals are attributed to a recent update.
Email about a broken updateOnSends to admin_email and the user who started the update. Covers a rollback, a rollback that failed, and an update that broke the site and was left in place.
Probe targets enabledAll auto-detectedHome, admin, login, checkout/cart/shop (WooCommerce), post, page, REST.
Custom probe URLsNoneUp to 10; must share the site's own host.
Table pins/unpinsNonePer-package overrides to Table_Detector's auto-detected table list.
Delete data on uninstallOffTicking this and uninstalling removes all Dragon Safe Updates data.

WP-CLI reference

All commands live under wp dragon-safe-updates. --format=json is supported everywhere it makes sense (not --json - WP-CLI's own shorthand rewrites the flag before a command's declared options are validated, so a command that declares --json itself would be refused). WP-CLI commands that touch update state sign in as the lowest-ID administrator automatically when no --user is given.

wp dragon-safe-updates update <slug>...|--all [--type=plugin|theme] [--format=table|json]
wp dragon-safe-updates rollback <slug> [--type=plugin|theme] [--to=<version>|--snapshot=<id>] [--tables] [--options]
wp dragon-safe-updates probe [--format=table|json]
wp dragon-safe-updates history [--verdict=<verdict>] [--limit=<n>] [--format=table|json|csv]
wp dragon-safe-updates snapshots list|prune|pin|delete
wp dragon-safe-updates risk <slug> [--type=plugin|theme] [--version=<version>]
wp dragon-safe-updates preflight [--format=table|json]
wp dragon-safe-updates hold list|clear <slug>

Examples:

wp dragon-safe-updates update akismet
wp dragon-safe-updates update --all --type=plugin --format=json
wp dragon-safe-updates rollback akismet --snapshot=42 --tables --options
wp dragon-safe-updates rollback akismet --to=5.2
wp dragon-safe-updates history --verdict=rolled_back --limit=5
wp dragon-safe-updates history --format=csv > history.csv
wp dragon-safe-updates risk akismet --version=5.3

Abilities reference

Registered through WordPress's Abilities API (wp_register_ability()), when it is present, under the site category. Both are read-only: no ability updates, rolls back, installs, restores or changes anything. A user with update_plugins sees plugin items, a user with update_themes sees theme items.

  • dragon-safe-updates/list-updates - lists pending plugin/theme updates, including which versions are currently held.
  • dragon-safe-updates/history - reads recorded update rows.

Constants and hooks

DRAGONSAFEUPDATES_LOOPBACK_BASE (optional, wp-config.php): an address the server can reach itself on, for containers and reverse proxies where the site cannot request its own public URL. Only the scheme, host and port are used. Honoured only when the host is localhost, a loopback/private/link-local IP address written in full, or a hostname whose every resolved address is in one of those ranges - anything else is ignored, so probe traffic never leaves your infrastructure.

DRAGONSAFEUPDATES_STORAGE_DIR (optional, wp-config.php): an absolute path to an existing, writable folder outside the web root. New snapshots are kept in a dragon-safe-updates folder inside it instead of under uploads; working copies still go to the private temporary folder. If the folder is missing or not writable, snapshots stay under uploads and Site Health says why. Deleting the plugin with "Delete all data on uninstall" removes only the dragon-safe-updates folder inside it.

Extension hooks, frozen since 1.0.0 (every name dragonsafeupdates_-prefixed):

HookTypeArguments
dragonsafeupdates_probe_targetsfilter$targets, $settings
dragonsafeupdates_probe_resultfilter$result, $target, $run
dragonsafeupdates_verdictfilter$decision, $run, $packages
dragonsafeupdates_risk_signalsfilter$result, $old_dir, $new_source (the new package's directory during an update, or the downloaded ZIP's path for the preview)
dragonsafeupdates_hold_updatefilter$hold, $type, $slug, $new_version, $risk, $run
dragonsafeupdates_version_is_heldfilter$held, $type, $slug, $version, $first_seen
dragonsafeupdates_tables_for_packagefilter$tables, $type, $slug
dragonsafeupdates_option_restore_denylistfilter$denylist, $type, $slug
dragonsafeupdates_queue_configfilter$config, $packages, $user_id
dragonsafeupdates_settings_tabsfilter$tabs
dragonsafeupdates_update_recordedaction$row_id, $row, $run
dragonsafeupdates_rollback_performedaction$row_id, $row, $steps
dragonsafeupdates_rollback_failedaction$row_id, $row, $steps
dragonsafeupdates_watch_fatalaction$fatal, $update_row
dragonsafeupdates_snapshot_createdaction$id, $row
dragonsafeupdates_snapshot_prunedaction$id, $row
dragonsafeupdates_queue_tickaction$job_id, $result, $job

They let your own code adjust probes, verdicts and holds on the same engine.

Limits

  • Core WordPress updates are not covered. Only plugin and theme updates.
  • Multisite is not supported in 1.0. The plugin refuses to activate on a network, and does nothing but show a message under its row on the Plugins screen if it finds itself active on one.
  • Single-file plugins are not protected. A plugin that is one .php file with no folder cannot be snapshotted or rolled back; its updates are recorded as unprotected.
  • On a non-direct filesystem (the site needs FTP/SSH credentials to write files): automatic rollback during an update still works, because it happens inside the same request as the update, using the same access WordPress just used to install it. A later, on-demand manual rollback from the Snapshots or History screen is not available on such a site.
  • A manual "roll back to a WordPress.org version" that itself breaks the site is recorded but not automatically reverted again; the snapshot taken just before it stays available.
  • A page cache or CDN in front of loopback requests can make every probe come back inconclusive - the verdict is then untested, never a rollback.
  • OPcache with validate_timestamps off, or a long revalidate_freq, reduces confidence in a probe run right after install (confidence: reduced), because PHP may keep running old cached code for a while.
  • A database table over its size cap is listed as "not snapshotted", not silently skipped.
  • No data leaves the site. No account, no external service. The only outbound requests are loopback probes to the site's own URLs, WordPress.org for a manual version rollback (the list of released versions when you press "Load versions", and the download of the one you choose), and fetching an update package for "Preview changes" from the URL WordPress already offered for that update.

Troubleshooting

  • Loopback blocked. If your host does not allow the server to request its own site, probes cannot run at all and every update is untested. Check with your host, or, in a container/reverse-proxy setup, define DRAGONSAFEUPDATES_LOOPBACK_BASE (see above).
  • Page cache serving probe requests. A missing scrape result with a 200 status usually means a cache answered instead of PHP. Dragon Safe Updates retries once as a POST request (caches rarely cache POST); if still missing, the result is inconclusive. Exclude probe requests (they carry dragonsafeupdates_probe in the query string and an X-Dragon-Safe-Updates: probe header) from your page cache if this happens often.
  • OPcache confidence reduced. See Limits above. Setting opcache.validate_timestamps=1 with a low revalidate_freq (or leaving PHP's defaults) avoids this.
  • Non-direct filesystem. See Limits above - automatic rollback during an update is unaffected; manual, on-demand rollback needs direct filesystem access, or FTP/SSH credentials entered when prompted.
  • Storage cap reached. Site Health flags this. Increase the cap in Settings, reduce retention per package, or delete/unpin old snapshots on the Snapshots tab.

The mu-plugin

Installed to wp-content/mu-plugins/ on activation when writable (offered from Settings otherwise). It does two things, both scoped to Dragon Safe Updates' own signed requests: lets the legacy update path (which core deactivates a plugin for during install) be probed as if still active, and catches fatal errors during the very earliest part of the request, before regular plugins load, feeding the watch window. It never changes what a real visitor sees. Removing it (Settings, or plugin deactivation) only loses the legacy-path re-activation test and early-load fatal capture - everything else keeps working, and the protection-level panel says so.

Uninstall

Deactivating the plugin removes the mu-plugin loader (reactivating writes it again) and clears its own cron. Updating the plugin brings an installed loader up to the new version; a loader you removed from Settings stays removed. Deleting the plugin always removes the loader, and keeps every stored snapshot, history row and setting unless you tick "Delete data on uninstall" in Settings first - in which case the snapshot folder, the six tables, every option and transient and the per-user notice records all go.