Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼143.33ms] Passed 4 tests
Server-side resources used by WooCommerce Checkout Password Strength Meter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 31.06 ▲10.18 |
Dashboard /wp-admin | 3.07 ▲0.01 | 47.38 ▲2.38 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 46.34 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 93.30 ▼560.78 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 28.13 ▼14.57 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WooCommerce Checkout Password Strength Meter: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.87 ▲0.33 | 9.02 ▼5.06 | 46.66 ▼2.27 |
Dashboard /wp-admin | 2,967 ▲36 | 5.96 ▼0.25 | 150.69 ▼24.23 | 111.08 ▼8.97 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 64.92 ▲1.24 | 94.12 ▲5.60 |
Add New Post /wp-admin/post-new.php | 1,683 ▲179 | 18.67 ▲0.11 | 395.55 ▲4.89 | 108.39 ▼0.30 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▲0.01 | 152.55 ▲2.69 | 115.89 ▲1.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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
Good news, no errors were detected
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woocommerce-checkout-password-strength-meter/woo-checkout-password-strength-meter.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (The password strength meter on the checkout page), #2 (Password too weak), #3 (Mismatch), #4 (Good password), #5 (Strong Password)
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
woocommerce-checkout-password-strength-meter/woo-checkout-password-strength-meter.php 85% from 13 tests
The entry point to "WooCommerce Checkout Password Strength Meter" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-checkout-password-strength-meter.php" instead of "woo-checkout-password-strength-meter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected154 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 1 | 48 | 104 | 57 |
JavaScript | 1 | 7 | 1 | 47 |
PHP | 1 | 24 | 60 | 35 |
CSS | 1 | 1 | 0 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 9.27KB | 3.70KB | ▼ 60.08% |
screenshot-4.png | 9.05KB | 3.63KB | ▼ 59.91% |
screenshot-1.png | 10.64KB | 4.13KB | ▼ 61.23% |
screenshot-3.png | 8.16KB | 3.20KB | ▼ 60.78% |
screenshot-2.png | 10.39KB | 4.04KB | ▼ 61.14% |