Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.81MB] [CPU: ▼2.32ms] 75% from 4 tests
An overview of server-side resources used by Ever Compare - Products Compare Plugin for WooCommerce
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 1,558.77ms on /wp-admin/admin.php?page=everrecommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 49.38 ▼4.85 |
Dashboard /wp-admin | 4.25 ▲0.95 | 73.33 ▲0.77 |
Posts /wp-admin/edit.php | 4.30 ▲0.95 | 68.98 ▲0.10 |
Add New Post /wp-admin/post-new.php | 6.83 ▲0.94 | 110.63 ▼5.29 |
Media Library /wp-admin/upload.php | 4.15 ▲0.93 | 52.65 ▲2.15 |
Recommendations /wp-admin/admin.php?page=everrecommendations | 8.46 | 1,558.77 |
Server storage [IO: ▲0.68MB] [DB: ▲0.67MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 66 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
ever_compare_table_settings_tabs |
widget_theysaidso_widget |
evercompare_version |
ever_compare_style_tabs |
can_compress_scripts |
ever_compare_settings_tabs |
widget_recent-posts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Ever Compare - Products Compare Plugin for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,990 ▲190 | 14.70 ▲0.29 | 1.43 ▼0.74 | 54.20 ▼0.16 |
Dashboard /wp-admin | 2,399 ▲193 | 6.63 ▲0.72 | 132.24 ▼0.75 | 42.35 ▼12.42 |
Posts /wp-admin/edit.php | 2,307 ▲214 | 3.56 ▲1.57 | 53.08 ▲1.51 | 33.30 ▼7.96 |
Add New Post /wp-admin/post-new.php | 1,563 ▲152 | 23.53 ▲5.59 | 672.31 ▼47.89 | 36.34 ▼19.01 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 4.28 ▲0.09 | 109.27 ▼18.84 | 57.20 ▲0.13 |
Recommendations /wp-admin/admin.php?page=everrecommendations | 3,044 | 3.43 | 56.65 | 109.51 |
Settings /wp-admin/admin.php?page=evercompare#settings | 3,687 | 4.59 | 139.46 | 130.85 |
Uninstaller [IO: ✅] [DB: ▲0.67MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/ever-compare/uninstall.php+13
Illegal string offset 'compare_page'
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- evercompare_installed
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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)
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ever-compare/includes/templates/evercompare-count.php:1
- > PHP Notice
Undefined variable: empty_compare_text in wp-content/plugins/ever-compare/includes/templates/evercompare-table.php on line 36
- > PHP Notice
Undefined variable: return_shop_button in wp-content/plugins/ever-compare/includes/templates/evercompare-table.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ever-compare/includes/templates/evercompare-button-add.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ever-compare/includes/templates/evercompare-table.php:45
- > 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 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
5 plugin tags: compare products, product comparison, product compare, compare button, woocommerce compare
ever-compare/ever-compare.php Passed 13 tests
This is the main PHP file of "Ever Compare - Products Compare Plugin for WooCommerce" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
34 characters long description:
WooCommerce Product compare plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin4,352 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 914 | 967 | 3,337 |
CSS | 3 | 122 | 18 | 638 |
JavaScript | 4 | 65 | 56 | 302 |
SVG | 2 | 0 | 0 | 36 |
YAML | 2 | 2 | 0 | 34 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 22.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 1 | 5.88% |
Methods | 164 | |
▷ Static methods | 25 | 15.24% |
▷ Public methods | 153 | 93.29% |
▷ Protected methods | 1 | 0.61% |
▷ Private methods | 10 | 6.10% |
Functions | 20 | |
▷ Named functions | 17 | 85.00% |
▷ Anonymous functions | 3 | 15.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/extensions/docus-pro.png | 3.98KB | 0.00KB | ▼ 100.00% |
assets/images/extensions/htmega-pro.png | 4.60KB | 4.78KB | 0.00% |
(invalid) assets/images/extensions/ht-google-place-review.png | 2.64KB | 0.00KB | ▼ 100.00% |
assets/images/extensions/ht-slider-addons-pro.png | 6.41KB | 4.35KB | ▼ 32.23% |
.wordpress-org/screenshot-3.png | 70.18KB | 22.54KB | ▼ 67.89% |