Title: Dragon Safe Updates
Author: Dragon Core
Published: <strong>November 26, 2026</strong>
Last modified: November 26, 2026

---

Search plugins

![](https://ps.w.org/dragon-safe-updates/assets/icon-256x256.gif?rev=3828406)

# Dragon Safe Updates

 By [Dragon Core](https://profiles.wordpress.org/dragoncoreltd/)

[Download](https://downloads.wordpress.org/plugin/dragon-safe-updates.1.0.3.zip)

 * [Details](https://wordpress.org/plugins/dragon-safe-updates/#description)
 * [Reviews](https://wordpress.org/plugins/dragon-safe-updates/#reviews)
 *  [Installation](https://wordpress.org/plugins/dragon-safe-updates/#installation)
 * [Development](https://wordpress.org/plugins/dragon-safe-updates/#developers)

 [Support](https://wordpress.org/support/plugin/dragon-safe-updates/)

## Description

Every plugin and theme update on your site is the same small gamble: it might be
fine, or it might fatal your homepage at 2am. Dragon Safe Updates takes a snapshot
before an update, tests the site after it, and rolls the update back on its own,
automatically, when the test shows real breakage – so a bad update is caught and
reversed instead of being discovered by your visitors.

#### How a safe update works

 1. **Snapshot.** Just before the new files are installed, Dragon Safe Updates zips
    up the plugin or theme’s current files, dumps the database tables that are provably
    its own (see “What an automatic rollback restores” below; with size caps), and 
    copies every non-transient option. Every part of a snapshot is encrypted before
    it is stored, so a copy fetched from the web server is unreadable. Snapshots are
    never raw files sitting in an uploads folder – a raw PHP file under uploads would
    be executable on some servers.
 2. **Install.** WordPress installs the update exactly as it normally would. Dragon
    Safe Updates does not change how the update itself happens.
 3. **Test.** Once the update finishes, Dragon Safe Updates requests your own configured
    pages (home, admin, login, checkout, custom URLs and more) from your own server
    and checks that WordPress answered without a fatal error – using WordPress’s own
    built-in error-scraping mechanism, the one core uses to check for a fatal error
    when you save a file in the plugin or theme file editor, and when it activates 
    a plugin in its sandbox. This is what “tested” means: **the configured pages answered
    and WordPress reported no fatal error.** It is not a guarantee the update is safe,
    and it is not a malware scan.
 4. **Verdict and, if needed, rollback.** A redirect is never treated as a failure –
    a 3xx response proves PHP finished running without fataling, so it is reported 
    as a flag, never rolled back. Automatic rollback happens only on real breakage:
    a PHP fatal error, a 5xx server error WordPress itself reported, and – confirmed
    with one retry, and only against a trusted baseline that was healthy – a 5xx from
    the web server when PHP did not answer, no response at all, or a page that now 
    returns a 4xx. Safe Updates takes that baseline once a day, so there is one to 
    compare with. Everything else that looks different – a slower page, a changed status
    code, a resized response, an inconclusive probe, changed options or database tables,
    a medium-or-higher change-risk signal – is reported as a flag on the results screen,
    not acted on automatically.

If a rollback happens, the version that broke your site is held. WordPress still
lists the update; Safe Updates refuses to install it, automatically or by hand, 
until you clear the hold from the Settings tab’s Held versions list (“Clear the 
hold”). A manual attempt stops before anything is installed and says why. That covers
an uploaded ZIP that would replace the installed package and a forced reinstall 
too; those two are refused when held, but are not snapshotted or tested, because
WordPress runs them as installs rather than updates.

#### What never triggers a rollback

A redirect. A page that was already failing before the update (the “already broken”
rule exonerates a target whose pre-update baseline showed the exact same problem).
A soft flag on its own – slower response times, a changed status code, a resized
page, database or option changes, or a change-risk signal. These are reported, not
acted on.

#### What an automatic rollback restores

Files always. Database tables and options only when they are provably the package’s
OWN, and the proof is the name alone: it must start with the package’s whole folder
name (`wp-mail-smtp` owns `wp_mail_smtp_*`), or with a short list of well-known 
prefixes for plugins that do not name things after their folder (WooCommerce’s `
wc_` and `woocommerce_`, for example). One word of a folder name proves nothing –
a plugin called `display-posts` does not own your `wp_posts` table. WordPress’s 
own tables and options are never restored by an automatic rollback, by any route;
nor is anything that matches a longer folder name of another installed plugin or
theme (`elementor` does not own `elementor_pro_*` while Elementor Pro is installed).

Everything else that changed during the update is listed on the History row for 
you to put back by hand. WordPress core’s own options are listed for information
only and can never be restored from this screen, automatically or manually. A shared
prefix is the limit of this rule: an extension that stores its data under its parent’s
prefix (many WooCommerce extensions do) looks like the parent’s own, so check the
row before relying on it.

The History row also tells you when something was left alone and why: `not_restored`
lists the options an automatic rollback did not touch; `core_scan_incomplete` means
Safe Updates could not read this site’s WordPress core files in time to check which
options are WordPress’s own, so it restored files and tables and no options at all.

#### The verdicts

    ```
    passed, `passed_with_flags`, `rolled_back`, `rollback_failed`, `untested`, `held`, and two that mean nothing was protected or put right: `failed` - the update broke the site and was NOT rolled back, because automatic rollback is off or there was nothing to roll back from (you get a notice with a one-click rollback when a snapshot exists, an email if the "Email about a broken update" setting is on, and a non-zero WP-CLI exit; the version is not held, since nothing was rolled back) - and `unprotected` - the package cannot be snapshotted or rolled back at all, which today means a single-file plugin (one `.php` file sitting directly in `wp-content/plugins/` with no folder of its own).
    ```

#### Change-risk report

Every update is also compared file-by-file against what it replaced, and flagged
for patterns worth a human look: new remote hosts contacted, `eval()`/obfuscated
code, shell execution, new admin-user creation, unexpected PHP files outside normal
locations, and more. **This is a set of heuristic signals, not a malware verdict**–
it tells you what changed and why it might be worth a look, nothing more.

#### Local only, no account

Dragon Safe Updates runs entirely on your own server. There is no account, no dashboard
to sign into, and no data sent anywhere. The only outbound requests it ever makes
are: loopback probes to your own site (to test it after an update), WordPress.org
downloads when you ask to roll back to a specific released version, and fetching
the update package WordPress already offered you when you click “Preview changes”
before an update.

#### WP-CLI and Abilities

Everything on the Safe Updates screen is also available from the command line: `
wp dragon-safe-updates update|rollback|probe|history|snapshots|risk|preflight|hold`,
each with `--format=json` for scripting. Two read-only [Abilities API](https://make.wordpress.org/core/)
abilities (`dragon-safe-updates/list-updates` and `dragon-safe-updates/history`)
report pending updates and past results. No ability can update, roll back, install
or change anything; those actions stay in wp-admin and WP-CLI.

#### Works with other Dragon plugins

If [Dragon Activity Log](https://dragoncore.ltd/plugins/dragon-activity-log) is 
active, every passed, flagged, rolled-back, failed and held update is recorded in
its tamper-evident audit log. If [Dragon Speed Doctor](https://dragoncore.ltd/plugins/dragon-speed-doctor)
is installed, a “slower” flag on the History screen links straight to a per-plugin
performance profile.

#### Free and complete

Everything described above is free and fully functional, with nothing locked or 
greyed out.

### Credits

The WordPress.org listing icon is drawn with glyphs from Lucide (https://lucide.
dev), ISC License. Copyright (c) for portions of Lucide are held by Cole Bemis 2013-
2022 as part of Feather (https://feathericons.com, MIT License). All other copyright(
c) for Lucide are held by Lucide Contributors 2022. The plugin itself does not include
these icons.

### External services

Dragon Safe Updates runs entirely on your own server. It has no account, no dashboard,
and no analytics or telemetry of any kind.

The only outbound requests it makes are:

 * **Loopback probes to your own site**, immediately after an update to check the
   site still responds correctly, and once a day to keep a healthy reading to compare
   the next update with. These requests go to the URLs configured on the Probes 
   tab (your home page, admin, login and any custom pages you add), all on your 
   own site’s own host.
 * **WordPress.org**, only when you use “Roll back to a WordPress.org version” on
   the Snapshots tab: `api.wordpress.org` for the list of released versions when
   you press “Load versions” (the package’s slug is sent, as WordPress itself sends
   it when you view a plugin’s details), and `downloads.wordpress.org` to download
   the specific released version you asked for – the same download WordPress itself
   would perform for a normal update. WordPress.org’s [terms](https://wordpress.org/about/tos/)
   and [privacy policy](https://wordpress.org/about/privacy/) apply.
 * **The update package’s own source**, only when you click “Preview changes” on
   the Updates tab, to download the update you were already about to install so 
   its change-risk report can be shown before you commit to it. This uses the same
   package URL WordPress already retrieved for that update; no request is made to
   any address you did not already ask WordPress to fetch from.

No data about your site, its content or its users is ever sent to Dragon Core or
any other third party.

## Installation

 1. Upload the plugin to the `/wp-content/plugins/` directory, or install it through
    the WordPress Plugins screen.
 2. Activate the plugin through the “Plugins” screen in WordPress.
 3. Go to Dashboard -> Safe Updates to confirm your probe targets and settings, or 
    just update a plugin as normal – Dragon Safe Updates protects every update path
    without any setup.

## FAQ

### What does “tested” actually mean?

That the pages you (or the automatic defaults) configured on the Probes tab answered,
and that WordPress’s own error scrape reported no fatal error. It proves PHP kept
running; it does not prove every feature of the update works correctly, and it is
never described as a guarantee.

### Does it slow my site down?

A little, and only in specific places. The plugin’s PHP classes load on every admin
and front-end request, as any active plugin’s do, and its mu-plugin loader registers
one shutdown callback per request so a fatal error can be recorded; neither does
any work on a healthy page view. A safe update does take longer than a plain one:
a baseline probe of your pages before the install and the same probes after it, 
within the time budget you set on the Probes tab, plus, on servers where OPcache
cannot be flushed, a wait of at most 16 seconds so the test runs the new code rather
than the old.

### What does it store and where?

Snapshots (zipped files, database dumps and an options backup), a history of past
updates and their verdicts, and a rolling window of runtime fatal errors. Everything
lives in your own WordPress database and one folder, `wp-content/uploads/dragon-
safe-updates/` by default. Nothing is uploaded anywhere. Security keys and salts,
recovery keys, session tokens, the plugin’s own probe secret and its snapshot key
are never included in the options backup, and are never overwritten by a restore.

### Are snapshots safe if my server serves the uploads folder?

Yes. Every snapshot file – the files ZIP, its file list, the database dump and the
options backup – is encrypted before it is written (XChaCha20-Poly1305 from the 
PHP sodium extension, authenticated, so an altered or cut-short file is refused,
never partly read). The key is a random key created for your site and kept in your
database, never in the snapshot folder, so a file fetched from the web server is
unreadable on its own. Nginx and some other servers ignore the `.htaccess` the plugin
writes; with encryption that no longer matters for what the files contain. Site 
Health still checks whether your server will serve or list the folder, and tells
you the rule to add if it will.

Readable copies exist only while they are needed: a snapshot is built, and a restore
or the History comparison decrypted, in a new private folder (mode 0700) in your
server’s temporary directory, outside the WordPress folders, which is removed as
soon as that step finishes. If your server has no writable temporary directory outside
the WordPress folders, or no PHP sodium extension, no snapshot is taken: the update
still runs, History records why, and Site Health tells you what to change (usually
setting `WP_TEMP_DIR`, or asking your host to enable sodium).

The key does not depend on your security salts, so changing them does not affect
snapshots. If the key is lost, for example by restoring a database backup from before
the plugin was installed, older snapshots can no longer be read; the Snapshots tab
says so instead of offering a restore.

### Can I keep snapshots outside the web root?

Yes. Add `define( 'DRAGONSAFEUPDATES_STORAGE_DIR', '/absolute/path/outside/the/web/
root' );` to `wp-config.php`, naming a folder that exists and that WordPress can
write to. New snapshots are then kept in a `dragon-safe-updates` folder inside it.
Their temporary working copies are still made in the private temporary folder, never
in the store. Snapshots taken before the change stay where they were until retention
removes them. If the folder is missing or not writable, snapshots stay under uploads
and Site Health says why.

“Delete all data on uninstall” (Settings) removes the snapshot folder, the plugin’s
tables, options and per-user notice records when you delete the plugin. Without 
it, deleting the plugin keeps all of that for a reinstall.

### Why are snapshots ZIP files?

So there is never raw plugin or theme code sitting under `wp-content/uploads/`. 
A stray PHP file in an uploads folder can be executable on a server that ignores`.
htaccess`; an encrypted ZIP is inert. The change-risk preview reads the new package’s
ZIP in memory and writes nothing. A snapshot is unpacked only when it is restored:
decrypted in the private temporary folder, unpacked into a hidden folder beside 
the package, which is then renamed into place. The live folder waits beside itself
under a hidden name while that happens, is put back if the restore fails, and is
removed as soon as the restore succeeds.

### How do I stop it rolling back?

Turn off “Auto-rollback” in Settings. Snapshots, testing and history keep working;
a failed test is then reported only, never acted on. You can also trigger a manual
rollback yourself from the History or Snapshots tab whenever you want one (this 
needs direct filesystem access – see the FTP/SSH question below).

### Why was my update marked “untested”?

Either every configured probe came back inconclusive, or the site could not run 
probes at all in this environment. The most common causes: your probe pages are 
served by a page cache or CDN in front of loopback requests, so WordPress never 
actually runs PHP to answer them; or loopback requests from the server to itself
are blocked by your host. An `untested` verdict never triggers a rollback – Dragon
Safe Updates only rolls back on evidence, never on the absence of it.

### What is the mu-plugin for?

A small file installed into `wp-content/mu-plugins/` on activation (or offered from
Settings if that folder is not writable). It lets Dragon Safe Updates test the legacy
update path correctly (WordPress deactivates a plugin before updating it on that
path; the mu-plugin lets a signed test request see it as active again, for testing
only – it never affects real visitors), and it catches fatal errors that only show
up outside a normal admin page load, such as in a cron job. Everything still works
without it: you lose the legacy-path re-activation test and early-load fatal capture,
and the Settings screen tells you your current protection level either way. The 
file is removed when you deactivate Dragon Safe Updates and written again when you
reactivate it; deleting the plugin removes it too, whatever the “Delete all data
on uninstall” setting says.

### Does core (WordPress itself) get protected too?

No. Core updates are not covered in this version – only plugin and theme updates.

### What about multisite?

Multisite is not supported in version 1.0. The plugin refuses to activate on a multisite
network, and if it finds itself active on one it does nothing except show a message
under its own row on the Plugins screen: no update is snapshotted, tested or rolled
back there.

### What about a plugin that is a single file?

A plugin that is one `.php` file directly in `wp-content/plugins/`, with no folder
of its own, cannot be snapshotted or rolled back, and WordPress takes no backup 
of one either. Its updates are recorded as `unprotected` with the reason `single_file_plugin`,
and the update itself is not affected.

### What if my host doesn’t allow direct file access (FTP/SSH only)?

Automatic rollback during an update still works in every case, because it happens
inside the same request as the update itself, with the same access WordPress just
used to install it. What is not available on a non-`direct` filesystem is a later,
on-demand _manual_ rollback from the Snapshots or History screen after the fact –
restoring a snapshot outside of an update needs direct filesystem access.

### I rolled back to a WordPress.org version by hand, and now the site is broken. What happens?

That manual rollback is itself just another update, so it is snapshotted and tested
like any other. If it breaks the site, that is recorded and shown, but it is not
automatically reversed again – the snapshot taken just before you rolled back is
still available if you want to restore it yourself.

### Does it work with premium plugins and themes that are not on WordPress.org?

Yes. Snapshots, testing, automatic rollback and manual rollback from a snapshot 
all work on any plugin or theme, because they operate on the files, database tables
and options already on your site – it makes no difference where the package came
from. The one thing that is WordPress.org-specific is “Roll back to a WordPress.
org version” on the Snapshots tab, which is only offered for packages WordPress 
itself reports as coming from WordPress.org, since that is where an older release
is downloaded from. For a premium package, restore a retained snapshot instead.

### Why does my update sometimes show “confidence: reduced”?

Usually OPcache. If `opcache.validate_timestamps` is off, or its `revalidate_freq`
is set high, PHP may keep running old cached code for a while after new files are
written, which makes a probe run right after install less trustworthy. Dragon Safe
Updates detects this, waits when it reasonably can, and marks the result “reduced
confidence” with the reason when it can’t wait long enough to be sure.

### A table wasn’t restored on rollback – why?

Every table has a size cap. A table over the cap is listed on the results screen
as “not snapshotted” rather than silently skipped, so you know exactly what a rollback
can and can’t put back.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Dragon Safe Updates” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Dragon Core ](https://profiles.wordpress.org/dragoncoreltd/)

[Translate “Dragon Safe Updates” into your language.](https://translate.wordpress.org/projects/wp-plugins/dragon-safe-updates)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/dragon-safe-updates/),
check out the [SVN repository](https://plugins.svn.wordpress.org/dragon-safe-updates/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/dragon-safe-updates/)
by [RSS](https://plugins.trac.wordpress.org/log/dragon-safe-updates/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.3

 * Every snapshot file is now encrypted before it is stored: the files ZIP, its 
   file list and the database table dump, as well as the options backup. A copy 
   fetched from a web server that ignores `.htaccess` (nginx, for example) cannot
   be read.
 * The key is random, kept in the database and independent of the security salts,
   so changing the salts no longer makes options backups unreadable.
 * Readable copies exist only in a private folder in the server’s temporary directory,
   outside the WordPress folders, for the moment they are needed.
 * No snapshot is taken when it cannot be encrypted (no PHP sodium extension, or
   no private temporary folder); the update still runs and History records why.
 * New: `DRAGONSAFEUPDATES_STORAGE_DIR` in `wp-config.php` keeps snapshots in a 
   folder outside the web root.
 * Site Health reports whether snapshots can be encrypted and where they are kept.
 * The Snapshots tab marks a snapshot whose key this site no longer has, instead
   of offering a restore that cannot work.

#### 1.0.2

 * The change-risk preview and the History comparison now read the package and the
   snapshot in memory. Nothing is unpacked to disk for them any more.
 * A restore unpacks the snapshot beside the package and renames it into place, 
   so the live folder is never half-written; a failed unpack leaves the live folder
   untouched.
 * Every admin action and request now checks its nonce and permission in its own
   handler, and every request value is sanitized where it is read.
 * A fatal error’s file is shown relative to the plugin or theme folder it belongs
   to.
 * Fixed: uninstall deletes data only when the opt-in is clearly on (1, true, yes
   or on), not for a value set to “false” or “no”.

#### 1.0.1

 * A server error from the web server itself (502, 500, 504 with no answer from 
   WordPress) is now treated as breakage and rolled back when the site was healthy
   before; it used to be recorded as “untested”. It is asked once more first.
 * A probe target that was already failing before the update no longer ends the 
   test early, so the pages after it are still tested.
 * Safe Updates now takes a baseline reading once a day, so updates from the Plugins
   screen, the Updates screen and WP-CLI always have something to compare with.
 * A page that is failing with nothing to compare it against is flagged (“failing,
   with no trusted baseline”) and is never recorded as a clean pass.
 * Held versions are refused however they arrive: when another plugin downloads 
   the package first, from an uploaded ZIP over the installed package, from a forced
   reinstall and from “Roll back to a WordPress.org version”.
 * A snapshot that could not keep a file backup, a table or the options now says
   so on the update’s line and in History, with the reason; History also lists each
   table that was left out.
 * During a restore the live folder waits beside itself, so a failed restore can
   always put it back.
 * “Nothing to roll back from” is recorded as “Failed, not rolled back”, as documented,
   and the email says so.
 * The snapshot’s file list is integrity-checked before symbolic links are recreated
   from it, and no link is ever created through another link.
 * Database restore: a view is no longer dumped as a table, a stored value can no
   longer make a table look abandoned, and the restore runs correctly on servers
   with NO_BACKSLASH_ESCAPES.
 * The loopback address override no longer accepts an IPv4-mapped IPv6 address of
   a public host.
 * Licence tokens in the last part of a download address, and passwords containing
   a slash, are removed from messages.
 * The watch window no longer blames an update for an error that was already happening
   before it, and its notice says how long ago the update was.
 * After the plugin itself is updated, the must-use loader is brought up to the 
   new version. It used to be written on activation only.
 * Fixes for the update queue (duplicate packages, cancel surviving overnight, a
   filter returning nothing), history date filters in the site’s timezone, the Plugins
   screen badge for packages the update server names differently, and WP-CLI permission
   checks.

#### 1.0.0

 * Initial release: wraps every core update path (Plugins screen, Updates screen,
   WP-CLI, automatic updates, the legacy single-update path) plus a dedicated Safe
   Updates screen with its own update queue.
 * Snapshots files, owned database tables and options before every update; probe-
   tests the site afterwards; rolls back automatically on real breakage only.
 * Change-risk report, watch window for delayed fatals, held-version tracking, WP-
   CLI, read-only Abilities API and Activity Log integration.

## Meta

 *  Version **1.0.3**
 *  Last updated **35 minutes ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.6 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 8.0 or higher **
 * Tags
 * [backup](https://wordpress.org/plugins/tags/backup/)[rollback](https://wordpress.org/plugins/tags/rollback/)
   [safety](https://wordpress.org/plugins/tags/safety/)[snapshot](https://wordpress.org/plugins/tags/snapshot/)
   [updates](https://wordpress.org/plugins/tags/updates/)
 *  [Advanced View](https://wordpress.org/plugins/dragon-safe-updates/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/dragon-safe-updates/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dragon-safe-updates/reviews/)

## Contributors

 *   [ Dragon Core ](https://profiles.wordpress.org/dragoncoreltd/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/dragon-safe-updates/)