Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.71MB] [CPU: ▲12.24ms] Passed 4 tests
An overview of server-side resources used by Music Store - WordPress eCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.19 ▲1.73 | 54.23 ▲9.37 |
Dashboard /wp-admin | 5.02 ▲1.68 | 65.82 ▲5.18 |
Posts /wp-admin/edit.php | 5.07 ▲1.71 | 69.73 ▲22.34 |
Add New Post /wp-admin/post-new.php | 7.63 ▲1.74 | 107.10 ▲12.07 |
Media Library /wp-admin/upload.php | 4.96 ▲1.73 | 59.73 ▲25.30 |
Online Help /wp-admin/admin.php?page=music-store-menu-help | 4.93 | 54.80 |
Store Settings /wp-admin/admin.php?page=music-store-menu-settings | 5.00 | 66.41 |
Sales Report /wp-admin/admin.php?page=music-store-menu-reports | 5.00 | 56.03 |
Set Artists /wp-admin/edit-tags.php?taxonomy=ms_artist | 4.95 | 52.51 |
Songs for Sale /wp-admin/edit.php?post_type=ms_song | 5.00 | 55.16 |
Set Genres /wp-admin/edit-tags.php?taxonomy=ms_genre | 4.95 | 53.67 |
Set Albums /wp-admin/edit-tags.php?taxonomy=ms_album | 4.95 | 49.33 |
Music Store /wp-admin/options-general.php?page=music-store-menu-settings1 | 5.00 | 380.54 |
Songs Importer /wp-admin/admin.php?page=music-store-menu-importer | 5.00 | 55.39 |
Products Templates /wp-admin/admin.php?page=music-store-menu-templates | 4.98 | 59.58 |
Server storage [IO: ▲6.10MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,245 new files
Database: 3 new tables, 14 new options
New tables |
---|
wp_msdb_post_data |
wp_msdb_reviews |
wp_msdb_purchase |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_msloginformwidget |
widget_theysaidso_widget |
db_upgraded |
ms_has_been_configured |
music_store_version_number |
installed_music-store |
widget_msproductlistwidget |
ms_social_buttons |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Music Store - WordPress eCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,010 ▲238 | 14.13 ▼0.22 | 15.87 ▲13.95 | 35.52 ▼8.73 |
Dashboard /wp-admin | 2,275 ▲98 | 5.83 ▲0.25 | 98.05 ▼3.50 | 89.11 ▲46.64 |
Posts /wp-admin/edit.php | 2,161 ▲61 | 1.97 ▼0.05 | 39.48 ▲2.03 | 33.96 ▲1.31 |
Add New Post /wp-admin/post-new.php | 6,261 ▲4,735 | 18.91 ▼4.00 | 965.66 ▲290.99 | 39.09 ▼15.34 |
Media Library /wp-admin/upload.php | 1,452 ▲49 | 4.20 ▲0.06 | 92.90 ▼7.58 | 78.90 ▲36.95 |
Online Help /wp-admin/admin.php?page=music-store-menu-help | 3,588 | 5.36 | 110.46 | 143.18 |
Store Settings /wp-admin/admin.php?page=music-store-menu-settings | 1,138 | 3.00 | 42.26 | 68.33 |
Sales Report /wp-admin/admin.php?page=music-store-menu-reports | 1,932 | 3.04 | 43.17 | 60.12 |
Set Artists /wp-admin/edit-tags.php?taxonomy=ms_artist | 1,304 | 2.12 | 27.89 | 32.17 |
Songs for Sale /wp-admin/edit.php?post_type=ms_song | 1,187 | 1.93 | 35.64 | 29.86 |
Set Genres /wp-admin/edit-tags.php?taxonomy=ms_genre | 1,332 | 2.12 | 26.61 | 31.70 |
Set Albums /wp-admin/edit-tags.php?taxonomy=ms_album | 1,307 | 2.12 | 30.04 | 27.55 |
Music Store /wp-admin/options-general.php?page=music-store-menu-settings1 | 2,922 | 3.01 | 43.57 | 97.08 |
Songs Importer /wp-admin/admin.php?page=music-store-menu-importer | 1,051 | 2.98 | 38.43 | 54.81 |
Products Templates /wp-admin/admin.php?page=music-store-menu-templates | 4,044 | 6.82 | 132.96 | 89.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_msdb_reviews
- wp_msdb_purchase
- wp_msdb_post_data
- The uninstall procedure has failed, leaving 14 options in the database
- ms_has_been_configured
- widget_recent-comments
- can_compress_scripts
- widget_msproductwidget
- widget_msproductlistwidget
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- installed_music-store
- widget_msloginformwidget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 34× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/music-store/ms-addons/mollie-addon/vendor/mollie/mollie-api-php/examples/01-new-payment.php
- > /wp-content/plugins/music-store/ms-core/ms-download.php
- > /wp-content/plugins/music-store/ms-core/ms-widgets.php
- > /wp-content/plugins/music-store/ms-addons/mollie-addon/vendor/mollie/mollie-api-php/examples/11-new-customer.php
- > /wp-content/plugins/music-store/ms-addons/mollie-addon/vendor/mollie/mollie-api-php/examples/12-new-customer-payment.php
- > /wp-content/plugins/music-store/ms-addons/mollie-addon/vendor/mollie/mollie-api-php/examples/16-recurring-subscription.php
- > /wp-content/plugins/music-store/ms-page-builder/beaverbuilder/ms/includes/frontend.php
- > /wp-content/plugins/music-store/ms-core/ms-song.php
- > /wp-content/plugins/music-store/ms-addons/mollie-addon/vendor/mollie/mollie-api-php/examples/13-customer-payments-history.php
- > /wp-content/plugins/music-store/ms-addons/mollie-addon/vendor/mollie/mollie-api-php/examples/09-oauth-list-settlements.php
- 165× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Resources\\BaseResource' not found in wp-content/plugins/music-store/ms-addons/mollie-addon/vendor/mollie/mollie-api-php/src/Resources/Refund.php:8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/music-store/ms-addons/mollie-addon/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Square\\Apis\\BaseApi' not found in wp-content/plugins/music-store/ms-addons/square-addon/vendor/square/square/src/Apis/LocationsApi.php:19
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Resources\\CursorCollection' not found in wp-content/plugins/music-store/ms-addons/mollie-addon/vendor/mollie/mollie-api-php/src/Resources/MandateCollection.php:7
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/music-store/ms-page-builder/siteorigin/siteorigin-ms-product/siteorigin-ms-product.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/music-store/ms-page-builder/siteorigin/siteorigin-ms-product-list/tpl/siteorigin-ms-products-list-shortcode.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/music-store/ms-addons/mollie.addon.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/music-store/ms-addons/mollie-addon/vendor/guzzlehttp/psr7/src/DroppingStream.php:11
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Resources\\CursorCollection' not found in wp-content/plugins/music-store/ms-addons/mollie-addon/vendor/mollie/mollie-api-php/src/Resources/SettlementCollection.php:7
- > PHP Fatal error
Uncaught Error: Class 'Square\\Apis\\BaseApi' not found in wp-content/plugins/music-store/ms-addons/square-addon/vendor/square/square/src/Apis/OrdersApi.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 15 tag instead of maximum 10
music-store/music-store.php 92% from 13 tests
The primary PHP file in "Music Store - WordPress eCommerce" version 1.1.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 191 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected108,938 lines of code in 1,159 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,079 | 20,184 | 75,526 | 92,541 |
PO File | 6 | 3,047 | 4,467 | 7,235 |
Markdown | 14 | 1,142 | 0 | 3,513 |
JavaScript | 8 | 165 | 81 | 1,762 |
JSON | 15 | 0 | 0 | 1,367 |
CSS | 11 | 170 | 40 | 1,243 |
XML | 5 | 34 | 0 | 453 |
HTML | 7 | 1 | 30 | 412 |
reStructuredText | 1 | 158 | 139 | 218 |
YAML | 4 | 17 | 1 | 153 |
INI | 3 | 0 | 0 | 18 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
SVG | 4 | 0 | 0 | 4 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 13.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 629.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 21 | |
Traits | 2 | |
Classes | 990 | |
▷ Abstract classes | 4 | 0.40% |
▷ Concrete classes | 986 | 99.60% |
▷ Final classes | 23 | 2.33% |
Methods | 7,544 | |
▷ Static methods | 274 | 3.63% |
▷ Public methods | 7,294 | 96.69% |
▷ Protected methods | 64 | 0.85% |
▷ Private methods | 186 | 2.47% |
Functions | 851 | |
▷ Named functions | 123 | 14.45% |
▷ Anonymous functions | 728 | 85.55% |
Constants | 1,522 | |
▷ Global constants | 80 | 5.26% |
▷ Class constants | 1,442 | 94.74% |
▷ Public constants | 1,441 | 99.93% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ms-core/images/music-store-menu-icon.png | 0.21KB | 0.10KB | ▼ 53.92% |
ms-layouts/02/star_off.png | 0.46KB | 0.33KB | ▼ 28.21% |
ms-layouts/03/star_on.png | 0.42KB | 0.29KB | ▼ 28.94% |
ms-layouts/02/star_on.png | 0.42KB | 0.29KB | ▼ 28.94% |
paypal_buttons/shopping_cart/button_g.png | 0.48KB | 0.36KB | ▼ 25.96% |