Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.55MB] [CPU: ▲9.29ms] Passed 4 tests
Analyzing server-side resources used by Wishlist and Waitlist for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.11 ▲1.60 | 57.53 ▲13.54 |
Dashboard /wp-admin | 4.94 ▲1.56 | 68.33 ▼1.24 |
Posts /wp-admin/edit.php | 4.99 ▲1.59 | 67.81 ▲20.98 |
Add New Post /wp-admin/post-new.php | 7.46 ▲1.53 | 101.77 ▲3.87 |
Media Library /wp-admin/upload.php | 4.80 ▲1.53 | 62.35 ▲27.27 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 100 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
berocket_admin_notices_rate_stars |
br-wish_list-options |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Wishlist and Waitlist for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲92 | 14.72 ▼0.00 | 2.14 ▲0.39 | 40.84 ▼3.53 |
Dashboard /wp-admin | 2,216 ▲36 | 5.53 ▼0.06 | 93.64 ▲1.25 | 76.74 ▲30.40 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.06 ▲0.03 | 37.40 ▼0.52 | 35.31 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,593 ▲65 | 23.97 ▲1.08 | 649.35 ▼38.63 | 50.37 ▼9.39 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.32 ▲0.14 | 102.94 ▲0.48 | 77.24 ▲28.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- berocket_admin_notices_rate_stars
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- berocket_key_activated_plugins
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wish-wait-list-for-woocommerce/templates/wish_wait.php
- 55× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/includes/admin_notices.php:797
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/includes/widget.php:8
- > PHP Notice
Undefined variable: subject in wp-content/plugins/wish-wait-list-for-woocommerce/templates/email/product_instock.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/libraries/tippy.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/libraries/wpml_compatibility.php:2
- > PHP Notice
Undefined variable: product_type in wp-content/plugins/wish-wait-list-for-woocommerce/templates/widget.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/sale/sale.php:4
- > PHP Notice
Undefined variable: message in wp-content/plugins/wish-wait-list-for-woocommerce/templates/email/product_instock.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/includes/settings_fields.php:5
- > PHP Notice
Undefined variable: product_count in wp-content/plugins/wish-wait-list-for-woocommerce/templates/widget.php on line 2
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: Too many tags (35 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wish-wait-list-for-woocommerce/wish-list.php 92% from 13 tests
The primary PHP file in "Wishlist and Waitlist for WooCommerce" version 3.5.8.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wish-wait-list-for-woocommerce.php" instead of "wish-list.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin21,059 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 2,515 | 76 | 9,756 |
PHP | 47 | 450 | 2,120 | 9,004 |
JavaScript | 7 | 43 | 58 | 1,824 |
PO File | 2 | 194 | 216 | 430 |
XML | 2 | 0 | 0 | 45 |
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.52 |
Average class complexity | 43.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 403 | |
▷ Static methods | 138 | 34.24% |
▷ Public methods | 403 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
berocket/libraries/addons/default.png | 3.87KB | 2.63KB | ▼ 31.94% |
berocket/assets/css/mail.png | 2.59KB | 1.92KB | ▼ 26.02% |
berocket/assets/images/submenu-icon-a.png | 0.54KB | 0.48KB | ▼ 10.20% |
berocket/includes/ico.png | 1.90KB | 1.41KB | ▼ 25.89% |
berocket/libraries/templates/default.png | 3.87KB | 2.63KB | ▼ 31.94% |