Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.85MB] [CPU: ▼36.04ms] Passed 4 tests
This is a short check of server-side resources used by Product Quick View for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.51 ▼4.62 |
Dashboard /wp-admin | 3.09 ▼0.21 | 26.07 ▼28.44 |
Posts /wp-admin/edit.php | 3.09 ▼0.26 | 25.22 ▼28.16 |
Add New Post /wp-admin/post-new.php | 3.09 ▼2.79 | 27.53 ▼70.16 |
Media Library /wp-admin/upload.php | 3.09 ▼0.14 | 22.41 ▼17.40 |
Server storage [IO: ▲1.97MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 133 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Product Quick View for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲174 | 13.72 ▼0.71 | 7.48 ▲5.68 | 38.93 ▼6.20 |
Dashboard /wp-admin | 2,237 ▲60 | 5.77 ▲0.13 | 90.10 ▼1.21 | 40.94 ▼6.25 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.33 ▲0.30 | 43.37 ▲6.38 | 34.08 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,566 ▲21 | 23.40 ▲0.12 | 688.64 ▲21.88 | 42.80 ▼12.61 |
Media Library /wp-admin/upload.php | 1,446 ▲49 | 4.50 ▲0.23 | 101.29 ▼13.71 | 40.59 ▼9.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/hmh-woocommerce-quick-view/includes/admin/options.class.php+59
Undefined index: icon
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/checkbox.view.php
- > /wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/hidden.view.php
- > /wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/index.php
- 58× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: dependency in wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/toggle.view.php on line 1
- > PHP Notice
Undefined variable: dependency in wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/dropdown.view.php on line 1
- > PHP Notice
Undefined variable: dependency in wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/multi_select.view.php on line 1
- > PHP Notice
Undefined variable: dependency in wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/toggle.view.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/checkbox.view.php on line 8
- > PHP Notice
Undefined variable: dependency in wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/multi_select.view.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/tags.view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/attach.view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/number.view.php:3
- > PHP Notice
Undefined variable: dependency in wp-content/plugins/hmh-woocommerce-quick-view/bestbugcore/classes/fields/colorpicker.view.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Add Product)
hmh-woocommerce-quick-view/index.php 85% from 13 tests
The entry point to "Product Quick View for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("hmh-woocommerce-quick-view.php" instead of "index.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin14,800 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 939 | 686 | 5,166 |
PHP | 39 | 779 | 531 | 4,772 |
CSS | 18 | 381 | 67 | 3,297 |
Sass | 26 | 156 | 3 | 1,565 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 30.42 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 246.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 199 | |
▷ Static methods | 14 | 7.04% |
▷ Public methods | 184 | 92.46% |
▷ Protected methods | 15 | 7.54% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 39 | |
▷ Global constants | 39 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.24MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bestbugcore/assets/admin/images/logo.png | 1.87KB | 0.57KB | ▼ 69.83% |
assets/screenshot-1.png | 77.39KB | 21.01KB | ▼ 72.86% |
bestbugcore/assets/admin/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
bestbugcore/assets/admin/libs/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/screenshot-2.png | 77.45KB | 23.41KB | ▼ 69.77% |