Machete

描述

Machete is a simple suite of tools that solves common WordPress annoyances using as few resources as possible. Machete doesn’t cover every single use case, but there is a huge amount of sites that would require less plugins if they used Machete.

All Machete tools have two things in common: they solve problems faced by many web developers and they do it using as few server resources as possible.

So far, Machete includes the following tools:

WordPress Optimization

WordPress places a lot of code inside the <head> tag just to keep backward compatibility or to enable optional features. You can disable most of it and save some time from each page request while making your installation safer.

Cookies & GDPR Warning

We know you hate cookie warning bars. Well, this is the least hateable cookie bar you’ll find. It is really light, doesn’t affect your PageSpeed score and plays well with static cache plugins.

Analytics and custom code

You don’t need a zillion plugins to perform easy tasks like inserting a verification meta tag (Google Search Console, Bing, Pinterest), a json-ld snippet or a custom stylesheet (Google Fonts, Print Styles, accessibility tweaks…).

The Google Analytics and Google Tag Manager tracking codes are PageSpeed optimized, GPDR friendly.

Maintenance mode

The maintenance mode that ships with WordPress is just a basic lock-down that is activated whenever you do a major update. With machete Maintenance Mode you can hide your unfinished page from visitors and search engines, give your clients a secure temporary access and lock your site without affecting your SEO.

Post & Page cloner

Adds a “duplicate” link to post, page and most post types lists. Also adds “copy to new draft” function to the post editor.

Social Sharing Buttons

Social sharing done the Machete way. The icons are made as a custom webfont embedded in a minified CSS file that only weighs 5.8KB. The sharing actions use each platform’s native share URL.

WooCommerce Utils

WooCommerce was designed to work for every possible use case, but that often leads to unexpected behavior. These simple fixes can improve the WooCommerce user experience by making it behave as clients expect.

屏幕截图

  • Machete Welcome screen
  • WordPress Optimization. Cleanup time!
  • Cookie bar configuration. Simple and sweet
  • Analytics 4, Universal Analytics and Google tag Manager
  • Coming soon module with magic link to show your work
  • Lightest ever social sharing buttons

安装

  1. Upload the plugin files to the /wp-content/plugins/machete directory, or install the plugin through the WordPress plugins screen directly
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Configure each tool using the corresponding link on the Machete side menu

常见问题

Doesn’t plugin X do that better?

Yes, but Machete does it well enough and is probably much lighter.

Is there any set-it-and-forget-it alternative to Machete?

Machete is meant to be used as a development suite. If you are looking for a simpler solution to cut out WordPress bloat, you should have a look at WordPress WPO Tweaks & Optimizations by Fernando Tellado.

Why does WordFence show a warning when I save my options?

Machete caches some of its options to files located in wp-content\uploads\machete\ to speed up loading. This is completely safe, but it’s not a normal WordPress behaviour and it might make plugins like WordFence raise a warning. Just whitelist the action, save again and you’ll be fine.

Why doesn’t Machete have an option to disable Gutenberg?

Like it or not, the WordPress Block Editor (codenamed Gutenberg) is here to stay. Instead of disabling Gutenberg, you should be focusing on updating you workflow to use it. If you need to disable Gutenberg during the transition, you should use the official Classic Editor plugin.

评价

2023 年 11 月 13 日
Un plugin que cumple con lo que dice hacer. Lo instalamos en todas las webs que montamos, y es una joya, verdaderamente.
2023 年 8 月 10 日
Gives the tools a wordpress site needs to improve its performance and works well with caching plugins. Loved the lite solutions for cookies and social media sharing. Very easy to configure.
2023 年 3 月 25 日
Gracias Nilo, por este super útil plugin.estoy usándolo en todos los sitios. ideal para colocar los códigos de Analytics y Tag Managery para optimizar
2022 年 11 月 19 日
This is a must-use plugin. I activate it almost all my WordPress sites. Try it and you will need it in all your WordPress sites. Very useful tools. Thank you for the plugin
2022 年 10 月 17 日
I love this plugin. It is the Swiss army knife of WordPress plugins I always install it on my websites because it gives you many practical features in a simple and lightweight way. Thank you very much for this excellent contribution. 😉
2022 年 6 月 27 日
Excelente plugin, muy fácil de usar, recomendado para los usuarios/administradores novatos o poco familiarizados con el código.
阅读所有48条评价

贡献者及开发者

“Machete” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Machete」插件已被翻译至 5 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Machete”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

4.0.3

  • Checked for compatibility with WordPress WordPress 6.3
  • Added SVG icon to the maintenance page, just for the looks
  • Changed the Pinterest share URL to prevent redirects
  • Cleanup: Removed the option to disable the Contact Form 7 refill (no longer used)
  • Cleanup: removed te option to disable the ‘.recentcomments a’ output
  • Fix: declared $machete as global to prevent WP-CLI errors (props Armando Lüscher)

4.0.2

  • Checked for compatibility with WordPress 6.1
  • Added option to disable WooCommerce SKUs
  • Added option to disable WooCommerce duplicate SKU check
  • Fix: Corrected WooCommerce Settings bug

4.0.1

Fix: Corrected the bug that prevented the obsolete tracking code warning to be dismissed.

4.0

  • Checked for compatibility with WordPress 6.0
  • Cleanup module: Added option to disable WordPress search functions
  • Cookies module: Complete rework to comply with GDPR. New styles and scripts.
  • Tracking & code: Added Analytics 4 and Google Tag Manager support
  • New WooCommerce module!
  • Import/export module removed
  • Powertools: Removed option to save with keyboard
  • Tracking & code: Removed option to track CF7 forms

View the complete changelog