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.01MB] [CPU: ▼120.24ms] Passed 4 tests
Server-side resources used by WooCommerce CoolPay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.66 ▼5.73 |
Dashboard /wp-admin | 3.31 ▼0.07 | 43.62 ▼471.64 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.50 ▼0.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.50 ▼3.33 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.72 ▲0.06 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce CoolPay
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲60 | 13.60 ▼0.78 | 1.79 ▼0.15 | 39.26 ▼2.33 |
Dashboard /wp-admin | 2,215 ▲38 | 4.87 ▼1.07 | 96.31 ▼3.97 | 43.10 ▲4.48 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.01 ▲0.01 | 41.29 ▲2.02 | 35.94 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 23.25 ▼0.23 | 681.83 ▲59.52 | 61.44 ▲6.15 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.33 ▲0.09 | 96.67 ▼4.86 | 44.67 ▼2.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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
Good news, no errors were detected
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
Please take a closer look at the following
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_CoolPay_Instance' not found in wp-content/plugins/woo-coolpay/classes/instances/klarna.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/woo-coolpay/classes/woocommerce-coolpay-order.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_CoolPay_Instance' not found in wp-content/plugins/woo-coolpay/classes/instances/sofort.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_CoolPay_API_Transaction' not found in wp-content/plugins/woo-coolpay/classes/api/woocommerce-coolpay-api-payment.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/woo-coolpay/classes/base/woocommerce-coolpay-base-order.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-coolpay/views/bulk-actions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-coolpay/views/html-order-table-transaction-data.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_CoolPay_API_Transaction' not found in wp-content/plugins/woo-coolpay/classes/api/woocommerce-coolpay-api-subscription.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-coolpay/helpers/notices.php:58
- > PHP Fatal error
Uncaught Error: Class 'WC_CoolPay_Module' not found in wp-content/plugins/woo-coolpay/classes/modules/woocommerce-coolpay-emails.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: coolpay, woocommerce coolpay, gateway, integration, psp...
woo-coolpay/woocommerce-coolpay.php 85% from 13 tests
"WooCommerce CoolPay" version 4.10.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-coolpay.php" instead of "woocommerce-coolpay.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.0.0" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin7,309 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,039 | 2,506 | 3,794 |
SVG | 21 | 7 | 20 | 2,585 |
PO File | 1 | 269 | 515 | 553 |
CSS | 1 | 38 | 0 | 203 |
JavaScript | 2 | 25 | 3 | 138 |
Markdown | 1 | 4 | 0 | 27 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 17.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 1 | 3.70% |
▷ Concrete classes | 26 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 279 | |
▷ Static methods | 69 | 24.73% |
▷ Public methods | 264 | 94.62% |
▷ Protected methods | 5 | 1.79% |
▷ Private methods | 10 | 3.58% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cards/edankort.png | 1.00KB | 1.04KB | 0.00% |
assets/images/icons/ok.png | 3.83KB | 2.20KB | ▼ 42.57% |
assets/images/icons/error.png | 3.29KB | 2.08KB | ▼ 36.84% |
(invalid) assets/images/cards/apple-pay.png | 7.33KB | 0.00KB | ▼ 100.00% |
assets/images/cards/discovercard.png | 1.20KB | 1.25KB | 0.00% |