Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.44ms] Passed 4 tests
Server-side resources used by Official Viapay Checkout Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.91 ▼1.38 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.84 ▼12.17 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.97 ▼0.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.49 ▼11.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.33 ▲0.10 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 79 new files
Database: no new tables, 7 new options
New WordPress options |
---|
woocommerce_viapay_version |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Official Viapay Checkout Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.45 ▼0.33 | 1.62 ▼0.18 | 31.19 ▼10.28 |
Dashboard /wp-admin | 2,206 ▲21 | 5.89 ▲0.04 | 106.57 ▲6.01 | 43.21 ▼0.95 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.15 ▲0.11 | 40.99 ▲1.77 | 34.79 ▲4.12 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 22.97 ▲4.57 | 577.72 ▼31.88 | 67.45 ▲13.32 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.04 | 100.99 ▲3.65 | 41.74 ▲0.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/viapay-checkout-gateway/viapay-woocommerce-payment.php+184
Non-static method WC_ViapayCheckout::delete_registration_data() should not be called statically
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- woocommerce_viapay_version
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/viapay-checkout-gateway/templates/admin/help-file.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/viapay-checkout-gateway/includes/class-wc-viapay-order-statuses.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: woocommerce, subscription, payment, viapay
viapay-checkout-gateway/viapay-woocommerce-payment.php 85% from 13 tests
Analyzing the main PHP file in "Official Viapay Checkout Gateway" version 1.0.2
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("viapay-checkout-gateway.php" instead of "viapay-woocommerce-payment.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin15,560 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,378 | 2,155 | 7,143 |
JSON | 2 | 0 | 0 | 4,993 |
JavaScript | 9 | 94 | 44 | 2,962 |
CSS | 3 | 29 | 5 | 171 |
PO File | 1 | 67 | 81 | 163 |
Sass | 1 | 20 | 0 | 115 |
Markdown | 1 | 6 | 0 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 34.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 2 | 8.00% |
▷ Concrete classes | 23 | 92.00% |
▷ Final classes | 0 | 0.00% |
Methods | 262 | |
▷ Static methods | 51 | 19.47% |
▷ Public methods | 232 | 88.55% |
▷ Protected methods | 17 | 6.49% |
▷ Private methods | 13 | 4.96% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 22 | |
▷ Global constants | 4 | 18.18% |
▷ Class constants | 18 | 81.82% |
▷ Public constants | 18 | 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
27 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/discover.png | 4.06KB | 1.98KB | ▼ 51.22% |
assets/images/googlepay.png | 12.26KB | 2.36KB | ▼ 80.76% |
assets/images/mobilepay.png | 4.98KB | 2.50KB | ▼ 49.74% |
assets/images/cup.png | 10.32KB | 4.62KB | ▼ 55.26% |
assets/images/amex.png | 4.76KB | 2.36KB | ▼ 50.42% |