Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.72ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Wishlist
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.51 ▼3.86 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.90 ▼9.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.08 ▼2.48 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.34 ▼6.75 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.58 ▼1.66 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woocommerce Wishlist
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.17 ▼0.12 | 2.20 ▲0.50 | 44.87 ▲1.42 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.06 | 83.13 ▼19.92 | 35.72 ▼8.71 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.01 ▼0.01 | 35.92 ▼0.63 | 33.46 ▼4.57 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.03 ▼0.19 | 777.23 ▲83.70 | 61.64 ▼4.61 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▼0.04 | 102.36 ▲1.39 | 44.74 ▲1.53 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function AMWL_get_option() in wp-content/plugins/am-wishlist/includes/public/inc/amwl-shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/am-wishlist/includes/admin/inc/amwl-add-to-wishlist.php:115
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/am-wishlist/includes/amwl-activation.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/am-wishlist/includes/public/inc/amwl-functions.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/am-wishlist/includes/admin/inc/amwl-wishlist-page-opt.php:179
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/am-wishlist/includes/admin/inc/amwl-general.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/am-wishlist/includes/admin/inc/functions/amwl-functions.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: "'';"
am-wishlist/amwl-woocommerce-wishlist.php 92% from 13 tests
The entry point to "Woocommerce Wishlist" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("am-wishlist.php" instead of "amwl-woocommerce-wishlist.php")
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
Everything looks great! No dangerous files found in this plugin1,890 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 473 | 385 | 1,546 |
JavaScript | 2 | 51 | 93 | 274 |
CSS | 2 | 9 | 16 | 70 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 26 | 89.66% |
▷ Anonymous functions | 3 | 10.34% |
Constants | 16 | |
▷ Global constants | 16 | 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
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/image/pinterest.png | 0.70KB | 0.65KB | ▼ 7.36% |
includes/admin/image/whatsapp.png | 0.67KB | 0.61KB | ▼ 8.80% |
includes/admin/image/gmail.png | 0.73KB | 0.63KB | ▼ 12.99% |
includes/admin/image/twitter.png | 0.48KB | 0.43KB | ▼ 11.49% |
includes/admin/image/copy.png | 0.39KB | 0.29KB | ▼ 26.50% |