Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.82MB] [CPU: ▲0.34ms] Passed 4 tests
A check of server-side resources used by Advanced Product Wishlist for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲0.84 | 57.47 ▲14.08 |
Dashboard /wp-admin | 4.26 ▲0.95 | 52.42 ▼2.62 |
Posts /wp-admin/edit.php | 4.29 ▲0.93 | 55.36 ▼0.66 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 91.65 ▼8.30 |
Media Library /wp-admin/upload.php | 4.20 ▲0.97 | 50.18 ▲12.92 |
Advanced Product Wishlist /wp-admin/admin.php?page=advanced-product-wishlist-for-woocomerce | 4.21 | 55.62 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 92 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_apww_wishlist_counter_widget |
apw_wishtlist_achive |
widget_recent-posts |
apsw_license_notices_web |
theysaidso_admin_options |
db_upgraded |
apw_general_settings |
widget_apww_display_wishlist_widget |
apw_layout |
apww_license |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Product Wishlist for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,223 ▲462 | 15.25 ▲0.99 | 6.43 ▲4.83 | 41.85 ▼1.27 |
Dashboard /wp-admin | 2,508 ▲328 | 6.47 ▲0.71 | 115.99 ▲23.76 | 42.24 ▲3.64 |
Posts /wp-admin/edit.php | 2,306 ▲203 | 3.61 ▲1.60 | 56.59 ▲15.85 | 36.76 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,724 ▲179 | 22.63 ▼0.76 | 608.40 ▼73.18 | 37.31 ▼13.77 |
Media Library /wp-admin/upload.php | 1,442 ▲45 | 4.53 ▲0.33 | 88.56 ▼20.31 | 42.64 ▼3.90 |
Advanced Product Wishlist /wp-admin/admin.php?page=advanced-product-wishlist-for-woocomerce | 3,840 | 5.41 | 148.96 | 53.29 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 15 options
- apw_layout
- apww_license
- widget_theysaidso_widget
- apw_general_settings
- db_upgraded
- apw_social_share
- widget_recent-comments
- widget_apww_display_wishlist_widget
- theysaidso_admin_options
- apww_color_scheme
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/fields/class-predic-widget-select-field.php:6
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/fields/class-predic-widget-fa-iconpicker-field.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/class-predic-widget-factory.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/advanced-product-wishlist-for-woo/includes/class-advanced-product-wishlist-for-woocomerce-loader.php:74
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/examples/custom-admin-form-field.php:12
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/fields/class-predic-widget-image-uploader-field.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-product-wishlist-for-woo/includes/class-advanced-product-wishlist-for-notices.php:78
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/examples/oop-example.php:22
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/fields/class-predic-widget-color-field.php:6
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/fields/class-predic-widget-textarea-field.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=advanced-product-wishlist-for-woocomerce
- > Network (severe)
wp-content/plugins/advanced-product-wishlist-for-woo/admin/css/upgrade.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #1 (Plugins Options 0), #2 (Plugins Options 1), #3 (Plugins Options 2), #4 (Plugins Options 3), #5 (Plugins Options 4)
advanced-product-wishlist-for-woo/advanced-product-wishlist-for-woocomerce.php 77% from 13 tests
The primary PHP file in "Advanced Product Wishlist for Woocommerce" version 1.0.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-product-wishlist-for-woo.php" instead of "advanced-product-wishlist-for-woocomerce.php")
- 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
- Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "3.0.0")
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
There were no executable files found in this plugin8,592 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 1,501 | 2,635 | 4,453 |
SVG | 2 | 0 | 0 | 2,720 |
CSS | 11 | 61 | 73 | 947 |
JavaScript | 10 | 228 | 114 | 410 |
Sass | 3 | 12 | 0 | 62 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 20.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 164.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 158 | |
▷ Static methods | 6 | 3.80% |
▷ Public methods | 144 | 91.14% |
▷ Protected methods | 1 | 0.63% |
▷ Private methods | 13 | 8.23% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.22MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/owl-carousel/assets/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
screenshot-1.png | 23.63KB | 13.75KB | ▼ 41.83% |
screenshot-2.png | 55.66KB | 29.54KB | ▼ 46.92% |
screenshot-5.png | 72.09KB | 45.21KB | ▼ 37.29% |
screenshot-4.png | 27.14KB | 15.82KB | ▼ 41.68% |