Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲3.15MB] [CPU: ▲24.44ms] 75% from 4 tests
This is a short check of server-side resources used by Sell Media
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 500.07ms on /wp-admin/post-new.php?post_type=sell_media_item)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.31 ▲2.85 | 72.91 ▲32.84 |
Dashboard /wp-admin | 6.56 ▲3.25 | 111.46 ▲64.07 |
Posts /wp-admin/edit.php | 6.61 ▲3.25 | 68.27 ▲19.40 |
Add New Post /wp-admin/post-new.php | 9.53 ▲3.64 | 109.32 ▲14.46 |
Media Library /wp-admin/upload.php | 6.50 ▲3.26 | 67.52 ▲31.05 |
Collections /wp-admin/edit-tags.php?taxonomy=collection&post_type=sell_media_item | 6.52 | 57.59 |
Upgrades /wp-admin/edit.php?post_type=sell_media_item&page=sell_media_upgrades | 6.29 | 51.83 |
Add New /wp-admin/post-new.php?post_type=sell_media_item | 6.73 | 500.07 |
Licenses /wp-admin/edit-tags.php?taxonomy=licenses&post_type=sell_media_item | 6.47 | 65.47 |
Keywords /wp-admin/edit-tags.php?taxonomy=keywords&post_type=attachment | 6.47 | 58.06 |
Reports /wp-admin/edit.php?post_type=sell_media_item&page=sell_media_reports | 6.48 | 94.49 |
All Products /wp-admin/edit.php?post_type=sell_media_item | 6.56 | 64.08 |
Payments /wp-admin/edit.php?post_type=sell_media_payment | 6.55 | 54.88 |
Pricing /wp-admin/edit.php?post_type=sell_media_item&page=pricelists | 6.52 | 57.56 |
Settings /wp-admin/edit.php?post_type=sell_media_item&page=sell_media_plugin_options | 6.46 | 57.32 |
Server storage [IO: ▲3.26MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification found: 1 file (0.63KB) outside of "wp-content/plugins/sell-media/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 417 new files
Database: no new tables, 17 new options
New WordPress options |
---|
can_compress_scripts |
widget_sell_media_similar_widget |
widget_sell_media_image_exif_widget |
widget_recent-comments |
price-group_children |
sell_media_keywords_migrated |
widget_sell_media_keywords_widget |
sell_media_default_pricelists_saved_price-group |
widget_sell_media_recent_widget |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Sell Media
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,012 ▲251 | 13.56 ▼0.80 | 13.59 ▲11.97 | 47.19 ▲6.48 |
Dashboard /wp-admin | 2,259 ▲79 | 5.66 ▲0.01 | 93.53 ▲6.72 | 42.94 ▼0.98 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.05 ▲0.11 | 35.45 ▼0.18 | 30.27 ▼7.19 |
Add New Post /wp-admin/post-new.php | 6,469 ▲4,943 | 28.94 ▲5.58 | 927.22 ▲264.37 | 39.45 ▼13.77 |
Media Library /wp-admin/upload.php | 1,477 ▲74 | 4.17 ▼0.01 | 97.60 ▼9.41 | 44.10 ▼4.58 |
Collections /wp-admin/edit-tags.php?taxonomy=collection&post_type=sell_media_item | 1,588 | 3.27 | 48.37 | 31.88 |
Upgrades /wp-admin/edit.php?post_type=sell_media_item&page=sell_media_upgrades | 1,250 | 10.16 | 548.37 | 111.01 |
Add New /wp-admin/post-new.php?post_type=sell_media_item | 2,951 | 8.01 | 223.92 | 54.26 |
Licenses /wp-admin/edit-tags.php?taxonomy=licenses&post_type=sell_media_item | 1,421 | 1.93 | 29.64 | 32.85 |
Keywords /wp-admin/edit-tags.php?taxonomy=keywords&post_type=attachment | 1,328 | 2.24 | 27.54 | 30.13 |
Reports /wp-admin/edit.php?post_type=sell_media_item&page=sell_media_reports | 1,572 | 6.74 | 62.96 | 60.94 |
All Products /wp-admin/edit.php?post_type=sell_media_item | 1,234 | 2.34 | 42.85 | 31.46 |
Payments /wp-admin/edit.php?post_type=sell_media_payment | 1,132 | 1.97 | 34.80 | 30.42 |
Pricing /wp-admin/edit.php?post_type=sell_media_item&page=pricelists | 1,093 | 2.60 | 44.96 | 25.20 |
Settings /wp-admin/edit.php?post_type=sell_media_item&page=sell_media_plugin_options | 1,766 | 2.48 | 42.95 | 38.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 17 options in the database
- sell_media_options
- widget_recent-posts
- widget_sell_media_image_exif_widget
- widget_sell_media_search_widget
- theysaidso_admin_options
- widget_recent-comments
- price-group_children
- widget_sell_media_recent_widget
- can_compress_scripts
- widget_theysaidso_widget
- ...
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/sell-media/inc/widgets/sell-media-search.php
- 129× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sell-media/inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/tests/DOMNodeComparatorTest.php:20
- > PHP Fatal error
Uncaught Error: Interface 'PayPalHttp\\Serializer' not found in wp-content/plugins/sell-media/inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/Serializer/Form.php:8
- > PHP Fatal error
Uncaught Error: Interface 'PayPalHttp\\Serializer' not found in wp-content/plugins/sell-media/inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/Serializer/Text.php:14
- > PHP Fatal error
Uncaught Error: Class 'PayPalHttp\\HttpRequest' not found in wp-content/plugins/sell-media/inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Orders/OrdersCaptureRequest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sell-media/inc/gateways/php-paypal-sdk/vendor/sebastian/diff/tests/DifferTest.php:27
- > PHP Fatal error
Uncaught Error: Interface 'SebastianBergmann\\Diff\\LCS\\LongestCommonSubsequence' not found in wp-content/plugins/sell-media/inc/gateways/php-paypal-sdk/vendor/sebastian/diff/src/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sell-media/inc/settings/settings.php:58
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/sell-media/inc/gateways/php-paypal-sdk/vendor/symfony/yaml/Exception/ParseException.php:19
- > PHP Fatal error
Uncaught Error: Interface 'SebastianBergmann\\RecursionContext\\Exception' not found in wp-content/plugins/sell-media/inc/gateways/php-paypal-sdk/vendor/sebastian/recursion-context/src/InvalidArgumentException.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sell-media/inc/widgets/sell-media-recent.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% 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:
- Tags: There are too many tags (13 tag instead of maximum 10)
sell-media/sell-media.php 77% from 13 tests
"Sell Media" version 2.5.8.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected52,619 lines of code in 377 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 265 | 5,139 | 9,172 | 25,254 |
PO File | 9 | 6,471 | 10,294 | 15,205 |
CSS | 9 | 354 | 131 | 3,396 |
JavaScript | 17 | 448 | 390 | 2,780 |
Sass | 2 | 335 | 3 | 2,323 |
JSON | 18 | 6 | 0 | 2,122 |
Markdown | 20 | 414 | 0 | 859 |
XML | 11 | 13 | 0 | 218 |
Ant | 9 | 33 | 0 | 205 |
YAML | 10 | 47 | 1 | 164 |
SVG | 6 | 0 | 6 | 91 |
Ruby | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 129)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 11.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 129.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 12 | |
Traits | 1 | |
Classes | 204 | |
▷ Abstract classes | 3 | 1.47% |
▷ Concrete classes | 201 | 98.53% |
▷ Final classes | 8 | 3.98% |
Methods | 1,059 | |
▷ Static methods | 97 | 9.16% |
▷ Public methods | 854 | 80.64% |
▷ Protected methods | 86 | 8.12% |
▷ Private methods | 119 | 11.24% |
Functions | 299 | |
▷ Named functions | 280 | 93.65% |
▷ Anonymous functions | 19 | 6.35% |
Constants | 93 | |
▷ Global constants | 8 | 8.60% |
▷ Class constants | 85 | 91.40% |
▷ Public constants | 85 | 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
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/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
images/cart.png | 0.96KB | 0.12KB | ▼ 87.88% |
images/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |