Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.73ms] Passed 4 tests
This is a short check of server-side resources used by Polskie ePłatności Online Payment Gateway for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.63 ▼7.89 |
Dashboard /wp-admin | 3.31 ▲0.00 | 41.33 ▼6.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.50 ▼1.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.64 ▼24.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.39 ▼3.83 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Polskie ePłatności Online Payment Gateway for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.14 ▲0.16 | 1.85 ▲0.10 | 38.54 ▼5.09 |
Dashboard /wp-admin | 2,198 ▲24 | 5.63 ▼0.02 | 85.01 ▼5.74 | 36.82 ▲0.53 |
Posts /wp-admin/edit.php | 2,097 ▲18 | 2.02 ▲0.04 | 33.69 ▼2.53 | 33.43 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 22.93 ▼0.01 | 609.32 ▲3.78 | 57.98 ▼11.25 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.12 | 97.71 ▼2.14 | 41.26 ▼4.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/polskie-eplatnosci-online-payment-gateway-for-woocommerce/views/admin/notices/woocommerce-is-missing.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paylane_Gateway_Base' not found in wp-content/plugins/polskie-eplatnosci-online-payment-gateway-for-woocommerce/Gateway/Blik0.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paylane_Gateway_Base' not found in wp-content/plugins/polskie-eplatnosci-online-payment-gateway-for-woocommerce/Gateway/CreditCard.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_notices() in wp-content/plugins/polskie-eplatnosci-online-payment-gateway-for-woocommerce/views/error.php:2
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
polskie-eplatnosci-online-payment-gateway-for-woocommerce/woocommerce-gateway-paylane.php 77% from 13 tests
The main PHP script in "Polskie ePłatności Online Payment Gateway for WooCommerce" version 2.3.4 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("polskie-eplatnosci-online-payment-gateway-for-woocommerce.php" instead of "woocommerce-gateway-paylane.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.5.1" instead of "4.4")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected4,691 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 695 | 696 | 3,583 |
PO File | 1 | 373 | 519 | 853 |
JavaScript | 4 | 35 | 8 | 150 |
SVG | 1 | 0 | 1 | 103 |
CSS | 2 | 2 | 2 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 5 | 3.62% |
▷ Public methods | 80 | 57.97% |
▷ Protected methods | 33 | 23.91% |
▷ Private methods | 25 | 18.12% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 17 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 17 | 100.00% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
34 PNG files occupy 0.25MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banks/PP.png | 5.86KB | 3.10KB | ▼ 47.01% |
assets/images/payment_methods/sepa_h50_w80.png | 1.93KB | 0.98KB | ▼ 49.37% |
assets/images/banks/AS.png | 11.44KB | 5.51KB | ▼ 51.85% |
assets/images/banks/NP.png | 13.36KB | 6.54KB | ▼ 51.06% |
assets/images/banks/BG.png | 5.80KB | 2.75KB | ▼ 52.55% |