Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-smart-wishlist/install.php+176
Methods with the same name as their class will not be constructors in a future version of PHP; WishlistWidget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼49.92ms] Passed 4 tests
This is a short check of server-side resources used by WP Smart Wishlist
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 9.69 ▼32.31 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.04 ▼42.12 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 7.14 ▼40.90 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.77 ▼84.34 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.79 ▼30.89 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_wishlistwidget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Smart Wishlist
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.56 ▼0.87 | 2.41 ▲0.04 | 42.86 ▼0.20 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲0.12 | 97.15 ▼5.17 | 38.49 ▼5.97 |
Posts /wp-admin/edit.php | 2,068 ▼21 | 2.01 ▼0.01 | 34.73 ▼0.74 | 34.51 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,514 ▼7 | 17.70 ▼5.51 | 678.68 ▼33.82 | 60.86 ▲0.62 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▲0.03 | 98.74 ▼6.22 | 41.37 ▼3.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-smart-wishlist/install.php+176
Methods with the same name as their class will not be constructors in a future version of PHP; WishlistWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_wishlistwidget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-wishlist/install.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png)
wp-smart-wishlist/install.php 92% from 13 tests
The main PHP file in "WP Smart Wishlist" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-smart-wishlist.php" instead of "install.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin169 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 38 | 24 | 157 |
CSS | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
5 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 13.25KB | 6.42KB | ▼ 51.57% |
banner-772x250.png | 183.66KB | 89.45KB | ▼ 51.30% |
screenshot-2.png | 22.43KB | 8.37KB | ▼ 62.70% |
image/notfound.png | 1.37KB | 0.33KB | ▼ 75.93% |
image/remove.png | 0.91KB | 0.69KB | ▼ 23.60% |