Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.98ms] Passed 4 tests
An overview of server-side resources used by Payment gateway - Robokassa for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.10 | 43.44 ▲3.63 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.32 ▼1.10 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 45.55 ▼4.05 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.77 ▼18.38 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.21 ▲5.98 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Payment gateway - Robokassa for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.60 ▼0.82 | 2.36 ▲0.68 | 43.26 ▲1.18 |
Dashboard /wp-admin | 2,209 ▲18 | 4.84 ▼1.06 | 97.15 ▼5.29 | 40.02 ▲0.76 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▲0.01 | 35.72 ▼11.95 | 33.33 ▼7.52 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.51 ▲0.18 | 653.37 ▲47.28 | 52.51 ▲0.90 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.09 ▼0.11 | 97.63 ▲0.74 | 41.26 ▼0.73 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Interface 'Interface_Tecodes_Local_Storage_Code' not found in wp-content/plugins/wc-robokassa/vendors/tecodes/tecodes-local/storage/class-tecodes-local-storage-code.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Interface_Tecodes_Local_Http' not found in wp-content/plugins/wc-robokassa/vendors/tecodes/tecodes-local/class-tecodes-local-http.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Interface_Tecodes_Local' not found in wp-content/plugins/wc-robokassa/vendors/tecodes/tecodes-local/class-tecodes-local.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #7, #8 in wc-robokassa/assets to your readme.txt
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wc-robokassa/wc-robokassa.php 92% from 13 tests
The primary PHP file in "Payment gateway - Robokassa for WooCommerce" version 4.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.2" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected5,476 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 1,236 | 3,820 | 4,731 |
PO File | 1 | 326 | 542 | 735 |
XML | 1 | 0 | 0 | 9 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 45 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 353 | |
▷ Static methods | 1 | 0.28% |
▷ Public methods | 314 | 88.95% |
▷ Protected methods | 27 | 7.65% |
▷ Private methods | 12 | 3.40% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 9 | |
▷ Global constants | 4 | 44.44% |
▷ Class constants | 5 | 55.56% |
▷ Public constants | 5 | 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.34MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/robokassa_emoney_qiwi_wallet.png | 18.75KB | 1.84KB | ▼ 90.20% |
assets/img/robokassa_emoney_w1.png | 17.64KB | 1.04KB | ▼ 94.10% |
assets/img/robokassa.png | 13.53KB | 3.05KB | ▼ 77.44% |
assets/img/robokassa_mobile_phone_mts.png | 17.95KB | 1.44KB | ▼ 91.95% |
assets/img/robokassa_emoney_yandex_money.png | 18.22KB | 1.90KB | ▼ 89.55% |