Benchmarks
Plugin footprint 83% 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: ▲0.97MB] [CPU: ▲8.54ms] Passed 4 tests
Server-side resources used by BBMSL Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.45 ▲0.98 | 51.20 ▲13.19 |
Dashboard /wp-admin | 4.29 ▲0.94 | 63.61 ▲4.72 |
Posts /wp-admin/edit.php | 4.41 ▲1.05 | 62.08 ▲11.96 |
Add New Post /wp-admin/post-new.php | 6.88 ▲0.98 | 95.33 ▲4.30 |
Media Library /wp-admin/upload.php | 4.22 ▲0.98 | 48.53 ▲14.84 |
BBMSL Settings /wp-admin/admin.php?page=bbmsl-settings-download-logs | 4.16 | 42.42 |
BBMSL Settings /wp-admin/admin.php?page=bbmsl-settings-reset-settings | 4.16 | 44.17 |
BBMSL Settings /wp-admin/admin.php?page=bbmsl-settings-server-info | 4.23 | 47.10 |
Server storage [IO: ▲14.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 683 new files
Database: no new tables, 34 new options
New WordPress options |
---|
bbmsl_gateway_refund |
theysaidso_admin_options |
bbmsl_status_on_create |
bbmsl_thank_you_page |
bbmsl_db_version |
bbmsl_display_name |
widget_recent-posts |
bbmsl_show_language_tools_enabled |
bbmsl_description_tc |
bbmsl_wc_order_columns |
... |
Browser metrics Passed 4 tests
A check of browser resources used by BBMSL Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲24 | 14.27 ▼0.50 | 1.67 ▼0.15 | 42.74 ▲3.49 |
Dashboard /wp-admin | 2,209 ▲32 | 5.56 ▼0.09 | 83.33 ▼3.77 | 50.07 ▲7.89 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.01 ▼0.02 | 36.42 ▼1.22 | 46.72 ▲9.82 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.36 ▼0.32 | 664.55 ▼37.56 | 68.24 ▲7.23 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.24 ▲0.10 | 98.53 ▲0.03 | 46.68 ▲2.20 |
BBMSL Settings /wp-admin/admin.php?page=bbmsl-settings-download-logs | 557 | 1.51 | 7.38 | 20.09 |
BBMSL Settings /wp-admin/admin.php?page=bbmsl-settings-reset-settings | 669 | 1.51 | 6.69 | 24.25 |
BBMSL Settings /wp-admin/admin.php?page=bbmsl-settings-server-info | 5,979 | 1.07 | 6.40 | 85.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 34 options in the database
- widget_recent-posts
- bbmsl_status_on_create
- bbmsl_email_footer_content
- bbmsl_gateway_methods
- bbmsl_status_on_success
- bbmsl_show_order_id
- can_compress_scripts
- db_upgraded
- bbmsl_thank_you_page
- bbmsl_show_language_tools_enabled
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bbmsl-settings-reset-settings
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 175× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS8' not found in wp-content/plugins/bbmsl-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/PKCS8.php:37
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\Common\\FiniteField\\Integer' not found in wp-content/plugins/bbmsl-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Math/PrimeField/Integer.php:24
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/bbmsl-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/secp192r1.php:21
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Base' not found in wp-content/plugins/bbmsl-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/BaseCurves/Binary.php:33
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\sect409r1' not found in wp-content/plugins/bbmsl-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistb409.php:16
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Binary' not found in wp-content/plugins/bbmsl-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/sect239k1.php:19
- > PHP Fatal error
Uncaught Error: Class 'BBMSL\\Bootstrap\\Constants' not found in wp-content/plugins/bbmsl-payment-gateway/views/panes/content-settings.php:24
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/bbmsl-payment-gateway/sdk/class-payment-gateway.php:29
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/bbmsl-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/brainpoolP224r1.php:19
- > PHP Fatal error
Trait 'phpseclib3\\System\\SSH\\Common\\Traits\\ReadBytes' not found in wp-content/plugins/bbmsl-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Agent.php on line 49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% 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 need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in bbmsl-payment-gateway/assets to your readme.txt
- License uri: Please fix this invalid url: ""
- Donate link: Please fix this invalid url: ""
bbmsl-payment-gateway/bbmsl.php 85% from 13 tests
The primary PHP file in "BBMSL Payment Gateway" version 1.0.21 is used by WordPress to initiate all plugin 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 ("bbmsl-payment-gateway.php" instead of "bbmsl.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected77,697 lines of code in 551 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 391 | 7,300 | 24,025 | 39,484 |
JavaScript | 101 | 1 | 464 | 24,482 |
PO File | 11 | 2,112 | 2,439 | 5,765 |
SVG | 15 | 0 | 0 | 3,811 |
TypeScript | 1 | 0 | 0 | 3,116 |
JSON | 5 | 0 | 0 | 431 |
CSS | 18 | 19 | 20 | 312 |
Markdown | 5 | 85 | 0 | 179 |
YAML | 2 | 3 | 2 | 95 |
XML | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 17.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 679.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 3 | |
Traits | 4 | |
Classes | 365 | |
▷ Abstract classes | 208 | 56.99% |
▷ Concrete classes | 157 | 43.01% |
▷ Final classes | 28 | 17.83% |
Methods | 1,760 | |
▷ Static methods | 742 | 42.16% |
▷ Public methods | 1,285 | 73.01% |
▷ Protected methods | 216 | 12.27% |
▷ Private methods | 259 | 14.72% |
Functions | 55 | |
▷ Named functions | 2 | 3.64% |
▷ Anonymous functions | 53 | 96.36% |
Constants | 493 | |
▷ Global constants | 7 | 1.42% |
▷ Class constants | 486 | 98.58% |
▷ Public constants | 477 | 98.15% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
47 PNG files occupy 3.52MB with 2.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/instruction/generate_key.png | 39.22KB | 16.67KB | ▼ 57.50% |
public/images/instruction/eshop_express_checkout_en.png | 86.33KB | 28.04KB | ▼ 67.52% |
public/images/instruction/gateway_express_checkout.png | 149.86KB | 44.50KB | ▼ 70.31% |
public/images/instruction/admin_refund_function_en.png | 80.41KB | 31.53KB | ▼ 60.79% |
public/images/instruction/gateway_show_button_background_color.png | 63.23KB | 18.93KB | ▼ 70.06% |