Benchmarks
Plugin footprint 83% 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.00MB] [CPU: ▼2.43ms] Passed 4 tests
Server-side resources used by Wishlist for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.55 ▼3.47 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.17 ▼3.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.99 ▼0.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.47 ▼2.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.67 ▲1.18 |
Server storage [IO: ▲6.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wishlist for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲15 | 14.01 ▼0.33 | 1.76 ▲0.01 | 36.71 ▼4.97 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▼0.02 | 89.64 ▼4.19 | 41.83 ▼1.94 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.06 | 39.85 ▼3.04 | 36.14 ▼5.53 |
Add New Post /wp-admin/post-new.php | 1,526 ▼8 | 23.13 ▲0.23 | 611.99 ▲7.63 | 54.74 ▲0.06 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.15 ▼0.02 | 97.58 ▼2.27 | 39.83 ▼2.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/wt-woocommerce-wishlist/admin/views/wishlist-button-style-settings-page.php
- > /wp-content/plugins/wt-woocommerce-wishlist/admin/partials/wishlist-webtoffee-admin-display.php
- > /wp-content/plugins/wt-woocommerce-wishlist/admin/views/class-wishlist-settings.php
- > /wp-content/plugins/wt-woocommerce-wishlist/admin/views/wishlist-table-settings-page.php
- > /wp-content/plugins/wt-woocommerce-wishlist/admin/views/wishlist-popular-products-page.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wt-woocommerce-wishlist/includes/class-wt-wishlist-uninstall-feedback.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wishlist, woocommerce wishlist, bookmark products, wishlist for woocommerce, save for later
wt-woocommerce-wishlist/wishlist-webtoffee.php 85% from 13 tests
The main file in "Wishlist for WooCommerce" v. 2.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "2.7")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wt-woocommerce-wishlist.php" instead of "wishlist-webtoffee.php")
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
There were no executable files found in this plugin37,847 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 7 | 0 | 0 | 34,897 |
PHP | 25 | 501 | 222 | 2,025 |
CSS | 2 | 38 | 17 | 419 |
JavaScript | 2 | 51 | 65 | 264 |
PO File | 2 | 102 | 108 | 242 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 13.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 11 | 13.25% |
▷ Public methods | 73 | 87.95% |
▷ Protected methods | 1 | 1.20% |
▷ Private methods | 9 | 10.84% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 4 | |
▷ Global constants | 4 | 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
10 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/ellipse.png | 0.43KB | 0.34KB | ▼ 21.36% |
public/images/icon_favourite.png | 0.60KB | 0.47KB | ▼ 21.31% |
public/images/delete_icon.png | 0.34KB | 0.24KB | ▼ 29.06% |
admin/img/webtoffee_banner.png | 6.35KB | 3.20KB | ▼ 49.56% |
public/images/unfavourite.png | 0.44KB | 0.32KB | ▼ 28.22% |