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.04MB] [CPU: ▼9.44ms] Passed 4 tests
This is a short check of server-side resources used by TP Show Product Images on Checkout Page for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 38.81 ▼0.84 |
Dashboard /wp-admin | 3.36 ▲0.01 | 45.83 ▼19.39 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.65 ▲0.35 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 83.69 ▼17.87 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 36.12 ▲3.75 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for TP Show Product Images on Checkout Page for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.25 ▼0.47 | 1.75 ▲0.03 | 36.05 ▼7.95 |
Dashboard /wp-admin | 2,209 ▲28 | 5.63 ▼0.08 | 84.48 ▼16.56 | 67.17 ▲28.89 |
Posts /wp-admin/edit.php | 2,099 ▼1 | 2.04 ▲0.01 | 38.07 ▼1.95 | 34.76 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 18.25 ▼4.67 | 620.51 ▼55.51 | 132.96 ▲81.99 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.42 ▲0.23 | 103.77 ▲4.74 | 64.60 ▲22.67 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-show-product-images-on-checkout-page-for-woocommerce/admin/tp-show-product-images-on-checkout-page-admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tp-show-product-images-on-checkout-page-for-woocommerce/public/tp-show-product-images-on-checkout-page-public.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #5 is missing in tp-show-product-images-on-checkout-page-for-woocommerce/assets to your readme.txt
tp-show-product-images-on-checkout-page-for-woocommerce/tp-show-product-images-on-checkout-page.php 69% from 13 tests
The entry point to "TP Show Product Images on Checkout Page for WooCommerce" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("tp-show-product-images-on-checkout-page-for-woocommerce.php" instead of "tp-show-product-images-on-checkout-page.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "4.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin863 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 40 | 25 | 609 |
PHP | 4 | 86 | 72 | 242 |
JavaScript | 1 | 6 | 6 | 6 |
XML | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
admin/images/tp.png | 1.24KB | 0.26KB | ▼ 79.08% |