Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.67MB] [CPU: ▲13.07ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Product Comparison by WooBeWoo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.15 ▲1.68 | 55.26 ▲13.84 |
Dashboard /wp-admin | 4.98 ▲1.68 | 60.10 ▲8.29 |
Posts /wp-admin/edit.php | 5.03 ▲1.67 | 63.35 ▲12.56 |
Add New Post /wp-admin/post-new.php | 7.56 ▲1.67 | 119.26 ▲20.58 |
Media Library /wp-admin/upload.php | 4.90 ▲1.67 | 57.85 ▲17.57 |
Settings /wp-admin/admin.php?page=woo-compare-products&tab=settings | 5.01 | 48.75 |
Woo Compare Products /wp-admin/admin.php?page=woo-compare-products | 5.00 | 47.90 |
Server storage [IO: ▲4.49MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/woo-compare-products/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 259 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_wcp_modules_type |
wp_wcp_modules |
wp_wcp_usage_stat |
New WordPress options |
---|
can_compress_scripts |
wcp_plugin_activation_errors |
wcp_opts_data |
theysaidso_admin_options |
db_upgraded |
wp_wcp_db_installed |
widget_recent-posts |
wp_wcp_db_version |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Product Comparison by WooBeWoo
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 13.31 ▼1.49 | 5.17 ▲3.55 | 41.69 ▼0.70 |
Dashboard /wp-admin | 2,246 ▲43 | 4.88 ▼1.02 | 109.18 ▲6.74 | 43.50 ▲4.79 |
Posts /wp-admin/edit.php | 2,125 ▲28 | 2.01 ▼0.04 | 39.73 ▼0.31 | 38.36 ▲2.94 |
Add New Post /wp-admin/post-new.php | 1,563 ▲30 | 23.04 ▼0.15 | 655.09 ▼2.75 | 65.90 ▲11.59 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.19 ▼0.04 | 97.39 ▼5.83 | 46.25 ▼0.89 |
Settings /wp-admin/admin.php?page=woo-compare-products&tab=settings | 1,689 | 4.71 | 85.84 | 52.15 |
Woo Compare Products /wp-admin/admin.php?page=woo-compare-products | 1,686 | 4.75 | 88.12 | 36.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- wcp_plugin_activation_errors
- wcp_opts_data
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woo-compare-products
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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 fix the following items
- 54× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/woo-compare-products/modules/supsystic_promo/views/tpl/additionalmainAdminShowOnOptions.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-compare-products/modules/options/views/tpl/optionsSettingsTabContent.php:3
- > PHP Fatal error
Uncaught Error: Class 'moduleWcp' not found in wp-content/plugins/woo-compare-products/modules/woo/mod.php:2
- > PHP Fatal error
Uncaught Error: Class 'baseObjectWcp' not found in wp-content/plugins/woo-compare-products/classes/model.php:2
- > PHP Fatal error
Uncaught Error: Class 'controllerWcp' not found in wp-content/plugins/woo-compare-products/modules/supsystic_promo/controller.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-compare-products/config.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'viewWcp' not found in wp-content/plugins/woo-compare-products/modules/admin_nav/views/admin_nav.php:2
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-compare-products/config.php on line 11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-compare-products/modules/options/views/tpl/optionsAdminMain.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-compare-products/modules/woo/views/tpl/frontendPopup.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Donate link: Invalid url: "woobewoo.com"
woo-compare-products/wcp.php 92% from 13 tests
"WooCommerce Product Comparison by WooBeWoo" version 1.2.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-compare-products.php" instead of "wcp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected30,008 lines of code in 207 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 96 | 1,403 | 2,584 | 13,586 |
PHP | 75 | 545 | 2,185 | 9,825 |
CSS | 34 | 386 | 294 | 3,271 |
SVG | 1 | 0 | 0 | 2,671 |
PO File | 1 | 227 | 263 | 655 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 29.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 212.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 9 | 15.52% |
▷ Concrete classes | 49 | 84.48% |
▷ Final classes | 0 | 0.00% |
Methods | 834 | |
▷ Static methods | 280 | 33.57% |
▷ Public methods | 732 | 87.77% |
▷ Protected methods | 47 | 5.64% |
▷ Private methods | 55 | 6.59% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 95 | |
▷ Global constants | 70 | 73.68% |
▷ Class constants | 25 | 26.32% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
33 PNG files occupy 0.23MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_gloss-wave_16_121212_500x100.png | 3.76KB | 0.98KB | ▼ 74.04% |
js/jquery.context-menu/images/door.png | 0.40KB | 0.60KB | 0.00% |
modules/supsystic_promo/img/forms-stats-promo.png | 89.70KB | 28.71KB | ▼ 67.99% |
css/images/minimal.png | 2.23KB | 1.44KB | ▼ 35.45% |
js/jquery.bootstrap.colorpicker/holder.png | 0.12KB | 0.14KB | 0.00% |