Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.50MB] [CPU: ▲10.16ms] Passed 4 tests
A check of server-side resources used by Products Compare for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.97 ▲1.51 | 51.20 ▲4.86 |
Dashboard /wp-admin | 4.80 ▲1.50 | 68.54 ▲18.97 |
Posts /wp-admin/edit.php | 4.91 ▲1.56 | 63.47 ▲12.23 |
Add New Post /wp-admin/post-new.php | 7.38 ▲1.50 | 104.36 ▲4.56 |
Media Library /wp-admin/upload.php | 4.73 ▲1.50 | 62.18 ▲22.02 |
Server storage [IO: ▲2.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 114 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
br-compare-products-options |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
berocket_admin_notices_rate_stars |
widget_recent-posts |
Browser metrics Passed 4 tests
Products Compare for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 14.35 ▼0.05 | 1.80 ▲0.34 | 40.63 ▼3.07 |
Dashboard /wp-admin | 2,219 ▲39 | 5.58 ▲0.03 | 88.81 ▼4.21 | 73.27 ▲31.24 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 2.01 ▼0.00 | 36.64 ▼5.57 | 34.43 ▼3.87 |
Add New Post /wp-admin/post-new.php | 1,714 ▲177 | 22.18 ▲3.96 | 725.22 ▲92.06 | 61.40 ▼5.23 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.24 ▼0.00 | 104.59 ▲0.80 | 84.08 ▲41.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- berocket_admin_notices_rate_stars
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- berocket_key_activated_plugins
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 33× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/products-compare-for-woocommerce/templates/style_section.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/products-compare-for-woocommerce/berocket/sale/sale.php:4
- > PHP Notice
Undefined variable: title in wp-content/plugins/products-compare-for-woocommerce/berocket/templates/widget.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_framework_template_lib' not found in wp-content/plugins/products-compare-for-woocommerce/style_templates/sweet-alert/sweet-alert.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/products-compare-for-woocommerce/berocket/libraries/tutorial.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/products-compare-for-woocommerce/berocket/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/products-compare-for-woocommerce/berocket/framework.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/products-compare-for-woocommerce/berocket/includes/information_notices.php:259
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/products-compare-for-woocommerce/includes/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/products-compare-for-woocommerce/berocket/includes/admin_notices.php:795
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (General settings), #2 (Style settings), #3 (Text settings)
products-compare-for-woocommerce/products-compare.php 92% from 13 tests
This is the main PHP file of "Products Compare for WooCommerce" version 3.5.7.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("products-compare-for-woocommerce.php" instead of "products-compare.php")
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
Success! There were no dangerous files found in this plugin22,327 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 22 | 2,593 | 76 | 10,609 |
PHP | 46 | 468 | 2,246 | 9,168 |
JavaScript | 8 | 66 | 94 | 2,072 |
PO File | 2 | 194 | 216 | 430 |
XML | 2 | 0 | 0 | 48 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 40.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 370 | |
▷ Static methods | 138 | 37.30% |
▷ Public methods | 370 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style_templates/separate-footer/separate-footer.png | 6.37KB | 3.48KB | ▼ 45.36% |
style_templates/sweet-alert/sweet-alert.png | 6.46KB | 3.34KB | ▼ 48.31% |
style_templates/nice-green/nice-green.png | 7.53KB | 3.67KB | ▼ 51.22% |
berocket/libraries/addons/default.png | 3.87KB | 2.63KB | ▼ 31.94% |
berocket/libraries/templates/default.png | 3.87KB | 2.63KB | ▼ 31.94% |