Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.19MB] [CPU: ▼16.71ms] Passed 4 tests
A check of server-side resources used by WP e-Commerce Style Email
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.86 ▼7.79 |
Dashboard /wp-admin | 3.10 ▼0.21 | 28.44 ▼19.04 |
Posts /wp-admin/edit.php | 3.24 ▼0.12 | 34.18 ▼16.03 |
Add New Post /wp-admin/post-new.php | 5.48 ▼0.41 | 75.75 ▼23.98 |
Media Library /wp-admin/upload.php | 3.18 ▼0.04 | 31.34 ▼0.69 |
Store Email Style /wp-admin/options-general.php?page=store-email-style-options | 3.30 | 29.96 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP e-Commerce Style Email
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.29 ▼1.46 | 4.57 ▲2.54 | 45.56 ▼0.50 |
Dashboard /wp-admin | 2,213 ▲31 | 5.83 ▼0.01 | 100.56 ▼0.02 | 38.91 ▼2.45 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▼0.02 | 39.26 ▼3.41 | 34.99 ▼2.71 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 18.62 ▲0.19 | 628.91 ▼18.79 | 54.93 ▲4.81 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▲0.03 | 97.53 ▼5.60 | 42.30 ▼3.25 |
Store Email Style /wp-admin/options-general.php?page=store-email-style-options | 991 | 1.92 | 28.72 | 29.55 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=store-email-style-options
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function ecse_get_email_subject() in wp-content/plugins/wp-e-commerce-style-email/theme/wpsc-email_style.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-e-commerce-style-email/admin_functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wpsc_currency_display() in wp-content/plugins/wp-e-commerce-style-email/theme/wpsc-email_content_part-totals.php:15
- > PHP Fatal error
Uncaught Error: Class 'ECSE_purchase' not found in wp-content/plugins/wp-e-commerce-style-email/theme/wpsc-email_content_part-addresses.php:11
- > PHP Fatal error
Uncaught Error: Class 'ECSE_purchase_product' not found in wp-content/plugins/wp-e-commerce-style-email/theme/wpsc-email_content_part-product_row.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-e-commerce-style-email/options_page.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-e-commerce-style-email/wp-e-commerce-style-email.php:40
- > PHP Fatal error
Uncaught Error: Class 'ECSE_purchase' not found in wp-content/plugins/wp-e-commerce-style-email/theme/wpsc-email_content-receipt.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The admin/settings page steps you through the process.) image not found
wp-e-commerce-style-email/wp-e-commerce-style-email.php 92% from 13 tests
The main PHP file in "WP e-Commerce Style Email" ver. 0.6.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 256 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,415 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 374 | 517 | 1,283 |
CSS | 1 | 26 | 0 | 132 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 36.33 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 41 | 100.00% |
▷ Public methods | 39 | 95.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.88% |
Functions | 33 | |
▷ Named functions | 33 | 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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 59.63KB | 26.14KB | ▼ 56.16% |
images/macFFBgHack.png | 0.20KB | 0.09KB | ▼ 53.14% |