Linux 软件免费装
Banner图

TSO Swiss Knife – Advanced Maintenance & Developer Toolkit

开发者 deadko
更新时间 2026年12月2日 06:59
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

debug maintenance database cron developer tools

下载

1.0.0 1.0.8 1.2.8 1.3.7 1.3.5 1.0.1 1.1.4 1.1.3 1.3.2 1.0.7 1.1.9 1.1.2 1.3.3 1.3.4 1.0.2 1.0.4 1.3.6 1.2.6 1.1.8 1.0.5 1.0.6 1.0.9 1.1.0 1.2.0 1.1.1 1.1.5 1.1.6 1.1.7 1.2.2 1.2.1 1.2.3 1.2.4 1.2.5 1.2.7 1.2.9 1.3.0 1.3.1 1.3.8

详情介绍:

TSO Swiss Knife gives WordPress developers and site administrators a single, well-organised panel (under TSO Plugins › Swiss Knife) to inspect and control the internal systems that affect performance, stability, and security. Included modules Translations

安装:

  1. Upload the tso-swiss-knife-advanced-maintenance-developer-toolkit folder to /wp-content/plugins/, or use Plugins › Add New › Upload Plugin with the ZIP.
  2. Activate the plugin via Plugins › Installed Plugins.
  3. Navigate to TSO Plugins › Swiss Knife.

屏幕截图:

  • Custom 404 Page — assign any WordPress page as the site 404 response while keeping the original URL and a real HTTP 404 status (no redirect).
  • Reorder & Hide Sidebar — drag to reorder WordPress admin menu items, rename labels, nest items under another section, or hide items for all admins.
  • Slow Query Monitor — inspect slow and live database queries when SAVEQUERIES is enabled, export the log, and open a summary from the admin bar.

常见问题:

Does this plugin work with object-cache plugins like Redis?

Yes. Features that use WordPress cache APIs (for example flushing related caches after cleanup tools) call core functions such as wp_cache_flush() / wp_cache_delete(), which delegate to whatever persistent object-cache drop-in is active (Redis, Memcached, etc.).

Is it safe to delete an option from the Options Editor tab?

The module protects a list of known WordPress core options. For third-party options, verify in your code or database that they are truly unused before deleting.

Does enabling Maintenance Mode block the admin?

No. Logged-in administrators are always bypassed, regardless of IP whitelist settings.

Can I run multiple plugin-testing tools at once?

Use only the Plugin Sandbox in this plugin. Combining it with other per-user plugin override tools may produce unpredictable results.

Does Update Manager change WordPress auto-updates?

No. Automatic updates are managed only by WordPress core (Dashboard → Updates). Update Manager can block update checks on staging sites, hide specific plugin updates, and control update email notifications — it does not write auto_update_* site options or hook auto_update_* filters.

When should I use Staging Mode?

Use it on a cloned / staging / local copy, right after you copy the live site, and before you place test orders or browse as a customer. Enable only the switches you need (badge, noindex, hold email, pause cron, mail log). Turn them all off before you copy that database back to production. Do not leave Staging Mode options enabled on the live site.

Does Staging Mode change Settings → Reading (“Discourage search engines”)?

No. It adds noindex headers, pauses XML sitemaps, and adjusts robots.txt while the option is on. It does not filter or save blog_public, so opening Settings → Reading will not permanently lock “Discourage search engines” after you turn Staging Mode off.

Does Staging Mode send customer emails from a test copy?

Not if you enable Do not send real emails. WordPress still thinks the mail was accepted, but it never leaves the server. A short copy (recipient, subject, excerpt) is stored in the WordPress database for administrators only (not as a public file under uploads). All Staging Mode switches are off until you turn them on.

Does pausing scheduled tasks in Staging Mode delete cron events?

No. Due events stay in Cron Manager but are not executed while that Staging Mode option is on. Turn it off on the live site so reminders and queues run again.

Does URL & HTTPS Doctor change my site address?

No. It only explains mismatches (http vs https, www, folder, and constants locked in wp-config.php). The leftover-http count is also read-only. Use Search & Replace if you decide to rewrite stored URLs, after a backup — always run preview first.

Can I manually run WordPress core cron events?

No. Core hooks (for example wp_version_check or wp_maybe_auto_update) are read-only in Cron Manager: Run, Edit, and Delete are blocked in the UI and in AJAX.

What does Export/Import TSO Configuration include?

