84% minimum-password-strength

Code Review | Minimum Password Strength

WordPress plugin Minimum Password Strength scored84%from 54 tests.

About plugin

  • Plugin page: minimum-password-...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 8, 2013
  • Latest release: Mar 10, 2016
  • Number of updates: 18
  • Update frequency: every 62.7 days
  • Top authors: itsananderson (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

800+ active /17,725 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼24.75ms] Passed 4 tests

Analyzing server-side resources used by Minimum Password Strength
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.00 ▲1.87
Dashboard /wp-admin3.33 ▲0.0346.00 ▼6.09
Posts /wp-admin/edit.php3.38 ▲0.0245.15 ▼26.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.16 ▼52.61
Media Library /wp-admin/upload.php3.25 ▲0.0233.31 ▼14.11
Password Strength /wp-admin/options-general.php?page=minimum-password-strength/minimum-password-strength.php3.2231.82

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Minimum Password Strength: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.121.67 ▼0.0846.21 ▲3.48
Dashboard /wp-admin2,207 ▲225.82 ▼0.07106.12 ▼42.7438.31 ▼61.65
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0340.73 ▼12.2139.26 ▼5.15
Add New Post /wp-admin/post-new.php1,545 ▲2618.13 ▼3.00624.23 ▼98.8057.42 ▼4.20
Media Library /wp-admin/upload.php1,395 ▲104.18 ▲0.0295.96 ▼45.9340.54 ▼14.59
Password Strength /wp-admin/options-general.php?page=minimum-password-strength/minimum-password-strength.php8102.0524.5025.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minimum-password-strength/minimum-password-strength.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/minimum-password-strength/views/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

minimum-password-strength/minimum-password-strength.php Passed 13 tests

The entry point to "Minimum Password Strength" version 1.2.0 is a PHP file that has certain tags in its header comment area
114 characters long description:
Enforce a specific password strength. Uses the same strength calculations as the WordPress password strength meter

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin144 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22513104
Markdown114040

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin