Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼150.72ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce PayPal Here Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 40.75 ▼5.18 |
Dashboard /wp-admin | 3.09 ▲0.04 | 51.41 ▼8.28 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 53.88 ▼15.53 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 107.47 ▼573.87 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 43.34 ▲2.79 |
Server storage [IO: ▲1.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 604 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce PayPal Here Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲149 | 15.60 ▼0.04 | 9.48 ▼3.21 | 50.26 ▼0.79 |
Dashboard /wp-admin | 2,991 ▲57 | 6.01 ▼0.03 | 154.89 ▼31.57 | 118.16 ▼10.37 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.73 ▲0.01 | 73.96 ▼10.62 | 94.96 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,694 ▲113 | 18.42 ▲0.92 | 462.98 ▲33.80 | 125.54 ▲2.06 |
Media Library /wp-admin/upload.php | 1,825 ▲18 | 5.04 ▼0.01 | 174.00 ▼0.08 | 130.61 ▲3.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/woocommerce-paypal-here-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woocommerce-paypal-here-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-order-partial-capture.php:26
- > PHP Fatal error
Uncaught Error: Class 'SkyVerge\\WooCommerce\\PluginFramework\\v5_6_1\\Payment_Gateway\\Handlers\\Abstract_Payment_Handler' not found in wp-content/plugins/woocommerce-paypal-here-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/Handlers/Abstract_Hosted_Payment_Handler.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woocommerce-paypal-here-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-profile-field-customer-id.php:27
- > PHP Fatal error
Uncaught Error: Class 'QRcode' not found in wp-content/plugins/woocommerce-paypal-here-gateway/vendor/pendalff/phpqrcode/index.php:67
- > PHP Notice
Undefined variable: fields in wp-content/plugins/woocommerce-paypal-here-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woocommerce-paypal-here-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-profile-section.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woocommerce-paypal-here-gateway/includes/Admin/Meta_Boxes/Views/html-order-data.php:31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-paypal-here-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 28
- > PHP Notice
Undefined variable: index in wp-content/plugins/woocommerce-paypal-here-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
woocommerce-paypal-here-gateway/woocommerce-gateway-paypal-here.php 77% from 13 tests
The main PHP script in "WooCommerce PayPal Here Payment Gateway" version 1.1.3 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-paypal-here-gateway.php" instead of "woocommerce-gateway-paypal-here.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "3.0.0")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/woocommerce-paypal-here-gateway/vendor/pendalff/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 10,006 | 18,612 | 20,042 |
PO File | 1 | 408 | 719 | 1,049 |
CSS | 7 | 19 | 0 | 112 |
JSON | 1 | 0 | 0 | 72 |
SVG | 21 | 0 | 0 | 21 |
JavaScript | 12 | 0 | 0 | 12 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing 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.38 |
Average class complexity | 25.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 13 | |
Traits | 0 | |
Classes | 110 | |
▷ Abstract classes | 19 | 17.27% |
▷ Concrete classes | 91 | 82.73% |
▷ Final classes | 0 | 0.00% |
Methods | 1,718 | |
▷ Static methods | 272 | 15.83% |
▷ Public methods | 1,222 | 71.13% |
▷ Protected methods | 475 | 27.65% |
▷ Private methods | 21 | 1.22% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 162 | |
▷ Global constants | 99 | 61.11% |
▷ Class constants | 63 | 38.89% |
▷ Public constants | 63 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
62 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-dinersclub.png | 1.36KB | 1.42KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-cc-invalid.png | 3.67KB | 2.08KB | ▼ 43.22% |
vendor/pendalff/phpqrcode/cache/frame_17.png | 0.21KB | 0.19KB | ▼ 6.64% |
vendor/pendalff/phpqrcode/cache/frame_37.png | 0.27KB | 0.25KB | ▼ 7.89% |
vendor/pendalff/phpqrcode/cache/frame_13.png | 0.21KB | 0.19KB | ▼ 5.24% |