Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼12.32ms] Passed 4 tests
Server-side resources used by Wishlist and Compare for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.23 ▼4.57 |
Dashboard /wp-admin | 3.38 ▲0.04 | 44.10 ▼10.42 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 42.99 ▼8.70 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 81.48 ▼25.58 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.94 ▼0.22 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wishlist and Compare for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.34 | 1.75 ▼0.00 | 40.37 ▼4.33 |
Dashboard /wp-admin | 2,203 ▲12 | 5.90 ▲0.04 | 106.71 ▲6.67 | 38.79 ▼2.96 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.07 | 35.22 ▼6.12 | 35.16 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.20 ▲5.68 | 657.32 ▲12.22 | 61.71 ▲9.84 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.06 | 96.70 ▼10.23 | 42.19 ▼5.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 fix the following
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_id() on null in wp-content/plugins/wishlist-and-compare/templates/thwwac-addtocompare.php:14
- > PHP Fatal error
Uncaught Error: Class 'THWWC\\base\\THWWC_Base_Controller' not found in wp-content/plugins/wishlist-and-compare/inc/base/class-thwwc-enqueue.php:24
- > PHP Fatal error
Uncaught Error: Call to a member function get_type() on null in wp-content/plugins/wishlist-and-compare/templates/thwwac-addtowishlist-single.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wishlist-and-compare/templates/thwwac-wishlist.php:5
- > PHP Fatal error
Uncaught Error: Class 'THWWC\\base\\THWWC_Utils' not found in wp-content/plugins/wishlist-and-compare/templates/thwwac-comparepopup.php:11
- > PHP Fatal error
Uncaught Error: Class 'THWWC\\base\\THWWC_Base_Controller' not found in wp-content/plugins/wishlist-and-compare/inc/thpublic/class-thwwc-public-wishlist.php:25
- > PHP Fatal error
Uncaught Error: Class 'THWWC\\base\\THWWC_Base_Controller' not found in wp-content/plugins/wishlist-and-compare/inc/thpublic/class-thwwc-public-compare.php:25
- > PHP Fatal error
Uncaught Error: Class 'THWWC\\base\\THWWC_Base_Controller' not found in wp-content/plugins/wishlist-and-compare/inc/thpublic/class-thwwc-public-wishlist-counter.php:24
- > PHP Fatal error
Uncaught Error: Class 'THWWC\\base\\THWWC_Base_Controller' not found in wp-content/plugins/wishlist-and-compare/inc/thpublic/class-thwwc-public-wishlist-page.php:27
- > PHP Fatal error
Uncaught Error: Class 'THWWC\\base\\THWWC_Utils' not found in wp-content/plugins/wishlist-and-compare/templates/thwwac-wishlist-popups.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #13 (Button above thumbnail.)
wishlist-and-compare/wishlist-and-compare.php 92% from 13 tests
The primary PHP file in "Wishlist and Compare for WooCommerce" version 1.3.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.2" instead of "6.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
Everything looks great! No dangerous files found in this plugin9,026 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 570 | 1,158 | 4,942 |
CSS | 5 | 23 | 34 | 1,913 |
JavaScript | 9 | 87 | 51 | 1,577 |
SVG | 27 | 0 | 11 | 576 |
JSON | 2 | 0 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis 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.67 |
Average class complexity | 55.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 236.00 |
Average method complexity | 7.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 1 | 4.76% |
Methods | 187 | |
▷ Static methods | 30 | 16.04% |
▷ Public methods | 149 | 79.68% |
▷ Protected methods | 1 | 0.53% |
▷ Private methods | 37 | 19.79% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 16 | |
▷ Global constants | 7 | 43.75% |
▷ Class constants | 9 | 56.25% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/libs/icons/review-left.png | 8.22KB | 4.15KB | ▼ 49.47% |