Benchmarks
Plugin footprint 83% 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: ▲0.01MB] [CPU: ▼6.49ms] Passed 4 tests
Server-side resources used by Barion Payment Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.24 ▼2.80 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.26 ▼4.47 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.72 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.21 ▼15.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.70 ▼3.47 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 105 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Barion Payment Gateway for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.48 ▲0.10 | 1.68 ▼0.26 | 43.80 ▼13.44 |
Dashboard /wp-admin | 2,206 ▲21 | 4.87 ▼0.00 | 98.16 ▼13.47 | 38.94 ▼9.22 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.01 ▲0.01 | 40.25 ▲2.31 | 35.02 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.08 ▼0.05 | 677.73 ▲36.82 | 55.62 ▼0.39 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▲0.03 | 94.22 ▼11.32 | 40.60 ▼4.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BaseRequestModel' not found in wp-content/plugins/pay-via-barion-for-woocommerce/barion-library/library/models/payment/CaptureRequestModel.php:18
- > PHP Fatal error
Uncaught Error: Interface 'iBarionModel' not found in wp-content/plugins/pay-via-barion-for-woocommerce/barion-library/library/models/3dsecure/BillingAddressModel.php:18
- > PHP Fatal error
Uncaught Error: Interface 'iBarionModel' not found in wp-content/plugins/pay-via-barion-for-woocommerce/barion-library/library/models/common/BankCardModel.php:18
- > PHP Fatal error
Uncaught Error: Class 'BaseRequestModel' not found in wp-content/plugins/pay-via-barion-for-woocommerce/barion-library/library/models/refund/RefundRequestModel.php:18
- > PHP Fatal error
Uncaught Error: Class 'BaseRequestModel' not found in wp-content/plugins/pay-via-barion-for-woocommerce/barion-library/library/models/payment/PaymentStateRequestModel.php:18
- > PHP Fatal error
Uncaught Error: Class 'BaseResponseModel' not found in wp-content/plugins/pay-via-barion-for-woocommerce/barion-library/library/models/payment/CancelAuthorizationResponseModel.php:18
- > PHP Fatal error
Uncaught Error: Class 'BarionClient' not found in wp-content/plugins/pay-via-barion-for-woocommerce/barion-library/examples/example_start_delayedcapture_payment.php:15
- > PHP Fatal error
Uncaught Error: Interface 'iBarionModel' not found in wp-content/plugins/pay-via-barion-for-woocommerce/barion-library/library/models/common/ItemModel.php:18
- > PHP Fatal error
Uncaught Error: Class 'BaseRequestModel' not found in wp-content/plugins/pay-via-barion-for-woocommerce/barion-library/library/models/payment/PaymentQRRequestModel.php:18
- > PHP Fatal error
Uncaught Error: Class 'BaseRequestModel' not found in wp-content/plugins/pay-via-barion-for-woocommerce/barion-library/library/models/payment/FinishReservationRequestModel.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: woocommerce, gateway, payment, barion
pay-via-barion-for-woocommerce/index.php 85% from 13 tests
"Barion Payment Gateway for WooCommerce" version 3.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "3.0.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pay-via-barion-for-woocommerce.php" instead of "index.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/pay-via-barion-for-woocommerce/barion-library/library/ssl/gd_bundle-g2.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 63 | 563 | 1,063 | 2,859 |
Markdown | 9 | 465 | 0 | 2,484 |
PO File | 3 | 118 | 124 | 338 |
XML | 5 | 0 | 0 | 43 |
JSON | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 3.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 22 | 32.35% |
▷ Concrete classes | 46 | 67.65% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 2 | 1.36% |
▷ Public methods | 133 | 90.48% |
▷ Protected methods | 3 | 2.04% |
▷ Private methods | 11 | 7.48% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 97 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 97 | 100.00% |
▷ Public constants | 97 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 9.65KB | 3.40KB | ▼ 64.72% |
assets/banner-772x250.png | 16.12KB | 7.26KB | ▼ 54.96% |
assets/icon-256x256.png | 14.16KB | 5.08KB | ▼ 64.14% |
assets/barion-card-strip-intl__small.png | 3.36KB | 3.31KB | ▼ 1.42% |
assets/screenshot-1.png | 51.55KB | 23.83KB | ▼ 53.77% |