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.15MB] [CPU: ▲0.16ms] Passed 4 tests
Server-side resources used by WooCommerce QuickPay
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 38.39 ▼1.32 |
Dashboard /wp-admin | 3.45 ▲0.15 | 49.26 ▼5.38 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 53.98 ▲3.33 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.14 | 102.79 ▲7.37 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 40.16 ▲4.01 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 147 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce QuickPay
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.31 ▼0.07 | 1.87 ▲0.09 | 41.01 ▼6.08 |
Dashboard /wp-admin | 2,203 ▲26 | 5.65 ▲0.09 | 88.51 ▼11.98 | 38.93 ▼7.42 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.00 ▼0.03 | 40.07 ▼0.19 | 34.80 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,550 ▲9 | 22.83 ▼0.45 | 665.15 ▼21.17 | 60.57 ▲10.43 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.21 ▼0.02 | 107.60 ▲2.37 | 51.25 ▲2.95 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woocommerce-quickpay/templates/admin/meta-box-subscription.php
- > /wp-content/plugins/woocommerce-quickpay/templates/admin/meta-box-order.php
- 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_QuickPay_Admin_Ajax_Action' not found in wp-content/plugins/woocommerce-quickpay/classes/modules/ajax/woocommerce-quickpay-admin-ajax-private-key.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_QuickPay_Module' not found in wp-content/plugins/woocommerce-quickpay/classes/modules/woocommerce-quickpay-orders.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_QuickPay_Admin_Ajax_Action' not found in wp-content/plugins/woocommerce-quickpay/classes/modules/ajax/woocommerce-quickpay-admin-ajax-manage-payment.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/woocommerce-quickpay/classes/woocommerce-quickpay-order.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_QuickPay_Instance' not found in wp-content/plugins/woocommerce-quickpay/classes/instances/vipps.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_QuickPay_Instance' not found in wp-content/plugins/woocommerce-quickpay/classes/instances/ideal.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_QuickPay' not found in wp-content/plugins/woocommerce-quickpay/classes/instances/instance.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_QuickPay_Module' not found in wp-content/plugins/woocommerce-quickpay/classes/modules/woocommerce-quickpay-admin-ajax.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_QuickPay_Instance' not found in wp-content/plugins/woocommerce-quickpay/classes/instances/google-pay.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_QuickPay_Module' not found in wp-content/plugins/woocommerce-quickpay/classes/modules/woocommerce-quickpay-admin-orders.php:3
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: quick pay, payment, payment gateway, quickpay, woo commerce...
woocommerce-quickpay/woocommerce-quickpay.php 85% from 13 tests
The main PHP script in "WooCommerce QuickPay" version 7.0.4 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.0" instead of "7.1.0")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected9,375 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 1,451 | 2,966 | 5,235 |
SVG | 30 | 9 | 24 | 2,823 |
PO File | 1 | 360 | 749 | 745 |
JavaScript | 4 | 48 | 67 | 345 |
CSS | 1 | 40 | 0 | 218 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 11.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 399 | |
▷ Static methods | 125 | 31.33% |
▷ Public methods | 369 | 92.48% |
▷ Protected methods | 11 | 2.76% |
▷ Private methods | 19 | 4.76% |
Functions | 30 | |
▷ Named functions | 24 | 80.00% |
▷ Anonymous functions | 6 | 20.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 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
29 PNG files occupy 0.21MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/mobilepay-checkout/white/large@2x.png | 10.26KB | 3.69KB | ▼ 64.01% |
assets/images/cards/vipps.png | 10.26KB | 10.34KB | 0.00% |
assets/images/mobilepay-checkout/white/medium@1x.png | 5.61KB | 1.76KB | ▼ 68.66% |
assets/images/icons/error.png | 3.29KB | 2.08KB | ▼ 36.84% |
assets/images/mobilepay-checkout/darkblue/large@2x.png | 11.70KB | 3.62KB | ▼ 69.08% |