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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.97ms] Passed 4 tests
Analyzing server-side resources used by Addonify - Compare Products For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 46.29 ▲2.05 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.06 ▼12.34 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.99 ▲2.53 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.01 ▼12.19 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.07 ▼1.41 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
addonify_cp_compare_page |
Browser metrics Passed 4 tests
A check of browser resources used by Addonify - Compare Products For WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.23 ▼0.11 | 1.76 ▼0.34 | 44.75 ▲3.39 |
Dashboard /wp-admin | 2,209 ▲29 | 5.50 ▼0.16 | 85.03 ▼16.58 | 38.85 ▼5.94 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.02 ▲0.06 | 35.51 ▼3.56 | 34.36 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.19 ▼0.04 | 695.56 ▲90.71 | 53.51 ▲3.28 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.32 ▲0.11 | 99.48 ▼2.00 | 40.54 ▼1.37 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- addonify_cp_compare_page
- widget_recent-comments
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/addonify-compare-products/public/templates/addonify-compare-products-docker-modal.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-compare-products/includes/setting-functions/fields/general.php:127
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/addonify-compare-products/includes/setting-functions/settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-compare-products/includes/setting-functions/fields/search-modal.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addonify-compare-products/includes/addonify-compare-products-template-hooks.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-compare-products/includes/setting-functions/fields/compare-button.php:150
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/addonify-compare-products/public/templates/addonify-compare-products-search-modal.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-compare-products/includes/setting-functions/fields/floating-compare-bar.php:108
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-compare-products/includes/setting-functions/fields/custom-css.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/addonify-compare-products/includes/udp/init.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: products comparison, woocommerce compare, compare products, addonify, woocommerce...
addonify-compare-products/addonify-compare-products.php Passed 13 tests
The primary PHP file in "Addonify - Compare Products For WooCommerce" version 1.1.12 is used by WordPress to initiate all plugin functionality
132 characters long description:
Addonify Compare Products is a WooCommerce extension that allows website visitors to compare multiple products on your online store.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,549 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 795 | 1,588 | 2,610 |
Sass | 12 | 274 | 7 | 891 |
SVG | 3 | 0 | 1 | 33 |
JSON | 1 | 0 | 0 | 6 |
JavaScript | 5 | 0 | 2 | 5 |
CSS | 4 | 0 | 2 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 2 | 3.17% |
▷ Public methods | 52 | 82.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 17.46% |
Functions | 75 | |
▷ Named functions | 65 | 86.67% |
▷ Anonymous functions | 10 | 13.33% |
Constants | 4 | |
▷ Global constants | 4 | 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
There were not PNG files found in your plugin