Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.99ms] Passed 4 tests
Analyzing server-side resources used by Yandex pay
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.40 ▼1.75 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.93 ▼3.69 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.63 ▼6.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.09 ▼12.17 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.67 ▲1.79 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Yandex pay
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.23 ▼0.05 | 1.86 ▼0.38 | 42.96 ▲0.64 |
Dashboard /wp-admin | 2,195 ▲18 | 5.58 ▼0.08 | 88.20 ▼1.27 | 40.20 ▼3.16 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.06 | 33.35 ▼8.33 | 34.24 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,554 ▲9 | 18.50 ▼4.63 | 667.15 ▼12.00 | 62.52 ▼4.41 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.23 ▼0.01 | 103.55 ▲0.37 | 41.12 ▼4.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'YandexPay\\Gateway\\Base' not found in wp-content/plugins/yandex-pay/includes/payment-methods/class-wc-ypay-method-best2pay.php:13
- > PHP Fatal error
Trait 'YandexPay\\Helpers' not found in wp-content/plugins/yandex-pay/includes/payment-methods/class-wc-ypay-method-base-abstract.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'YandexPay\\Gateway\\Base' not found in wp-content/plugins/yandex-pay/includes/payment-methods/class-wc-ypay-method-rbkmoney.php:13
- > PHP Fatal error
Uncaught Error: Class 'YandexPay\\Gateway\\Base' not found in wp-content/plugins/yandex-pay/includes/payment-methods/class-wc-ypay-method-rbs.php:13
- > PHP Fatal error
Uncaught Error: Class 'YandexPay\\Gateway\\Base' not found in wp-content/plugins/yandex-pay/includes/payment-methods/class-wc-ypay-method-payture.php:13
- > PHP Fatal error
Uncaught Error: Class 'YandexPay\\Gateway\\RBS' not found in wp-content/plugins/yandex-pay/includes/payment-methods/class-wc-ypay-method-rbs-rshb.php:11
- > PHP Fatal error
Uncaught Error: Class 'YandexPay\\Gateway\\RBS' not found in wp-content/plugins/yandex-pay/includes/payment-methods/class-wc-ypay-method-rbs-mtsbank.php:11
- > PHP Fatal error
Uncaught Error: Class 'YandexPay\\Gateway\\RBS' not found in wp-content/plugins/yandex-pay/includes/payment-methods/class-wc-ypay-method-rbs-alfabank.php:11
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #1 in yandex-pay/assets to your readme.txt
yandex-pay/woocommerce-yandex-pay-gateway.php 77% from 13 tests
The main PHP script in "Yandex pay" version 1.1.4 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/i18n/languages/" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yandex-pay.php" instead of "woocommerce-yandex-pay-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,572 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 512 | 494 | 1,970 |
JavaScript | 5 | 137 | 47 | 602 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 71.43% |
▷ Protected methods | 23 | 27.38% |
▷ Private methods | 1 | 1.19% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 22 | |
▷ Global constants | 5 | 22.73% |
▷ Class constants | 17 | 77.27% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin