Sunsetting WP Password Generator
My WP Password Generator plugin was my first foray into WordPress plugin development. It started back in 2010, just over a month after I started at Fahlgren Mortine, when my friend Greg Laycock and I were working on a client’s WordPress site and decided that manually generating passwords was a total pain. I suggested “what if we have a ‘Generate Password’ button on the user edit screen?”, he agreed, and I spent that night writing a quick plugin that makes an Ajax call to a script that generated a password. After we submitted it to the WordPress.org repository, we watched the download counts climb (I remember how thrilled we were once we crossed 100, and it just continued to rise from there).
As time went on, feature requests rolled in through the plugin forums and GitHub, but we intentionally kept the features simple (it’s a password generator, not a whole user management suite, after all). It was eventually rewritten to better adhere to the WordPress coding standards and use the native WordPress
wp_generate_password() function instead of my home-rolled solution (which was actually pretty similar). It was never the flashiest plugin, but it was a perfect learning experience for both WordPress plugin development and managing an open-source project.
After version 2.2 was released, Chris Van Patten, President of Van Patten Media sent me the following email alerting me to the plugin not working in non-standard configurations:
I LOVE your WP-Password Generator! Frankly, I think it (or something
similar) should be part of core.
I’ve found a little bug (not really a bug, but an area for
improvement). In wp-password-generator.php, line 65, you enqueue the
generator script assuming that it will be located in wp-content. For
crazy folks like myself who move wp-content to another location (I
just use plain ol’ “content”) this creates a bad link, and the plugin
It’s a simple fix (for me I just deleted three characters) but it
could be made more compatible if you get the exact plugin directory
with something like $plugin_dir = basename(dirname(__FILE__)); (there
are probably even better options).
Thanks again for the great plugin, and I’ll be donating soon!
From that point, Chris became another person to bounce ideas off of, discuss functionality, and in some cases contribute directly to the development via pull requests. He became an advocate for my work, blogging about the plugin and re-tweeting almost anything I tweeted about its development. Van Patten was also true to his word, sending me a few bucks to thank me for my efforts on the plugin, thus marking the first (and only) time I’ve received cash for my (non-work supported) open-source work.
All good things…
Over a year ago I came across this post on WP Tavern, which pointed to a Trac ticket from WordPress all-star Pippin Williamson proposing the inclusion of a password generator in WordPress core (sometimes I hate when Chris is right). His suggestion was to incorporate a similar plugin, Simple User Password Generator –a 10up-maintained plugin – into WordPress core.
With the native password generator features set to hit primetime in WordPress 4.3, version 2.8 of WP Password Generator is slated to be the last; the plugin will check for core password generator functionality and, if found, will disable its own functionality.
Thank you to the thousands of people who have downloaded WP Password Generator in the last five years, especially the handful who have left reviews, suggested features, reported bugs, and generally been supportive of the plugin. It was a simple plugin, but it’s always been one of my favorites to work on. Through the support of the community, it’s been translated into six languages and has been downloaded over 24,000 times!
What does this mean for users?
Version 2.8 of the plugin checks the WordPress version before loading anything else and, if the core version is 4.3 or higher, the plugin will cease loading the rest of its functionality and instead display a small notice on the plugins page informing site owners that it’s safe to remove (along with a link to this post).
So long, and thanks for all the fish!
One last time, the contributors to WP Password Generator include:
- Greg Laycock
- Chris Van Patten
- Dave Griffin
- Robert Paprocki
- David Mosterd of CodePress
- Peter Berce
- Rig Kruger
- Ogi Djuraskovic of firstsiteguide.com
- André Mácola
So long, WP Password Generator.