Stop loading WooCommerce's password strength meter on the front end, which removes a large script from checkout and My Account.
add_action( 'wp_print_scripts', function (): void {
if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) {
wp_dequeue_script( 'wc-password-strength-meter' );
}
}, 100 );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
WooCommerce shows a password strength meter when customers create an account. It loads WordPress’s zxcvbn library, around 800 KB, and strictly refuses weak passwords, which can frustrate shoppers. This snippet removes it.
The meter is the wc-password-strength-meter script. Removing it just before scripts are printed stops the meter and its dependency from loading on checkout and My Account. WooCommerce’s server-side password checks still run.
woocommerce_min_password_strength filter (0 to 4, default 3).Open checkout in a private window, view the source and search for zxcvbn. It shouldn’t be loaded.