Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.74ms] Passed 4 tests
A check of server-side resources used by ЮKassa для WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.85 ▼3.11 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.12 ▼4.97 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.67 ▲3.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.31 ▼13.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.51 ▼1.02 |
Server storage [IO: ▲7.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 931 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by ЮKassa для WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.34 ▼0.22 | 1.91 ▲0.15 | 37.41 ▼2.89 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.06 | 97.76 ▲9.93 | 40.34 ▼7.79 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.05 | 40.42 ▲4.00 | 36.96 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.19 ▼0.10 | 665.98 ▲8.46 | 59.78 ▲12.05 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▲0.03 | 95.43 ▼18.50 | 43.78 ▼3.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/yookassa/includes/partials/widget.php
- 479× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'YooKassa\\Common\\AbstractObject' not found in wp-content/plugins/yookassa/includes/lib/vendor/yoomoney/yookassa-sdk-php/lib/Model/Webhook/Webhook.php:41
- > PHP Fatal error
Uncaught Error: Class 'YooKassa\\Model\\PaymentMethod\\AbstractPaymentMethod' not found in wp-content/plugins/yookassa/includes/lib/vendor/yoomoney/yookassa-sdk-php/lib/Model/PaymentMethod/PaymentMethodQiwi.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/yookassa/includes/lib/vendor/yoomoney/yookassa-sdk-php/tests/Model/Deal/DealBalanceAmountTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Tests\\YooKassa\\Model\otification\\AbstractNotificationTest' not found in wp-content/plugins/yookassa/includes/lib/vendor/yoomoney/yookassa-sdk-php/tests/Model/Notification/NotificationWaitingForCaptureTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Tests\\YooKassa\\Request\\Payouts\\PayoutDestinationData\\AbstractPayoutDestinationDataTest' not found in wp-content/plugins/yookassa/includes/lib/vendor/yoomoney/yookassa-sdk-php/tests/Request/Payouts/PayoutDestinationData/PayoutDestinationDataBankCardTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'YooKassa\\Model\\PaymentData\\AbstractPaymentData' not found in wp-content/plugins/yookassa/includes/lib/vendor/yoomoney/yookassa-sdk-php/lib/Model/PaymentData/PaymentDataWechat.php:34
- > PHP Fatal error
Uncaught Error: Class 'YooKassa\\Common\\AbstractObject' not found in wp-content/plugins/yookassa/includes/lib/vendor/yoomoney/yookassa-sdk-php/lib/Model/Refund.php:51
- > PHP Fatal error
Uncaught Error: Class 'Tests\\YooKassa\\Request\\Receipts\\AbstractReceiptResponseTest' not found in wp-content/plugins/yookassa/includes/lib/vendor/yoomoney/yookassa-sdk-php/tests/Request/Receipts/PaymentReceiptResponseTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'YooKassa\\Model\\PaymentMethod\\AbstractPaymentMethod' not found in wp-content/plugins/yookassa/includes/lib/vendor/yoomoney/yookassa-sdk-php/lib/Model/PaymentMethod/PaymentMethodBankCard.php:39
- > PHP Fatal error
Uncaught Error: Class 'YooKassa\\Request\\Payouts\\PayoutDestinationData\\AbstractPayoutDestinationData' not found in wp-content/plugins/yookassa/includes/lib/vendor/yoomoney/yookassa-sdk-php/lib/Request/Payouts/PayoutDestinationData/PayoutDestinationDataSbp.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: woocommerce, payment, kassa, yoomoney, yookassa...
yookassa/yookassa.php 92% from 13 tests
"ЮKassa для WooCommerce" version 2.6.0'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: Required version does not match the one declared in readme.txt ("5.2" instead of "3.7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin124,480 lines of code in 896 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 246 | 29,158 | 0 | 63,079 |
PHP | 612 | 10,009 | 32,067 | 58,663 |
PO File | 2 | 454 | 580 | 1,354 |
JSON | 26 | 0 | 0 | 725 |
CSS | 3 | 21 | 17 | 300 |
JavaScript | 2 | 18 | 36 | 196 |
XML | 4 | 6 | 2 | 136 |
YAML | 1 | 8 | 4 | 27 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 64 | |
Interfaces | 42 | |
Traits | 2 | |
Classes | 563 | |
▷ Abstract classes | 39 | 6.93% |
▷ Concrete classes | 524 | 93.07% |
▷ Final classes | 0 | 0.00% |
Methods | 4,771 | |
▷ Static methods | 108 | 2.26% |
▷ Public methods | 4,315 | 90.44% |
▷ Protected methods | 275 | 5.76% |
▷ Private methods | 181 | 3.79% |
Functions | 27 | |
▷ Named functions | 6 | 22.22% |
▷ Anonymous functions | 21 | 77.78% |
Constants | 383 | |
▷ Global constants | 6 | 1.57% |
▷ Class constants | 377 | 98.43% |
▷ Public constants | 377 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ac.png | 2.02KB | 1.64KB | ▼ 18.83% |
assets/images/sbp.png | 1.06KB | 0.99KB | ▼ 6.83% |
assets/images/installments.png | 1.14KB | 1.45KB | 0.00% |
assets/images/ma.png | 1.49KB | 1.54KB | 0.00% |
assets/images/kassa.png | 3.34KB | 1.14KB | ▼ 65.75% |