Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.22ms] Passed 4 tests
An overview of server-side resources used by Woocommerce simple wishlist
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.49 ▲1.71 |
Dashboard /wp-admin | 3.41 ▲0.07 | 48.77 ▼16.16 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 53.60 ▲2.81 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 94.81 ▼6.82 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 42.32 ▲0.41 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
wc-qs-wishlist_ver |
qs-wishlist_wishlist_page_created |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woocommerce simple wishlist
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.26 ▼0.73 | 4.76 ▲3.01 | 38.66 ▼3.36 |
Dashboard /wp-admin | 2,221 ▲15 | 4.84 ▼1.06 | 111.84 ▲11.71 | 37.65 ▼3.07 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.99 ▼0.01 | 36.11 ▼6.65 | 33.72 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.34 ▲0.13 | 619.84 ▼68.62 | 58.23 ▼13.19 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.28 ▼0.01 | 106.58 ▼14.64 | 47.06 ▼3.32 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- qs-wishlist_wishlist_page_created
- can_compress_scripts
- db_upgraded
- wc-qs-wishlist_ver
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% 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 50% 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
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function qs_show_wishlist() in wp-content/plugins/simple-woocommerce-wishlist/templates/wishlist-page.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function qs_ws_is_on_wishlist() in wp-content/plugins/simple-woocommerce-wishlist/templates/wishlist-add-button.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-woocommerce-wishlist/includes/shortcodes/wishlist-page.php:7
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (The wishlist cart page.. generatet by a shortcode [qs_wishlist] can be overriden by template files), #2 (The add to wishlist button - can be overriden in template files), #3 (The add/remove to wishlist button on single product page), #4 (The settings page)
simple-woocommerce-wishlist/woocommerce-qs-wishlist.php 85% from 13 tests
The main file in "Woocommerce simple wishlist" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-woocommerce-wishlist.php" instead of "woocommerce-qs-wishlist.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,037 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 233 | 446 | 722 |
JavaScript | 2 | 50 | 6 | 165 |
Sass | 1 | 7 | 1 | 146 |
CSS | 2 | 0 | 0 | 2 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.75 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 12 | 29.27% |
▷ Public methods | 34 | 82.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.07% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin