
WP Tweak is a lightweight and minimalistic WordPress plugin designed to enhance your website with a curated set of tweaks. It focuses on improving performance, bolstering privacy, strengthening security, and adding other useful optimizations—all without unnecessary bloat. Perfect for users who want a simple yet effective solution to fine-tune their WordPress experience.
This plugins handles tweaks in a minimalistic way. Only files that contains tweaks that you activate are loaded!
Tweaks
- Remove version query strings
Removes?ver=1.2.3from all styles and scripts. - Disable feeds
- Disable emojis
- Search single result redirect
- Disallow File Edits
Disables the ability to edit files in the file manager. SetsDISALLOW_FILE_EDITconstant to true. Does only work if the constant is already defined, usually in wp-config.php - Admin bar greeting
Replace “Howdy, {name}” with a custom message. Use{name}for the user’s display name. For exampleHi, {name}!. Leave empty for no greeting. Usedefaultfor the default greeting, preventing the tweak from running. - Enable fonts to uploads
Move (Google) Fonts enabled in the Block Editor from wp-content/fonts to wp-content/uploads - Disable auto trash emptying
- Set trash keep days
Set the number of days to keep posts in the trash. Default is 30 days. - Scroll progress bar
- Scroll progress color
And valid css will work. You can use this color picker!. - Scroll progress bar background color
- Scroll progress height
- Disable self SSL verify
- Disable Comments
- Disable Email Login
- Disable REST API
- Disable Success Update Emails
- Remove Admin Bar WordPress Logo
Requires a hard refresh of the page to take effect. - Remove Asset Attributes
- Disable Non Production Emails
If WP_ENV (Trellis) or wp_get_environment_type is not production, emails sending is mocked. - Remove REST API links
- Remove RSD link
Removes Really Simple Discovery link tag from head. - Remove shortlink
Removes shortlink link tag from head and shortlink HTTP header. - Remove wlwmanifest link
Removes Windows Live Writer manifest link tag from head. - Admin email check interval
Time in seconds to display email verification message on login. Set to 0 to disable. Default is 15552000 (6 months). - Admin footer text
a href links are allowed. Use “default” for default text. - Remove Welcome Panel
Removes the Welcome Panel from the dashboard. - Remove
At a Glancewidget
Removes the At a Glance dashboard widget. - Remove
Activitywidget
Removes the Activity dashboard widget. - Remove
Quick Draftwidget
Removes the Quick Draft dashboard widget. - Remove
WordPress Events and Newswidget
Removes the WordPress Events and News dashboard widget. - Remove
Site Health Statuswidget
Removes the Site Health Status dashboard widget. - 404 Redirect Home
Redirects 404 pages to the homepage. - Set user agent
WP really hates privacy and sends thisWordPress/7.1; https://symbiosistheme.testto every site it makes calls to. You can empty the field, pretend to be ChromeMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36or something else.defaultwill change nothing. - Remove EXIF
Remove EXIF data from uploaded images. - Convert jpeg to avif
Convert uploaded jpeg to avif - Clean upload filenames
Sanitize media filenames to remove non-latin special characters and accents - Avif compression
Default is 82 - Jpeg compression
Default is 82 - Webp compression
Default is 86 - Revisions for Posts
- Revisions for Pages
- Revisions for Custom CSS
- Revisions for Patterns
- Revisions for Templates
- Revisions for Template Parts
- Revisions for Global Styles
- Revisions for Navigation Menus
- Limit ALL revisions
Limit revisions for all post types. This will override the limit for each post type from above! - Disable XML-RPC
- Disable XML-RPC – allow Jetpack IPs
Allow XML-RPC only from Jetpack IPs - Remove WP version
Remove `{ tweaks }lt;meta name={ tweaks }quot;generator{ tweaks }quot; content={ tweaks }quot;WordPress 7.1{ tweaks }quot; /{ tweaks }gt;
from html head- Dequeue jQuery Migrate
Dequeue jQuery Migrate from the jQuery script dependencies on the frontend. This is used to help devs debug from old versions of jQuery. You really do not need this on a production site. - Script Optimizer
Optimize script loading by moving them into the headand addingdefer` attribute. This may break your site. Use at your own risk!
- Dequeue jQuery Migrate
- Enable relative URLs
Enable relative URLs on the frontend. This may break your site. Use at your own risk! - Disable Contact Form 7 CSS
Setswpcf7_load_cssfilter tofalse - Disable Contact Form 7 Autop
Setswpcf7_autop_or_notfilter tofalse - Enable Jetpack offline mode
- Enable maintenance mode
- Enable duplicate post
- Global Header Snippet
Inside{ tweaks }lt;head{ tweaks }gt;viawp_headhook. - Global Body Snippet
Right after{ tweaks }lt;body{ tweaks }gt;opens viawp_body_openhook. - Global Footer Snippet
Before{ tweaks }lt;/body{ tweaks }gt;closes viawp_footerhook. - Content Prepend Snippet
Output prepended to the_content viathe_contentfilter. - Content Append Snippet
Output appended to the_content viathe_contentfilter.
Contribute to add quality tweaks to the plugin reviewed by me
Unlike WP Code’s snippet database that is filled with low code quality tweaks where some do not even work at all and spam this plugin only contains high quality tweaks. If something is missing please add it.
It is very easy to contribute to the plugin. Check out the Github Readme.
If you have questions on adding a more complex tweak please feel free to ask.