Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.18MB] [CPU: ▼282.31ms] 75% from 4 tests
This is a short check of server-side resources used by Кнопка ЮMoney
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,338.66ms on /wp-admin/admin.php?page=yandex-money-button)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.35 ▲4.83 | 69.02 ▲4.47 |
Dashboard /wp-admin | 8.37 ▲4.96 | 55.02 ▲19.40 |
Posts /wp-admin/edit.php | 8.37 ▲4.72 | 59.35 ▼27.96 |
Add New Post /wp-admin/post-new.php | 9.17 ▲2.19 | 160.14 ▼1,125.13 |
Media Library /wp-admin/upload.php | 8.37 ▲5.07 | 47.84 ▲22.88 |
Кнопка ЮMoney /wp-admin/admin.php?page=yandex-money-button | 8.37 | 1,338.66 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.37 | 45.63 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 174 new files
Database: no new tables, 5 new options
New WordPress options |
---|
widget_ymb_button |
fs_active_plugins |
fs_gdpr |
fs_accounts |
fs_debug_mode |
Browser metrics Passed 4 tests
An overview of browser requirements for Кнопка ЮMoney
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,986 ▲264 | 24.69 ▲8.92 | 158.04 ▲152.23 | 3.07 ▲0.63 |
Dashboard /wp-admin | 2,919 ▲58 | 6.02 ▼0.18 | 113.52 ▼22.54 | 190.88 ▲28.88 |
Posts /wp-admin/edit.php | 2,722 ▲34 | 3.24 ▲0.00 | 67.23 ▲1.35 | 166.71 ▲17.50 |
Add New Post /wp-admin/post-new.php | 1,685 ▲47 | 19.79 ▼0.90 | 442.91 ▼11.84 | 169.38 ▲18.21 |
Media Library /wp-admin/upload.php | 1,726 ▲31 | 5.65 ▲0.15 | 158.70 ▲14.93 | 213.04 ▲20.36 |
Кнопка ЮMoney /wp-admin/admin.php?page=yandex-money-button | 1,256 | 2.48 | 55.24 | 251.80 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,453 | 2.50 | 60.09 | 122.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/yandex-money-button/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 5 options
- widget_ymb_button
- fs_gdpr
- fs_active_plugins
- fs_accounts
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/yandex-money-button/freemius/templates/ajax-loader.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/yandex-money-button/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/yandex-money-button/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/yandex-money-button/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/yandex-money-button/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/yandex-money-button/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/yandex-money-button/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/yandex-money-button/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/yandex-money-button/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
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
5 plugin tags: yandex, woo, woocommerce, block, widget
yandex-money-button/yandex-money-button.php 92% from 13 tests
The primary PHP file in "Кнопка ЮMoney" version 2.4.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 205 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected31,571 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 7,243 | 16,199 | 30,705 |
JavaScript | 5 | 62 | 135 | 726 |
CSS | 13 | 8 | 35 | 71 |
Markdown | 1 | 41 | 0 | 69 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,908)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 86.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,908.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,140 | |
▷ Static methods | 173 | 15.18% |
▷ Public methods | 800 | 70.18% |
▷ Protected methods | 15 | 1.32% |
▷ Private methods | 325 | 28.51% |
Functions | 101 | |
▷ Named functions | 99 | 98.02% |
▷ Anonymous functions | 2 | 1.98% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/yandex-money-button.png | 9.06KB | 4.62KB | ▼ 48.99% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |