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.04MB] [CPU: ▼4.14ms] Passed 4 tests
Analyzing server-side resources used by Pay iO Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.75 ▲1.70 |
Dashboard /wp-admin | 3.35 ▲0.01 | 48.71 ▼7.58 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 46.61 ▲1.11 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 83.27 ▼11.78 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.44 ▲2.78 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Pay iO Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.26 | 1.58 ▲0.12 | 43.90 ▲2.87 |
Dashboard /wp-admin | 2,198 ▲18 | 5.57 ▼0.10 | 95.82 ▼0.51 | 41.00 ▼6.07 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.02 | 33.73 ▼0.10 | 34.77 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,535 ▼1 | 18.26 ▼4.82 | 639.54 ▼21.80 | 85.40 ▲32.42 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.15 ▼0.03 | 95.62 ▼2.28 | 40.91 ▲0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/pay-io-payment-gateway/woocommerce-payio-gateway.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
10 plugin tags: cardless, payio, secure, payment gateway, pay io...
pay-io-payment-gateway/woocommerce-payio-gateway.php 92% from 13 tests
The primary PHP file in "Pay iO Payment Gateway" version 0.2.13 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pay-io-payment-gateway.php" instead of "woocommerce-payio-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin980 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 117 | 242 | 798 |
CSS | 2 | 1 | 10 | 157 |
JavaScript | 1 | 0 | 0 | 24 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 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/payio-inline.png | 4.78KB | 3.31KB | ▼ 30.79% |
assets/images/payio-support.png | 8.70KB | 4.23KB | ▼ 51.44% |
assets/images/pay-with-bank-inline.png | 1.28KB | 1.22KB | ▼ 4.36% |
assets/images/pay-now-inline.png | 1.15KB | 1.09KB | ▼ 5.25% |
assets/images/payio-fast-checkout.png | 5.14KB | 2.50KB | ▼ 51.42% |