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.03MB] [CPU: ▼6.12ms] Passed 4 tests
This is a short check of server-side resources used by CloudPayments Gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.03 | 25.11 ▼19.60 |
Dashboard /wp-admin | 3.36 ▲0.05 | 45.93 ▲0.46 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.43 ▼1.37 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 83.61 ▼3.98 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.73 ▲3.95 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
CloudPayments Gateway for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,469 ▼277 | 13.15 ▼1.29 | 0.49 ▼1.22 | 18.52 ▼22.76 |
Dashboard /wp-admin | 2,210 ▲25 | 4.90 ▼0.00 | 106.63 ▲1.57 | 38.67 ▼8.22 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.18 ▲0.19 | 40.36 ▼0.44 | 33.02 ▼6.45 |
Add New Post /wp-admin/post-new.php | 1,532 ▼5 | 23.28 ▲0.13 | 663.46 ▲33.75 | 67.91 ▲17.66 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.23 ▲0.00 | 96.60 ▼5.30 | 45.61 ▼0.98 |
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
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/cloudpayments-gateway-for-woocommerce/templates/payment-fields-checkout.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/cloudpayments-gateway-for-woocommerce/templates/cloudpayments-widget.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Настройки модуля settings.png), #2 (Адреса уведомлений Webhook.png)
cloudpayments-gateway-for-woocommerce/cloudpayments_gateway_for_wc.php 92% from 13 tests
"CloudPayments Gateway for WooCommerce" version 3.1.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:
- Main file name: The principal plugin file should be the same as the plugin slug ("cloudpayments-gateway-for-woocommerce.php" instead of "cloudpayments_gateway_for_wc.php")
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
There were no executable files found in this plugin1,483 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 202 | 59 | 1,386 |
JavaScript | 3 | 10 | 4 | 50 |
CSS | 2 | 6 | 0 | 47 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 50.67 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 5.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 10 | 27.03% |
▷ Public methods | 25 | 67.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 32.43% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
visa-mastercard-uz.png | 3.16KB | 2.16KB | ▼ 31.82% |
visa-mastercard.png | 2.63KB | 2.09KB | ▼ 20.54% |