Selected plugin settings (Redirects and their on/off switch, Staging Mode switches, Login Protect, Comment Anti-Spam, Slow Query settings, Activity History settings, Health alerts, Security Review constants JSON / admin alerts / Apache server rules, Hidden Profiles runtime flags such as XML-RPC and author scans, and similar). It does not include Debug Mode JSON under uploads, sandbox sessions, the Staging mail log, or the Slow Query log. Import overwrites the sections you choose; always export a backup first. Login Protect never imports an enabled custom login URL (to avoid lockouts). If Staging switches arrive enabled, confirm you are on a test site. Security server rules also rewrite the marked TSO block in .htaccess when import succeeds.

Where does the plugin write files?

Runtime config and other managed files go under wp-content/uploads/tso-swiss-knife-advanced-maintenance-developer-toolkit/. The Staging Mode mail log is stored in the database (not under uploads). The Plugin Sandbox may install a must-use loader under mu-plugins (via the WordPress Filesystem API) so early plugin filtering can run; that loader is removed when no sandbox sessions remain. The plugin does not write wp-content/debug.log or edit wp-config.php.

Does this plugin edit wp-config.php?

No. Debug flags, security constants, and hidden-profile toggles are saved as JSON under wp-content/uploads/tso-swiss-knife-advanced-maintenance-developer-toolkit/config/ and applied at runtime. Constants already defined in wp-config.php always take precedence and cannot be overridden from the plugin.

Does Debug Mode create or manage wp-content/debug.log?

No. Debug Mode does not create, truncate, or rotate wp-content/debug.log. Enabling Developer mode only turns on SAVEQUERIES (stored as JSON in the plugin uploads config folder); WP_DEBUG and WP_DEBUG_LOG must be set in wp-config.php, and WordPress then writes debug.log as usual. The Debug tab can list and preview common log paths when they already exist. Empty and shrink actions apply only to logs the plugin owns under wp-content/uploads/tso-swiss-knife-advanced-maintenance-developer-toolkit/ — never to wp-content/debug.log.

Is debug.log safe to leave on a live site?

Not by default. With WP_DEBUG_LOG set to true, WordPress writes wp-content/debug.log, which is inside the web root under a predictable name. Depending on your server it may be downloadable by URL, and it can contain absolute server paths, SQL queries and, occasionally, credentials or tokens printed by other plugins. This plugin cannot move the log outside the web root: it only saves WP_DEBUG_LOG as true/false, and a log path must be defined in wp-config.php before plugins load. Recommended: use Developer mode only on staging, block direct access to debug.log at the server level (Apache/nginx rule), or set define( 'WP_DEBUG_LOG', '/path/outside/webroot/debug.log' ); in wp-config.php. Delete or empty the file when you finish debugging. The plugin's own protected folder under uploads (.htaccess deny rules) does not cover wp-content/debug.log.

Can Server Files write robots.txt or .htaccess?

Yes, but only when an administrator clicks Save in the Server Files Review module: the request needs a valid nonce and a capability check, and nothing is written on activation, on page load or in the background. .htaccess is checked for syntax before it is saved, the previous version is kept so it can be restored, and the save is undone automatically if the site starts answering with HTTP 500. It can write robots.txt and .htaccess at the site or WordPress root — not under wp-content/uploads/. Always review the generated content before saving on production.

Who should use Search & Replace or the Options Editor?

These tools are intended for experienced administrators and developers. Always run Search & Replace as a dry-run first and keep a database backup. In Options Editor, core options are protected, but deleting or editing third-party options can break plugins or themes. When in doubt, export a snapshot or test on staging.

Does Comment Antispam send data to third parties?

Only when you enable reputation or cloud checks and, where required, provide API keys. See the External services section above for each provider, what data is sent, and links to their terms and privacy policies. With all cloud features off, checks run locally (honeypot, rate limits, keyword rules, and similar).

The plugin sees my CDN or proxy address instead of the visitor's IP. What can I do?

By default the plugin uses the server's REMOTE_ADDR, because headers such as X-Forwarded-For can be forged when the origin is reachable directly. Behind a CDN or reverse proxy you can opt in by adding define( 'TSOSK_TRUSTED_PROXY_HEADER', 'HTTP_CF_CONNECTING_IP' ); (or HTTP_X_FORWARDED_FOR) to wp-config.php, or by returning the header name from the tsosk_trusted_proxy_header filter. Visitor IPs are used only for rate limiting, lockouts, whitelists and short-lived duplicate-hit detection (hashed, never stored in clear for the View Counter); they are not sent to any third party unless you enable a cloud antispam provider listed under External services.

Why do I see two copies of this plugin after installing?

That usually means the ZIP folder name was wrong (for example …-main from a GitHub download instead of tso-swiss-knife-advanced-maintenance-developer-toolkit). Remove the duplicate folder under wp-content/plugins/, keep only the folder whose name matches the plugin slug, and reactivate.

更新日志:

1.3.8 1.3.7 1.3.6