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.11MB] [CPU: ▼6.06ms] Passed 4 tests
This is a short check of server-side resources used by Wholesale Suite – WooCommerce Wholesale Prices, B2B, Catalog Mode, Order Form, Wholesale User Roles, Dynamic Pricing & More
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 34.48 ▼4.15 |
Dashboard /wp-admin | 3.43 ▲0.08 | 44.90 ▼17.63 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 46.01 ▼4.78 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 92.07 ▲2.32 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.83 ▲4.79 |
Server storage [IO: ▲12.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 402 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
wwp_running |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Wholesale Suite – WooCommerce Wholesale Prices, B2B, Catalog Mode, Order Form, Wholesale User Roles, Dynamic Pricing & More
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲63 | 14.28 ▼0.46 | 1.79 ▼0.35 | 42.72 ▲0.37 |
Dashboard /wp-admin | 2,218 ▲41 | 5.63 ▲0.05 | 91.56 ▼9.52 | 42.97 ▲0.24 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.15 ▲0.13 | 41.53 ▲4.38 | 38.43 ▲6.43 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.25 ▲0.24 | 582.57 ▼118.47 | 45.21 ▼11.85 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.15 ▼0.09 | 95.12 ▼7.16 | 44.62 ▼0.58 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woocommerce-wholesale-prices/views/view-wwp-help-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/woocommerce-wholesale-prices/woocommerce-wholesale-prices.bootstrap.php:67
- > PHP Warning
Use of undefined constant WWP_IMAGES_URL - assumed 'WWP_IMAGES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woocommerce-wholesale-prices/views/view-wwp-about-page.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-wholesale-prices/views/view-wwp-about-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-wholesale-prices/views/backend/product/single/view-wwp-product-wholesale-role-visibility-filter.php:12
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI found ("")
woocommerce-wholesale-prices/woocommerce-wholesale-prices.bootstrap.php 85% from 13 tests
"Wholesale Suite – WooCommerce Wholesale Prices, B2B, Catalog Mode, Order Form, Wholesale User Roles, Dynamic Pricing & More" version 2.1.10.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.2" instead of "5.2")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-wholesale-prices.php" instead of "woocommerce-wholesale-prices.bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected21,484 lines of code in 363 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 3,269 | 7,199 | 11,237 |
JSON | 4 | 0 | 0 | 2,462 |
CSS | 36 | 319 | 64 | 2,387 |
PO File | 2 | 1,022 | 1,702 | 2,250 |
JavaScript | 202 | 390 | 388 | 1,567 |
TypeScript | 20 | 113 | 27 | 1,174 |
Markdown | 2 | 56 | 0 | 146 |
Sass | 6 | 23 | 0 | 144 |
SVG | 1 | 0 | 1 | 53 |
HTML | 1 | 2 | 8 | 23 |
YAML | 2 | 6 | 0 | 21 |
XML | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 27.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 55 | 100.00% |
▷ Final classes | 1 | 1.82% |
Methods | 568 | |
▷ Static methods | 112 | 19.72% |
▷ Public methods | 510 | 89.79% |
▷ Protected methods | 25 | 4.40% |
▷ Private methods | 33 | 5.81% |
Functions | 13 | |
▷ Named functions | 4 | 30.77% |
▷ Anonymous functions | 9 | 69.23% |
Constants | 54 | |
▷ Global constants | 29 | 53.70% |
▷ Class constants | 25 | 46.30% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/upgrade-page-wwpp-box.png | 32.72KB | 11.79KB | ▼ 63.97% |
images/wws-free-ebook.png | 10.13KB | 4.15KB | ▼ 59.00% |
js/lib/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
images/wws-page-icons.png | 10.04KB | 3.07KB | ▼ 69.41% |
images/logo.png | 7.72KB | 5.14KB | ▼ 33.46% |