Benchmarks
Plugin footprint 65% 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: ▲1.00MB] [CPU: ▲8.75ms] Passed 4 tests
Analyzing server-side resources used by Sell Downloads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.50 ▲1.03 | 49.63 ▲8.09 |
Dashboard /wp-admin | 4.33 ▲1.02 | 59.74 ▲12.92 |
Posts /wp-admin/edit.php | 4.37 ▲1.02 | 54.00 ▲0.33 |
Add New Post /wp-admin/post-new.php | 6.87 ▲0.98 | 104.17 ▲14.45 |
Media Library /wp-admin/upload.php | 4.19 ▲0.96 | 48.91 ▲13.67 |
Products for Sale /wp-admin/edit.php?post_type=sd_product | 4.29 | 43.37 |
Sales Report /wp-admin/admin.php?page=sell-downloads-menu-reports | 4.20 | 47.19 |
Set File Types /wp-admin/edit-tags.php?taxonomy=sd_type | 4.17 | 40.10 |
Products Templates /wp-admin/admin.php?page=sell-downloads-menu-templates | 4.20 | 48.75 |
Sell Downloads /wp-admin/options-general.php?page=sell-downloads-menu-settings1 | 4.20 | 51.80 |
Sell Downloads Settings /wp-admin/admin.php?page=sell-downloads-menu-settings | 4.20 | 53.16 |
Server storage [IO: ▲0.58MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 80 new files
Database: 4 new tables, 10 new options
New tables |
---|
wp_sddb_reviews |
wp_msdb_shopping_cart |
wp_msdb_purchase |
wp_msdb_post_data |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
sd_has_been_configured |
installed_sell-downloads |
widget_theysaidso_widget |
sd_social_buttons |
can_compress_scripts |
sell_downloads_version_number |
Browser metrics Passed 4 tests
Checking browser requirements for Sell Downloads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲202 | 14.21 ▼0.02 | 15.16 ▲13.14 | 43.48 ▲2.43 |
Dashboard /wp-admin | 2,253 ▲68 | 5.23 ▼0.64 | 103.04 ▼0.62 | 69.69 ▲28.44 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.04 ▼0.01 | 36.62 ▼4.43 | 34.55 ▼2.37 |
Add New Post /wp-admin/post-new.php | 6,468 ▲4,926 | 20.62 ▲2.49 | 969.49 ▲357.65 | 37.77 ▼11.38 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 4.18 ▼0.12 | 95.25 ▲0.44 | 68.63 ▲24.75 |
Products for Sale /wp-admin/edit.php?post_type=sd_product | 1,139 | 1.95 | 33.25 | 34.24 |
Sales Report /wp-admin/admin.php?page=sell-downloads-menu-reports | 1,108 | 3.13 | 39.57 | 75.57 |
Set File Types /wp-admin/edit-tags.php?taxonomy=sd_type | 1,282 | 2.13 | 27.20 | 33.53 |
Products Templates /wp-admin/admin.php?page=sell-downloads-menu-templates | 3,600 | 6.82 | 122.32 | 99.01 |
Sell Downloads /wp-admin/options-general.php?page=sell-downloads-menu-settings1 | 3,253 | 3.14 | 39.25 | 93.41 |
Sell Downloads Settings /wp-admin/admin.php?page=sell-downloads-menu-settings | 3,250 | 3.05 | 42.63 | 85.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 4 tables
- wp_sddb_reviews
- wp_msdb_shopping_cart
- wp_msdb_post_data
- wp_msdb_purchase
- This plugin did not uninstall successfully, leaving 10 options in the database
- sd_social_buttons
- widget_theysaidso_widget
- installed_sell-downloads
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- sell_downloads_version_number
- sd_has_been_configured
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sell-downloads/sd-core/sd-product.php
- > /wp-content/plugins/sell-downloads/sd-core/sd-submit.php
- > /wp-content/plugins/sell-downloads/sd-core/sd-ipn.php
- > /wp-content/plugins/sell-downloads/sd-core/sd-review.php
- > /wp-content/plugins/sell-downloads/sd-core/sd-functions.php
- > /wp-content/plugins/sell-downloads/sd-core/sd-templates.php
- > /wp-content/plugins/sell-downloads/sd-page-builder/beaverbuilder/sd/includes/frontend.php
- > /wp-content/plugins/sell-downloads/sd-core/tpleng.class.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sell-downloads/banner.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/sell-downloads/sd-page-builder/siteorigin/siteorigin-sd-product/tpl/siteorigin-sd-product-shortcode.php:2
- > PHP Fatal error
Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/sell-downloads/sd-page-builder/beaverbuilder/sd/sd.pb.php:2
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/sell-downloads/sd-page-builder/siteorigin/siteorigin-sd/siteorigin-sd.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sell-downloads/feedback/cp-feedback.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sell-downloads/sd-core/sd-wizard.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sell-downloads/sd-page-builder/siteorigin/siteorigin-sd/tpl/siteorigin-sd-shortcode.php:18
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/sell-downloads/sd-page-builder/siteorigin/siteorigin-sd-product/siteorigin-sd-product.php:8
- > PHP Fatal error
Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/sell-downloads/sd-page-builder/beaverbuilder/sd/sd.pb.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sell-downloads/sd-addons/affiliateroyale.addon.php:9
- > 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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 39 tag instead of maximum 10
sell-downloads/sell-downloads.php 92% from 13 tests
Analyzing the main PHP file in "Sell Downloads" version 1.1.1
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 227 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected8,946 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 753 | 453 | 5,336 |
PO File | 2 | 624 | 744 | 1,398 |
JavaScript | 7 | 110 | 34 | 952 |
CSS | 9 | 120 | 30 | 859 |
HTML | 7 | 27 | 26 | 381 |
INI | 3 | 0 | 0 | 18 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 154)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 371.00 |
Average method complexity | 5.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 154.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 16 | 12.80% |
▷ Public methods | 112 | 89.60% |
▷ Protected methods | 4 | 3.20% |
▷ Private methods | 9 | 7.20% |
Functions | 30 | |
▷ Named functions | 28 | 93.33% |
▷ Anonymous functions | 2 | 6.67% |
Constants | 39 | |
▷ Global constants | 39 | 100.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
15 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
paypal_buttons/shopping_cart/button_g.png | 1.26KB | 0.86KB | ▼ 31.76% |
sd-layouts/02/star_on.png | 0.42KB | 0.29KB | ▼ 28.94% |
sd-layouts/01/corner.png | 0.26KB | 0.15KB | ▼ 40.84% |
sd-layouts/02/star_off.png | 0.46KB | 0.33KB | ▼ 28.21% |
sd-layouts/01/star_off.png | 0.46KB | 0.33KB | ▼ 28.21% |