Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.45ms] Passed 4 tests
Server-side resources used by Multi Stripe by Keys
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.94 ▲0.47 |
Dashboard /wp-admin | 3.40 ▲0.06 | 54.73 ▼11.76 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 51.72 ▲3.02 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 95.76 ▲0.26 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 39.09 ▲1.25 |
General /wp-admin/admin.php?page=msbk_admin | 3.33 | 36.37 |
Vendors /wp-admin/admin.php?page=msbk_vendors | 3.32 | 34.24 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 10 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
list_products_selected |
vendors_ids |
number_vendor_option |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Multi Stripe by Keys
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.53 ▼1.02 | 1.91 ▲0.06 | 39.36 ▼7.13 |
Dashboard /wp-admin | 2,236 ▲48 | 5.13 ▲0.26 | 113.93 ▼7.70 | 42.38 ▼6.63 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.29 ▲0.29 | 38.53 ▼5.26 | 34.38 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 23.24 ▲0.09 | 592.94 ▼27.27 | 58.66 ▲10.56 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.35 ▲0.16 | 97.10 ▼7.93 | 43.01 ▼2.44 |
General /wp-admin/admin.php?page=msbk_admin | 879 | 1.93 | 27.81 | 29.70 |
Vendors /wp-admin/admin.php?page=msbk_vendors | 849 | 1.97 | 20.87 | 32.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- vendors_ids
- list_products_selected
- number_vendor_option
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=msbk_vendors
- > Error in wp-content/plugins/multistripe-by-keys/Includes/Api/Callbacks/VendorCallbacks.php+77
Uncaught Error: Call to undefined function Includes\Api\Callbacks\wc_get_products() in wp-content/plugins/multistripe-by-keys/Includes/Api/Callbacks/VendorCallbacks.php:77
Stack trace:
#0 wp-content/plugins/multistripe-by-keys/Includes/Api/Callbacks/VendorCallbacks.php(55): Includes\Api\Callbacks\VendorCallbacks->getListProducts()
#1 wp-admin/includes/template.php(1824): Includes\Api\Callbacks\VendorCallbacks->vendorSelectCallback()
#2 wp-admin/includes/template.php(1778): do_settings_fields()
#3 wp-content/plugins/multistripe-by-keys/templates/msbk-admin-vendors.php(19): do_settings_sections()
#4 wp-content/plugins/multistripe-by-keys/Includes/Api/Callbacks/AdminCallbacks.php(18): include_once('/var/www/wordpr...')
#5 wp-includes/class-wp-hook.php(310): Includes\Api\Callbacks\AdminCallbacks->adminVendors()
#6 wp-includes/class-wp-hook.php(334): WP_Hook->apply
SRP 50% 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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multistripe-by-keys/templates/msbk-admin-navbar.php:19
- > PHP Notice
Undefined index: page in wp-content/plugins/multistripe-by-keys/templates/msbk-admin-navbar.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/multistripe-by-keys/templates/msbk-admin-general.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/multistripe-by-keys/templates/msbk-admin-vendors.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: api, vendor, e-commerce, shop, payments...
multistripe-by-keys/multistripe-by-keys.php 92% from 13 tests
The entry point to "Multi Stripe by Keys" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,234 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 254 | 378 | 1,214 |
JSON | 1 | 0 | 0 | 13 |
JavaScript | 2 | 0 | 1 | 6 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of 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.43 |
Average class complexity | 9.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 10 | 12.99% |
▷ Public methods | 73 | 94.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.19% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin