Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-e-commerce-whish-list/inc/functions.php+227
Methods with the same name as their class will not be constructors in a future version of PHP; wpecwlWidget has a deprecated constructor
Server metrics [RAM: ▼1.77MB] [CPU: ▼50.28ms] Passed 4 tests
A check of server-side resources used by WP eCommerce Wishlist
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 6.38 ▼31.81 |
Dashboard /wp-admin | 2.24 ▼1.06 | 8.02 ▼40.87 |
Posts /wp-admin/edit.php | 2.25 ▼1.11 | 7.05 ▼38.70 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.65 | 7.99 ▼89.75 |
Media Library /wp-admin/upload.php | 2.25 ▼0.98 | 7.93 ▼23.69 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wpsc_compatibility |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_wpecwlwidget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP eCommerce Wishlist: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.78 ▲0.38 | 2.19 ▲0.37 | 42.82 ▲1.39 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▼0.04 | 97.76 ▼5.86 | 40.32 ▼3.56 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.06 | 36.87 ▼6.80 | 32.61 ▼7.17 |
Add New Post /wp-admin/post-new.php | 1,536 ▲19 | 23.01 ▲5.52 | 596.98 ▲0.30 | 56.37 ▲3.82 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.23 ▼0.02 | 96.33 ▼0.19 | 44.04 ▲0.32 |
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-e-commerce-whish-list/inc/functions.php+227
Methods with the same name as their class will not be constructors in a future version of PHP; wpecwlWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_wpecwlwidget
- wpsc_compatibility
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-e-commerce-whish-list/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: wishlist, wish list, wp ecommerce, e-commerce, add to wishlist
wp-e-commerce-whish-list/index.php 85% from 13 tests
The principal PHP file in "WP eCommerce Wishlist" v. 1.1.6 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-e-commerce-whish-list.php" instead of "index.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected486 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 99 | 28 | 270 |
PO File | 3 | 42 | 42 | 133 |
CSS | 1 | 21 | 2 | 83 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 12 | |
▷ Named functions | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/notfound.png | 1.37KB | 0.33KB | ▼ 75.93% |
images/heart-icon.png | 1.94KB | 1.26KB | ▼ 35.05% |
images/remove.png | 0.91KB | 0.69KB | ▼ 23.60% |