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.3
from 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. Sets
DISALLOW_FILE_EDIT
constant 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 example Hi, {name}!
. Leave empty for no greeting. Use default
for 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
- Set user agent
WP really hates privacy and sends this
WordPress/1.0; https://example.org
to every site it makes calls to. You can empty the field, pretend to be Chrome Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
or something else. default
will 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
- 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
WordPress/6.7.1; https://example.org
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
head
and adding defer
attribute. This may break your site. Use at your own risk!
- Enable relative URLs
Enable relative URLs on the frontend. This may break your site. Use at your own risk!
- Disable Contact Form 7 CSS
Sets
wpcf7_load_css
filter to false
- Disable Contact Form 7 Autop
Sets
wpcf7_autop_or_not
filter to false
- Enable Jetpack offline mode
- Enable maintenance mode
- Enable duplicate post
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.