Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼4.42ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Tools
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 41.74 ▼0.04 |
Dashboard /wp-admin | 3.74 ▲0.39 | 51.56 ▼6.91 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 48.32 ▼2.48 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 98.83 ▼8.24 |
Media Library /wp-admin/upload.php | 3.60 ▲0.36 | 37.69 ▲5.07 |
Wishlist /wp-admin/admin.php?page=tfwctool-wishlist | 3.59 | 35.60 |
WooCommerce Tools /wp-admin/admin.php?page=tfwctool | 3.57 | 33.97 |
Compare /wp-admin/admin.php?page=tfwctool-compare | 3.57 | 31.24 |
Dashboard /wp-admin/admin.php?page=woocommerce-tools | 3.57 | 33.59 |
Quick View /wp-admin/admin.php?page=tfwctool-quick-view | 3.57 | 33.57 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 91 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_tfwctool_wishlist_items |
wp_tfwctool_wishlist_lists |
New WordPress options |
---|
tfwctool_wishlist |
theysaidso_admin_options |
tfwctool_wishlist_page_id |
db_upgraded |
tfwctool_quickview |
widget_tfwctool_wishlist_widget |
widget_theysaidso_widget |
widget_recent-comments |
widget_tfwctool_ajax_search_widget |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Tools
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲176 | 13.68 ▼0.68 | 9.22 ▲7.41 | 46.34 ▲2.39 |
Dashboard /wp-admin | 2,258 ▲78 | 5.04 ▼0.63 | 102.44 ▲15.81 | 41.29 ▼3.03 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.44 ▲0.43 | 36.58 ▼1.38 | 32.35 ▼3.64 |
Add New Post /wp-admin/post-new.php | 1,594 ▲58 | 18.42 ▲0.44 | 624.04 ▲26.48 | 49.59 ▼13.46 |
Media Library /wp-admin/upload.php | 1,467 ▲67 | 4.56 ▲0.30 | 89.71 ▼11.60 | 39.49 ▼3.16 |
Wishlist /wp-admin/admin.php?page=tfwctool-wishlist | 1,021 | 2.34 | 35.14 | 26.28 |
WooCommerce Tools /wp-admin/admin.php?page=tfwctool | 983 | 2.10 | 28.07 | 28.10 |
Compare /wp-admin/admin.php?page=tfwctool-compare | 919 | 2.12 | 28.65 | 28.50 |
Dashboard /wp-admin/admin.php?page=woocommerce-tools | 962 | 2.11 | 29.69 | 27.43 |
Quick View /wp-admin/admin.php?page=tfwctool-quick-view | 912 | 2.12 | 28.52 | 25.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_tfwctool_wishlist_lists
- wp_tfwctool_wishlist_items
- Zombie WordPress options detected upon uninstall: 12 options
- widget_theysaidso_widget
- can_compress_scripts
- tfwctool_wishlist
- widget_tfwctool_ajax_search_widget
- widget_tfwctool_wishlist_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- tfwctool_quickview
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-tools/templates/quick-view-model.php
- > /wp-content/plugins/woo-tools/templates/compare-model.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/woo-tools/templates/quick-view-product-content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/woo-tools/admin/option-pages/quickview-options.php:2
- > PHP Notice
Undefined variable: args in wp-content/plugins/woo-tools/templates/compare-quick-model.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-tools/templates/wishlist-empty.php:2
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/woo-tools/templates/compare-quick-model.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/woo-tools/admin/option-pages/wishlist-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-tools/templates/compare-quick-model.php:16
- > PHP Fatal error
Uncaught Error: Call to a member function get_id() on null in wp-content/plugins/woo-tools/templates/compare-button.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woo-tools/templates/quick-view-button.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/woo-tools/admin/option-pages/compare-options.php:2
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
woo-tools/woo-tools.php 77% from 13 tests
The principal PHP file in "WooCommerce Tools" v. 1.2.9 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 157 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected8,994 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 1,216 | 345 | 4,947 |
PHP | 41 | 489 | 381 | 2,739 |
CSS | 11 | 207 | 27 | 1,308 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.27 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 10 | 9.26% |
▷ Public methods | 75 | 69.44% |
▷ Protected methods | 12 | 11.11% |
▷ Private methods | 21 | 19.44% |
Functions | 45 | |
▷ Named functions | 44 | 97.78% |
▷ Anonymous functions | 1 | 2.22% |
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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/compare-icon.png | 3.87KB | 0.64KB | ▼ 83.48% |
admin/assets/images/ajax-search-icon.png | 7.96KB | 2.40KB | ▼ 69.90% |
admin/assets/images/wishlist-icon.png | 5.97KB | 1.61KB | ▼ 73.01% |
admin/assets/images/quick-view-icon.png | 8.20KB | 2.14KB | ▼ 73.85% |
admin/assets/images/placeholder_plugin.png | 6.41KB | 3.01KB | ▼ 53.08% |