Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

Force Strong Passwords


The user profile editor includes a JavaScript-powered password strength indicator. However, there is nothing currently built into WordPress core to prevent users from entering weak passwords. Users changing their password to something weak is one of the most vulnerable aspects of a WordPress installation.

With Force Strong Passwords activated, strong passwords are enforced for users with publish_posts, upload_files & edit_published_posts capabilities. Should a user with these capabilities (normally an Author, Editor or Administrator) attempt to change their password, the strong password enforcement will be triggered.

To customize the list of capabilities Force Strong Passwords checks for, use the slt_fsp_caps_check filter.

IMPORTANT: As of WordPress 3.7, the password strength meter in core is based on the zxcvbn JavaScript library from Dropbox. Force Strong Passwords simply passes the results of the client-side zxcvbn check along for the server to decide if an error should be thrown. Be aware that a technically savvy user could disable this check in the browser.

Development code & issue tracking is hosted at GitHub. Pull requests are encouraged!


slt_fsp_caps_check (should return an array)

Modifies the array of capabilities so that strong password enforcement will be triggered for any matching users.

Ex: To make sure users who can update WordPress core require strong passwords:

add_filter( 'slt_fsp_caps_check', 'my_caps_check' );
function my_caps_check( $caps ) {
    $caps[] = 'update_core';
    return $caps;

Ex: To trigger strong password enforcement for all users:

if ( function_exists( 'slt_fsp_init' ) ) {
    //plugin is activated
    add_filter( 'slt_fsp_caps_check', '__return_empty_array' );

slt_fsp_error_message (should return a string)

Modifies the default error message.

slt_fsp_weak_roles (should return an array)

Modifies the array of roles that are considered “weak”, and for which strong password enforcement is skipped when creating a new user. In this situation, the user object has yet to be created. This means that there are no capabilities to go by. Because of this, Force Strong Passwords has to use the role that has been set on the Add New User form.

The default array includes: subscriber and contributor.


  1. Upload the force-strong-passwords directory into the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.


Installation Instructions
  1. Upload the force-strong-passwords directory into the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.


3 Settembre 2016
Users often will compromise security. As a webmaster it is my responsibility to keep things running. This plugin works and supports my goals.
Leggi tutte le recensioni di 6

Crediti e riconoscimenti

“Force Strong Passwords” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.


“Force Strong Passwords” è stato tradotto in 2 lingue. Grazie ai traduttori per i loro contributi.

Traduci “Force Strong Passwords” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)


  • More code tidying.
  • Will now return unminified version of JavaScript if SCRIPT_DEBUG is set to ‘true’.


  • Work on tidying up code.
  • Update hint link to use official zxcvbn test site. (thanks EmTeedee!)



  • Add a new FSP_PLUGIN_VERSION constant


  • Updated wp_enqueue_script version argument


  • Fixed issue where password resets weren’t working
  • Tested to WordPress 4.3.1


  • Fixing the i18n fix



  • Clean up documentation
  • Test for WordPress 4.2.2
  • Change donation link to Girl Develop It


  • Enforce strong passwords on password reset form (thanks Steve Bruner!)



  • Enforce on multisite network admin screens (thanks Damien Piquet!)


  • Updated Chinese Simplified Language translation (thanks sparanoid!)


  • zxcvbn password hints.
  • Now allows for non-Latin character set encoding when comparing zxcvbn meter result (thanks jpry!)


  • Added Serbo-Croatian translation (thanks Borisa Djuraskovic!)


  • Fixed so zxcvbn check respects localization (thanks lakrisgubben!)


  • Switched to JS-aided enforcement of new zxcvbn check in WP 3.7+
  • Added Japanese translation (thanks Fumito Mizuno!)


  • Added Chinese Simplified Language support (thanks sparanoid!)


  • Fixed bug that triggered enforcement on profile update even when no password is being set


  • Added slt_fsp_error_message filter to customize error message
  • Deprecated SLT_FSP_CAPS_CHECK constant; added slt_fsp_caps_check filter
  • Added slt_fsp_weak_roles filter


  • Used new validate_password_reset 3.5 hook to implement checking on reset password form (thanks simonwheatley!)
  • PHPDoc for callable functions
  • Improved function naming
  • Added control over capabilities that trigger strong password enforcement via SLT_FSP_CAPS_CHECK constant


  • First version