Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.87ms] Passed 4 tests
A check of server-side resources used by Hide Product Image for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.42 ▼8.35 |
Dashboard /wp-admin | 3.35 ▲0.05 | 58.04 ▼0.52 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 60.94 ▼0.22 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 91.78 ▼5.58 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.58 ▼1.03 |
Hide Product Image for WooCommerce /wp-admin/options-general.php?page=hide-product-image-wc-settings | 3.24 | 32.96 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
hpifwc_hide_all_prod_img |
can_compress_scripts |
db_upgraded |
hide_prod_img_wc_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Hide Product Image for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.69 ▲0.34 | 1.67 ▼0.11 | 38.86 ▼3.94 |
Dashboard /wp-admin | 2,196 ▲19 | 5.63 ▲0.03 | 94.98 ▲4.46 | 41.47 ▼2.81 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.96 ▼0.03 | 36.08 ▼4.94 | 33.01 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.32 ▼5.24 | 661.90 ▼52.44 | 86.23 ▲34.77 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.18 ▲0.02 | 97.86 ▼16.36 | 43.15 ▼4.26 |
Hide Product Image for WooCommerce /wp-admin/options-general.php?page=hide-product-image-wc-settings | 812 | 2.01 | 29.16 | 28.90 |
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
- Zombie WordPress options were found after uninstall: 8 options
- hide_prod_img_wc_db_version
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- hpifwc_hide_all_prod_img
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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 SRP test was a success
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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: e-commerce, woocommerce, woo, image, product
hide-product-image-for-woocommerce/main.php 92% from 13 tests
"Hide Product Image for WooCommerce" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hide-product-image-for-woocommerce.php" instead of "main.php")
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
Good job! No executable or dangerous file extensions detected300 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 36 | 33 | 263 |
CSS | 2 | 0 | 0 | 37 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
addons/images/hpifwc-hide-images-by-products.png | 3.30KB | 2.42KB | ▼ 26.67% |