Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼140.23ms] Passed 4 tests
An overview of server-side resources used by Login & Register Redirect for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.28 | 36.36 ▲15.86 |
Dashboard /wp-admin | 3.31 ▲0.26 | 50.21 ▲2.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.25 | 49.95 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 94.03 ▼559.35 |
Media Library /wp-admin/upload.php | 3.17 ▲0.17 | 33.29 ▼2.66 |
Login & Register Redirect for WooCommerce /wp-admin/options-general.php?page=lrr-for-woocommerce-admin | 3.17 | 33.81 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 1 new option
New WordPress options |
---|
lrrfw_basic |
Browser metrics Passed 4 tests
Login & Register Redirect for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,039 ▲443 | 18.19 ▲2.60 | 15.66 ▲5.65 | 44.90 ▲0.20 |
Dashboard /wp-admin | 3,219 ▲288 | 8.19 ▲2.03 | 173.26 ▲23.94 | 108.48 ▼6.60 |
Posts /wp-admin/edit.php | 2,995 ▲256 | 4.37 ▲1.64 | 86.50 ▲18.50 | 82.81 ▼10.26 |
Add New Post /wp-admin/post-new.php | 1,630 ▼2,068 | 18.62 ▲0.53 | 382.03 ▼98.28 | 135.15 ▲29.72 |
Media Library /wp-admin/upload.php | 1,844 ▲37 | 4.89 ▼0.16 | 123.08 ▼31.75 | 120.18 ▼0.41 |
Login & Register Redirect for WooCommerce /wp-admin/options-general.php?page=lrr-for-woocommerce-admin | 1,364 | 4.11 | 102.71 | 71.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- lrrfw_basic
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/login-register-redirect-for-woocommerce/public/partials/lrr-for-woocommerce-public-display.php
- > /wp-content/plugins/login-register-redirect-for-woocommerce/admin/partials/lrr-for-woocommerce-admin-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WeDevs_Settings_API' not found in wp-content/plugins/login-register-redirect-for-woocommerce/includes/class-lrr-for-woocommerce-settings.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-register-redirect-for-woocommerce/vendor/tareq1988/wordpress-settings-api-class/src/class.settings-api.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-register-redirect-for-woocommerce/vendor/tareq1988/wordpress-settings-api-class/example/procedural-example.php:270
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Requires php: Invalid plugin version format
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: Please add an image for screenshot #2 (Leave them blank if you want to return to the default WooCommerce settings.)
login-register-redirect-for-woocommerce/lrr-for-woocommerce.php 85% from 13 tests
The main file in "Login & Register Redirect for WooCommerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("login-register-redirect-for-woocommerce.php" instead of "lrr-for-woocommerce.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,558 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 352 | 936 | 1,430 |
JSON | 3 | 0 | 0 | 75 |
Markdown | 1 | 21 | 0 | 47 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 6 | 6.67% |
▷ Public methods | 82 | 91.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.89% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.38MB with 0.27MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/tareq1988/wordpress-settings-api-class/screenshot-1.png | 389.59KB | 115.93KB | ▼ 70.24% |