Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.70ms] Passed 4 tests
This is a short check of server-side resources used by Product Compare for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 40.76 ▲2.59 |
Dashboard /wp-admin | 3.46 ▲0.16 | 47.79 ▼4.72 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 45.16 ▼0.72 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 93.49 ▲0.05 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.62 ▲6.24 |
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins | 3.40 | 34.09 |
Product Compare /wp-admin/admin.php?page=th-product-compare | 3.38 | 33.35 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Product Compare for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,014 ▲252 | 13.78 ▼0.54 | 13.79 ▲12.15 | 42.70 ▼3.85 |
Dashboard /wp-admin | 2,257 ▲80 | 5.66 ▲0.15 | 87.63 ▼6.63 | 91.23 ▲47.95 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 2.10 ▲0.13 | 35.88 ▼1.99 | 40.25 ▲4.76 |
Add New Post /wp-admin/post-new.php | 1,650 ▲124 | 23.46 ▲0.42 | 660.51 ▼50.90 | 199.84 ▲144.69 |
Media Library /wp-admin/upload.php | 1,459 ▲59 | 4.22 ▲0.07 | 100.84 ▼2.80 | 78.11 ▲32.35 |
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins | 1,283 | 1.86 | 33.13 | 51.74 |
Product Compare /wp-admin/admin.php?page=th-product-compare | 1,515 | 2.01 | 25.62 | 56.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/th-product-compare/admin/themehunk-menu/plugins-list.php:4
- > PHP Warning
include_once(THEMEHUNK_PDIRth-option/header.php): failed to open stream: No such file or directory in wp-content/plugins/th-product-compare/admin/themehunk-menu/th-option/tab-html.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/th-product-compare/admin/themehunk-menu/admin-menu.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/th-product-compare/admin/themehunk-menu/th-option/tab-html.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/th-product-compare/admin/themehunk-menu/th-option/sidebar.php:4
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin-install.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/th-product-compare/admin/themehunk-menu/admin-menu.php on line 3
- > PHP Warning
include_once(): Failed opening 'THEMEHUNK_PDIRth-option/header.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/th-product-compare/admin/themehunk-menu/th-option/tab-html.php on line 13
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/th-product-compare/admin/themehunk-menu/admin-menu.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/th-product-compare/admin/themehunk-menu/admin-menu.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/th-product-compare/admin/themehunk-menu/th-option/header.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in th-product-compare/assets to your readme.txt
th-product-compare/th-product-compare.php 92% from 13 tests
"Product Compare for WooCommerce" version 1.2.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 616 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin6,629 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 206 | 46 | 2,917 |
PHP | 19 | 365 | 72 | 1,574 |
Sass | 10 | 201 | 75 | 1,344 |
JavaScript | 3 | 38 | 89 | 593 |
PO File | 1 | 81 | 81 | 201 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 30.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 6 | 12.24% |
▷ Public methods | 45 | 91.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.16% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
14 PNG files occupy 0.42MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/pro-img/advance-product-compare.png | 42.96KB | 12.91KB | ▼ 69.94% |
admin/themehunk-menu/th-option/assets/images/ico.png | 8.40KB | 0.67KB | ▼ 91.99% |
assets/img/th-logo.png | 3.35KB | 1.55KB | ▼ 53.63% |
assets/img/pro-img/product-compare-style.png | 67.39KB | 27.29KB | ▼ 59.50% |
admin/themehunk-menu/th-option/assets/images/icon.png | 14.32KB | 7.45KB | ▼ 47.95% |