SMRK Toolkit
A free modular WordPress toolkit by SMRK studio — enable only the modules you actually need.
Install in
SMRK Toolkit replaces a handful of small plugins with a single one. Each module below is switched on independently in Settings — enable only what you actually need, everything else stays completely dormant.
- Duplicate — clone any post/page/CPT in one click.
- Reorder — manual drag & drop ordering for posts and taxonomy terms.
- Search & Replace — bulk find & replace across the whole database, with a mandatory dry run before anything is written.
- SEO — meta title/description, Open Graph tags and an XML sitemap; automatically stays dormant if Yoast or Rank Math is active.
- Admin Notices — collects and lets you permanently dismiss nagging admin notices from other plugins.
- Redirects — a simple redirect manager (301/302/303/307/308, plus 410 and 451 responses).
- Clean Filenames — sanitizes uploaded file names (accents, spaces, uppercase) before they hit the Media Library.
- Czech Typography — non-breaking spaces after single-letter Czech prepositions/conjunctions.
- Login Page — moves the login form to a custom URL.
- Two-Factor Login (2FA) — a one-time code from Google Authenticator, Microsoft Authenticator, Authy, 1Password or any other TOTP app after the password, with one-time recovery codes and optional enforcement per role.
- Media Folders — organizes the Media Library into folders.
- Monitor 404 — logs 404 hits so you can turn the frequent ones into redirects.
- SVG Upload — allows SVG uploads, sanitized against XSS on the way in.
- Cookie Consent — a GDPR cookie banner built on the open-source vanilla-cookieconsent library.
- Breadcrumbs — a lightweight breadcrumb trail, themeable and available as a template function.
- Backup — one-click database export/import.
- Cleanup — clears out old post revisions, expired drafts/trash and stale transients.
- Cache Lite — full-page HTML cache with automatic invalidation on content changes.
- Import — one-off import from other plugins: SEO fields from Yoast SEO and Rank Math, media folders from FileBird, redirects from Redirection, Rank Math, Yoast SEO Premium, Simple 301 Redirects and Safe Redirect Manager.
Every module page can be hidden from the WordPress admin menu independently (it stays reachable by direct link) and access to it can optionally be delegated to the Editor role — no permanent change to the Editor role itself, reversible at any time. The plugin is entirely free and developed by SMRK studio.
The uncompiled source of the bundled JS/CSS and the build steps are described in the “Source code and third-party libraries” section below.
External services
This plugin’s Cookie Consent module can optionally connect to Google Tag Manager (GTM), a tag management service provided by Google. It is used to load the site owner’s own analytics/marketing tags configured in their Google Tag Manager account.
- When: only if an administrator enters a GTM container ID (GTM-XXXXXXX) in the Cookie Consent module settings. Without a container ID nothing is loaded from Google. By default the GTM script stays blocked until the visitor accepts the “Analytics” cookie category in the plugin’s cookie banner. Only if the administrator explicitly enables the “insert unblocked” option is the script loaded on every page without waiting for consent (the site owner then manages consent inside GTM), and in that mode a
<noscript>iframe fallback for visitors without JavaScript is also output. - What is loaded: the script
https://www.googletagmanager.com/gtm.js?id=<container ID>(and, in the unblocked mode for visitors without JavaScript, the iframehttps://www.googletagmanager.com/ns.html?id=<container ID>). - What data is sent: the request to Google includes the container ID, the visitor’s IP address, browser information (user agent, language) and the URL of the visited page. Any further data collection (cookies, events) depends on the tags the site owner configures in their own GTM container.
This service is provided by Google LLC: Google Tag Manager Use Policy, Google Terms of Service, Google Privacy Policy.
The Cache Lite module’s optional preload only requests pages and the XML sitemap of the site itself (its own home_url()); no data is sent to third parties.
Source code and third-party libraries
The JavaScript/CSS bundles in assets/dist/ are built with Vite. The uncompiled, human-readable source is included in the plugin under resources/js/ and resources/scss/ together with the build configuration (vite.config.js, package.json, package-lock.json). To rebuild the bundles, run npm install && npm run build in the plugin directory.
Bundled third-party libraries:
- qrcode-generator 2.0.4 by Kazuhiko Arase (MIT license), bundled from npm into the Two-Factor Login profile script to draw the pairing QR code locally.
- vanilla-cookieconsent 3.1.0 by Orest Bida (MIT license), bundled into the Cookie Consent frontend script from npm.
- enshrined/svg-sanitize 1.0.0 (GPL-2.0-or-later), in
vendor/, used by the SVG Upload module.
Written by Joobi from the project's own listing. See the source page
1.3.0
- New Two-Factor Login (2FA) module: after the password, users with 2FA enter a 6-digit code from Google Authenticator, Microsoft Authenticator, Authy, 1Password or any other TOTP app (RFC 6238). Works with every login that goes through wp_signon() (wp-login.php, WooCommerce) and with the Login Page module.
- Pairing in the user profile: QR code drawn locally in the browser plus the key for manual entry, confirmed by a code from the app. Users can pair a new key, generate new recovery codes or switch 2FA off.
- Ten one-time recovery codes (stored hashed), shown only once after they are generated.
- Module settings: enforce 2FA for selected roles (users without it can only open their profile until they pair an app) and the allowed clock drift (0, ±30 s or ±60 s).
- Optional grace period for the enforcement: until a chosen date users can skip the 2FA setup after each login, and users who already have 2FA can skip the code at login. After that date 2FA is required.
- Secrets encrypted in the database (libsodium, key from the wp-config.php salts or the SMRK_2FA_KEY constant). A code cannot be used twice; after 3 wrong codes the password must be entered again, after 5 the code entry is locked for 15 minutes.
- Administrators can switch 2FA off for another user and lift the lock in that user’s profile; emergency constant SMRK_2FA_DISABLE. New 2FA column in the Users list. Application passwords (REST API, XML-RPC) are not subject to 2FA.
1.2.0
- New Import module: one-off import from other plugins, read directly from the database. Only sources whose plugin is currently active are offered, and the module cannot be switched on without one. Each source shows whether its data was found and how many items it has, offers a preview (dry run) and an import, and keeps a summary of the last run (imported / skipped / errors, unsupported data). Imports run in batches and can be continued; running them again never duplicates anything. WP-CLI:
wp smrk-import list,wp smrk-import run <id> [--dry-run]. - Import SEO from Yoast SEO and Rank Math: meta title (template variables converted to SMRK variables), meta description, noindex, Open Graph title and description, and the title separator. SEO fields already filled in SMRK are never overwritten.
- Import media folders from FileBird (4.x tables and the older taxonomy). Nested folders become folder names with their path (“Parent / Child”); files already in an SMRK folder are not moved.
- Import redirects from Redirection, Rank Math, Yoast SEO Premium, Simple 301 Redirects and Safe Redirect Manager, including regex, wildcards and case sensitivity. Duplicates and unsupported rules (conditions, query strings, 403/404) are skipped and listed in the summary.
- Redirects: new response codes 303, 307, 308 and 410/451 (no target, the 404 template is returned with that status).
- Importers verified against Rank Math 1.0.282, Yoast SEO 28.9, FileBird 6.5.9, Redirection 5.10.1, Simple 301 Redirects 2.1.2 and Safe Redirect Manager 2.3.0 (case sensitivity of Redirection and Simple 301 rules, Rank Math regex escaping, excerpt and category variables in descriptions).
1.1.1
- Redirects: new per-rule option “Rozlišovat velikost písmen” (case sensitive source match). Default is off, so existing rules behave as before. The table gets a new
case_sensitivecolumn automatically on update.
1.1.0
- Cache Lite: early cache serving via
advanced-cache.php— withWP_CACHEenabled, cached pages are sent before WordPress, the database and plugins load (much lower TTFB on slow hosting). Same cache key, TTL and bypass rules as before; logged-in users, password-protected posts, commenters, excluded URLs, other query parameters and a non-empty WooCommerce cart (if enabled) always go to WordPress.utm_*,fbclid,gclidandmsclkidare ignored when looking up the cache. - Cache Lite:
advanced-cache.phpandWP_CACHEare set up automatically — a marked, conditionalWP_CACHEline is added towp-config.php(in BedrockWP_CACHE=trueto.envwhenconfig/application.phpreads it from env). An existingWP_CACHEdefinition is never overwritten; the plugin removes only its own line when the module is switched off. - Cache Lite: new Configuration tab with
advanced-cache.php,WP_CACHEand cache folder status, an “Incomplete” label until set up, a self-test request and manual installation steps (download/copy of the file) shown only when automatic setup is not possible; finished steps are marked as done. - Cache Lite: an
advanced-cache.phpof another cache plugin is never overwritten and is reported as a conflict. Switching the module off, deactivating or uninstalling the plugin removes only its own advanced-cache.php, its ownWP_CACHEline and exported settings. - Cache Lite: visitors with a post password or comment author cookie are no longer served or stored as the shared cached copy.
- Cache Lite: percent-encoded URLs (e.g. non-ASCII slugs) keep their own cache entry instead of being collapsed.
1.0.6
- Login Page: fixed a lockout — the custom login address returned 404 while WordPress login links already pointed to it. The address now works in all setups (subdirectory install, Bedrock, plain permalinks, upper-case slug, trailing slash). The module stays dormant when WPS Hide Login is active. New emergency switch: constant SMRK_LOGIN_PAGE_DISABLE (see FAQ).
1.0.5
- Security hardening: all HTML output is escaped late (admin notices via wp_kses(), cleanup count badges, reorder thumbnails); cached pages are streamed straight from the cache file.
1.0.4
- Removed the Code Snippets module (arbitrary HTML/CSS/JS insertion is not allowed in the plugin directory). Previously saved snippets are no longer output; the stored data is removed when the plugin is uninstalled.
- Czech Typography: the title/excerpt filters return output passed through
wp_kses_post(), and every processed text node is escaped. - Breadcrumbs: custom HTML for the home item and separator is escaped with
wp_kses()on output, not only on save. - Admin Notices: notice callbacks run inside a buffer that is opened and closed in the same function.
- Reorder: opening the per-term ordering screen no longer writes post meta; missing order values are filled in only when the order is saved (AJAX with nonce and capability check). The submitted term tree is sanitized.
- Security hardening: form and admin-post handlers check the capability first and then the nonce (
check_admin_referer()), as separate conditions. - Admin: the remaining inline
onsubmitconfirmations use the admin script. - Cache Lite: the page cache is purged once after a plugin update, so pages cached by the previous version (old asset URLs, output of the removed Code Snippets module) are no longer served.
1.0.3
- Cookie Consent: the Google Tag Manager snippet is now added with
wp_add_inline_script()instead of a raw<script>tag; the<noscript>GTM fallback is only output in the “insert unblocked” mode, so visitors without JavaScript no longer load GTM without consent. - Cache Lite: the page cache uses the core template enhancement output buffer (WordPress 6.9) instead of its own
ob_start(); the plugin now requires WordPress 6.9 or later. - Admin Notices: the notice output buffer only closes its own buffer level.
- Admin: confirmation dialogs and auto-submitting selects use the admin script instead of inline
onclick/onchangeattributes. - Security hardening: nonce checks are repeated directly in every form/AJAX handler that reads request data, and remaining request input is unslashed and sanitized.
- readme: expanded the External services section (Google Tag Manager) and documented the bundled source code, build steps and third-party libraries.
1.0.2
- Media Folders: deleted attachments no longer count towards a folder (a folder could show a number of files but appear empty when opened), and deleting an attachment now removes it from its folder.
- Media Folders: the folder panel on the Media Library screen now stays in view while scrolling on desktop.
- SEO: new configurable default
<title>format ({{title}} {{sep}} {{site.title}}by default) for pages without a custom meta title; not applied on the homepage. - SEO: the
og:titlefallback now follows the same rules as<title>instead of the bare post title.
1.0.1
- Fixed a fatal error (“Call to undefined function get_current_screen()”) that could occur when enabling the Reorder or Duplicate module, since is_admin() can be true in contexts where WordPress hasn’t loaded the screen API.
- Replaced remaining raw
<style>/<script>output withwp_enqueue_style/wp_add_inline_style(admin menu visibility CSS, Breadcrumbs shortcode CSS, SEO meta box toggle script, Code Snippets custom CSS field). - The Cache module’s output buffer is now explicitly closed on
shutdowninstead of relying on PHP’s implicit end-of-request flush. - Removed the now-unnecessary
load_plugin_textdomain()call (WordPress.org loads translations automatically since 4.6). - The plugin package now bundles the uncompiled JS/CSS source (
resources/) and build config alongside the built assets, and no longer ships the pre-built English.po/.motranslation files. - Documented the optional Google Tag Manager integration in the Cookie Consent module under a new “External services” section.
1.0.0
- First stable release — full set of 18 modules (Duplicate, Reorder, Search & Replace, SEO, Admin Notices, Redirects, Clean Filenames, Code Snippets, Czech Typography, Login Page, Media Folders, Monitor 404, SVG Upload, Cookie Consent, Breadcrumbs, Backup, Cleanup, Cache Lite).
- Per-module menu visibility control — hide a module from the admin menu while keeping it reachable by direct link.
- Per-module delegation of Editor-role access, reversible at any time without touching the Editor role itself.
- Full security audit of every module (prepared statements, output escaping, input sanitization).
0.1.0
- Initial infrastructure (menu, settings, modular architecture).
- Duplicate module.
Follow this listing's changes (Atom feed)