Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.44MB] [CPU: ▼7.05ms] Passed 4 tests
Analyzing server-side resources used by Sell Digital Downloads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.41 | 37.78 ▲0.28 |
Dashboard /wp-admin | 3.76 ▲0.43 | 49.80 ▲0.27 |
Posts /wp-admin/edit.php | 3.86 ▲0.47 | 50.69 ▲1.68 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.54 | 76.03 ▼29.96 |
Media Library /wp-admin/upload.php | 3.70 ▲0.44 | 35.50 ▲1.21 |
Settings /wp-admin/admin.php?page=isell_settings_page | 3.67 | 35.31 |
Orders /wp-admin/edit.php?post_type=isell-order | 3.70 | 35.73 |
Products /wp-admin/edit.php?post_type=isell-product | 3.70 | 36.95 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: no files
Database: no new tables, 8 new options
New WordPress options |
---|
isell_options |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
isell_version |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Sell Digital Downloads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.18 ▼1.20 | 1.62 ▼0.03 | 40.98 ▲3.32 |
Dashboard /wp-admin | 2,246 ▲60 | 5.84 ▲0.95 | 97.19 ▼5.47 | 40.03 ▼3.19 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 1.99 ▼0.03 | 38.30 ▼3.92 | 37.57 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,565 ▲51 | 23.22 ▲5.44 | 689.05 ▲65.43 | 45.35 ▼3.54 |
Media Library /wp-admin/upload.php | 1,431 ▲46 | 4.22 ▼0.10 | 95.98 ▼1.29 | 39.53 ▼3.83 |
Settings /wp-admin/admin.php?page=isell_settings_page | 1,229 | 2.19 | 23.22 | 30.95 |
Orders /wp-admin/edit.php?post_type=isell-order | 1,108 | 1.96 | 31.17 | 30.42 |
Products /wp-admin/edit.php?post_type=isell-product | 1,107 | 2.02 | 33.78 | 29.21 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- isell_version
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- isell_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 items
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sell-digital-downloads/views/notification_emails.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sell-digital-downloads/start.php:12
- > PHP Warning
Use of undefined constant ISELL_INVALID_TXN_ID - assumed 'ISELL_INVALID_TXN_ID' (this will throw an Error in a future version of PHP) in wp-content/plugins/sell-digital-downloads/views/isell_errors.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sell-digital-downloads/views/metabox_product_file.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sell-digital-downloads/views/metabox_product_info.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sell-digital-downloads/views/metabox_other_information.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sell-digital-downloads/views/metabox_order_buyer_info.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sell-digital-downloads/views/custom_edit_icons_style.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sell-digital-downloads/inc/new_feature_pointer.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sell-digital-downloads/views/metabox_order_product_info.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
sell-digital-downloads/start.php 92% from 13 tests
"Sell Digital Downloads" version 2.2.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sell-digital-downloads.php" instead of "start.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,694 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 502 | 312 | 2,344 |
PO File | 1 | 119 | 149 | 265 |
CSS | 2 | 13 | 11 | 85 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 66.33 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 4.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 59 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 55 | 93.22% |
▷ Protected methods | 2 | 3.39% |
▷ Private methods | 2 | 3.39% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 11 | 84.62% |
▷ Class constants | 2 | 15.38% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/product-32x32.png | 1.46KB | 1.46KB | 0.00% |
css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.09KB | 0.14KB | 0.00% |
images/product.png | 2.02KB | 1.67KB | ▼ 17.23% |
images/order-32x32.png | 1.36KB | 1.50KB | 0.00% |
images/order-18x18.png | 3.39KB | 0.96KB | ▼ 71.52% |