Frequently Asked Questions
Quick answers to common questions about Tofido Code Manager.
Yes. Security is our top priority. Tofido Code Manager implements multiple layers of protection: admin-only access with capability checks, nonce protection on all actions, AJAX security validation, Safe Mode for PHP testing, automatic dangerous function scanning, syntax validation before saving, and automatic error recovery that disables problematic snippets before they can crash your site. PHP snippets execute in memory only - no cache files are written to disk.
PHP snippets are safe when used responsibly. Always test in Safe Mode before publishing. Safe Mode creates an isolated environment where fatal errors are caught and the snippet is automatically disabled. The dangerous function scanner warns about risky functions like eval(), exec(), and shell_exec(). Additionally, if a published PHP snippet causes a fatal error on the live site, the plugin automatically disables it and sends an admin notification. Your site stays online.
Version 1.0.0 is optimized for single-site WordPress. Basic multisite usage may work with individual site activation, where each site manages its own snippets independently. Full network activation support with network-wide snippet management and site-specific overrides is planned for a future release. If you need multisite support, please contact us to help prioritize this feature.
Tofido Code Manager is designed for zero bloat. CSS and JavaScript snippets can be output as cached external files with automatic minification and combination. Conditional loading ensures assets only load where needed. Database queries are optimized with proper indexing. In benchmarks, a site with 50 active snippets adds less than 1ms to page load time when using file mode with caching enabled.
Yes. Tofido Code Manager includes dedicated WooCommerce placement locations including before/after add to cart, before/after product summary, checkout hooks, thank you page, and account page. You can also use custom hooks to attach to any WooCommerce action or filter. Display conditions can target WooCommerce pages specifically.
Yes. Any snippet can be configured to output via a unique shortcode. When you select the Shortcode placement location, the plugin generates a shortcode like [tofido_snippet id="123"]. You can use this in posts, pages, widgets, or template files. Shortcodes are perfect for reusable content blocks and conditional element insertion.
Export snippets from the Code Manager dashboard by selecting the snippets you want and clicking Export. This generates a JSON file containing all snippet data, settings, and conditions. To import, navigate to Code Manager → Import, upload your JSON file, and review the imported snippets. All imported snippets are disabled by default for safety. Review, test, and enable them individually.
When you deactivate the plugin, all snippets stop executing immediately but remain stored in the database. When you uninstall, you are given the option to preserve or delete snippet data. If you choose to preserve, reactivating the plugin restores all your snippets. If you choose to delete, all snippet data and generated cache files are removed. We recommend exporting a backup before uninstalling.
Yes. Display conditions include device targeting with options for Desktop, Tablet, and Mobile. You can also set responsive breakpoints for more granular control. This is useful for serving mobile-optimized CSS, loading touch-specific JavaScript, or hiding elements on smaller screens. Device detection uses server-side user agent parsing for reliable results.
Yes. Tofido Code Manager includes a curated snippet library with ready-to-use solutions for common tasks. Categories include SEO enhancements, WooCommerce customizations, performance optimizations, security headers, and utility functions. Each library snippet includes a description, recommended placement, and pre-configured display conditions. Install with one click and customize to your needs.
Yes. Every time you save a snippet, a revision is created. The revision history panel shows all previous versions with timestamps. You can compare any revision to the current version, see a diff view of changes, and restore with a single click. Revisions are stored efficiently and do not impact performance. This is invaluable for debugging and rolling back unintended changes.
Tofido Code Manager requires WordPress 6.2 or higher and PHP 8.1 or higher. MySQL 5.7+ (or MariaDB 10.3+) is recommended. The admin interface works in all modern evergreen browsers. For optimal performance, PHP 8.2 or 8.3 is recommended. The plugin is tested on Apache and Nginx web servers.