Test Mode
I want to be :robot: a plugin to switch everything to test/sandbox mode
by Viktor Szépe · github.com/szepeviktor/test-mode · website
★ 1stars
1release downloads
1forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/szepeviktor/test-mode/releases/download/v1.0.2/test-mode-1.0.2.zipDeclares an update source (false), so updates arrive through the plugin's own updater.
From the readme
Test Mode
Core, plugins and theme go into Test Mode.
There are three possible modes for each module.
1. no change ✅
2. test mode 🚧
3. disabled 🚫
The admin bar shows the current WordPress environment and each module's mode with a status emoji.
Available modules
- WP Environment: sets WPENVIRONMENTTYPE to staging in test mode, or local when disabled.
- Disallow robots: sets blogpublic to 0 in both test mode and disabled mode.
- Cron events: stops cron requests in both test mode and disabled mode.
- Action Scheduler: stops queue and asynchronous request processing in both test mode and disabled mode.
- Mail: redirects all outgoing mail to the site admin in test mode. Disabled mode uses FluentSMTP
simulation when available, or blocks mail at the WordPress level otherwise.
- Outbound HTTP requests: allows only same-site and explicitly approved requests in test mode, or disables all HTTP requests entirely.
- MakeCommerce payment gateway: uses the sandbox in test mode, or disables its payment and shipping methods entirely.
Recommended plugins
- Airplane Mode: disables external assets, avatars, or embeds.
- Debug WordPress how-to
Add your own module
Implement
Module
interface.
Read the full README on GitHub →