Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.57ms] Passed 4 tests
An overview of server-side resources used by WR Price List Manager For Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.32 ▼3.65 |
Dashboard /wp-admin | 3.35 ▲0.04 | 43.19 ▼7.55 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 61.70 ▲11.39 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.53 ▲2.63 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.23 ▲2.30 |
Server storage [IO: ▲8.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 58 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_wr_price_lists_price |
wp_wr_price_lists |
New WordPress options |
---|
can_compress_scripts |
wrpl_plugin_version |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
wrpl-default_list |
theysaidso_admin_options |
wrpl-hide_price |
wrpl-assign-method |
widget_recent-comments |
Browser metrics Passed 4 tests
WR Price List Manager For Woocommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲43 | 14.25 ▼0.46 | 1.71 ▼0.22 | 43.85 ▲0.78 |
Dashboard /wp-admin | 2,207 ▲33 | 5.56 ▼0.05 | 84.39 ▼11.71 | 78.86 ▲37.24 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 1.99 ▲0.03 | 40.80 ▲1.12 | 40.27 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.45 ▲0.36 | 696.23 ▲97.50 | 59.36 ▲5.98 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.17 ▼0.05 | 105.49 ▲5.82 | 68.78 ▲23.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_wr_price_lists
- wp_wr_price_lists_price
- This plugin does not fully uninstall, leaving 10 options in the database
- wrpl-default_list
- wrpl_plugin_version
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- wrpl-assign-method
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- wrpl-hide_price
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wr-price-list-for-woocommerce/wr_price_list.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: price, price list, b2c, woocommerce, discounts...
wr-price-list-for-woocommerce/wr_price_list.php 77% from 13 tests
The main file in "WR Price List Manager For Woocommerce" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wr-price-list-for-woocommerce.php" instead of "wr_price_list.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,384 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 122 | 77 | 1,728 |
PHP | 21 | 446 | 637 | 1,653 |
JavaScript | 9 | 66 | 99 | 678 |
PO File | 1 | 84 | 91 | 219 |
JSON | 1 | 0 | 0 | 106 |
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 code | 0.31 |
Average class complexity | 16.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 108 | |
▷ Static methods | 9 | 8.33% |
▷ Public methods | 105 | 97.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.78% |
Functions | 12 | |
▷ Named functions | 6 | 50.00% |
▷ Anonymous functions | 6 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
8 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 12.17KB | 11.41KB | ▼ 6.28% |
assets/img/price-tag.png | 0.38KB | 0.27KB | ▼ 29.77% |
assets/img/120x120.png | 1.40KB | 0.69KB | ▼ 50.77% |
assets/img/no-image.png | 2.14KB | 2.41KB | 0.00% |
assets/img/invalid.png | 0.30KB | 0.24KB | ▼ 22.12% |