Frequently Asked Questions
Quick answers to common questions about Tofido Code Manager.
Yes. Security is the foundation of the plugin, not an afterthought. We implement 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 ever 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(). 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.
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. We include dedicated WooCommerce placement locations: 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 output via a unique shortcode. When you select the Shortcode placement, the plugin generates a shortcode like [tofido_snippet id="123"]. Use it in posts, pages, widgets, or template files. Shortcodes are perfect for reusable content blocks.
Export snippets from the dashboard by selecting the ones you want and clicking Export. This generates a JSON file containing all snippet data, settings, and conditions. To import, go to Code Manager → Import, upload your JSON file, and review the imported snippets. All imported snippets are disabled by default for safety.
When you deactivate, all snippets stop executing but remain stored in the database. When you uninstall, you can choose to preserve or delete snippet data. Preserving allows reactivation to restore everything. Deleting removes all data and cache files. We recommend exporting a backup before uninstalling.
Yes. Display conditions include device targeting for Desktop, Tablet, and Mobile. You can also set responsive breakpoints for more granular control. This is useful for mobile-optimized CSS, touch-specific JavaScript, or hiding elements on smaller screens.
Yes. We include a curated snippet library with ready-to-use solutions for common tasks: 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.
Yes. Every save creates a revision. 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.
WordPress 6.0 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. Tested on Apache and Nginx.