84% wc-password-strength-settings

Code Review | Password Strength Settings for WooCommerce

WordPress plugin Password Strength Settings for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wc-password-stren...
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2016
  • Latest release: Oct 11, 2023
  • Number of updates: 32
  • Update frequency: every 82.5 days
  • Top authors: DanielSantoro (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

20,000+ active /158,184 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: ▼4.16ms] Passed 4 tests

Server-side resources used by Password Strength Settings for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.20 ▼1.34
Dashboard /wp-admin3.32 ▲0.0247.25 ▼7.13
Posts /wp-admin/edit.php3.37 ▲0.0251.95 ▼0.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.46 ▼6.35
Media Library /wp-admin/upload.php3.24 ▲0.0236.03 ▼1.83

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Password Strength Settings for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.26 ▼0.491.58 ▼0.6741.79 ▼0.42
Dashboard /wp-admin2,198 ▲215.57 ▼0.0888.86 ▼6.0636.61 ▼9.68
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.1135.63 ▼0.5334.34 ▼0.28
Add New Post /wp-admin/post-new.php1,529 ▼623.20 ▲4.97627.39 ▼20.8154.19 ▼12.44
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.01107.06 ▲8.7443.05 ▲1.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wc-password-strength-settings/wc-password-strength-settings.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: users, accounts, woocommerce, security, passwords

wc-password-strength-settings/wc-password-strength-settings.php 85% from 13 tests

"Password Strength Settings for WooCommerce" version 3.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 223 characters long)
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6.0" instead of "6.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected402 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34074286
PO File13535109
JavaScript1347

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin