Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, class '\WSB\Activator' not found
Server metrics [RAM: ▲0.03MB] [CPU: ▼141.31ms] Passed 4 tests
A check of server-side resources used by Payment Gateway for FIO with WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 33.68 ▼1.09 |
Dashboard /wp-admin | 3.09 ▲0.04 | 43.58 ▼1.38 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 43.43 ▼1.94 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 89.47 ▼560.83 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 33.81 ▲0.83 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Payment Gateway for FIO with WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲101 | 16.27 ▲0.37 | 9.54 ▼0.88 | 45.96 ▲1.24 |
Dashboard /wp-admin | 2,974 ▲43 | 5.85 ▼0.13 | 138.44 ▼10.57 | 106.76 ▼2.70 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.72 ▲0.00 | 65.24 ▼0.80 | 86.74 ▼5.66 |
Add New Post /wp-admin/post-new.php | 1,607 ▼76 | 18.61 ▲0.01 | 386.23 ▼3.29 | 113.32 ▲3.64 |
Media Library /wp-admin/upload.php | 1,811 ▲4 | 5.00 ▼0.02 | 165.74 ▲7.92 | 121.04 ▲11.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payment-gateway-for-fio-with-wc/includes/class-fio-ajax.php:20
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/payment-gateway-for-fio-with-wc/includes/class-wc-gateway-fio.php:9
- > 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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: digital currency, fio, woocommerce, bitcoin, payment gateway...
payment-gateway-for-fio-with-wc/woocommerce-gateway-fio.php 92% from 13 tests
The main PHP file in "Payment Gateway for FIO with WooCommerce" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("payment-gateway-for-fio-with-wc.php" instead of "woocommerce-gateway-fio.php")
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
Success! There were no dangerous files found in this plugin1,199 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 168 | 204 | 628 |
PO File | 4 | 168 | 168 | 450 |
Sass | 1 | 7 | 0 | 68 |
CSS | 1 | 14 | 4 | 49 |
JavaScript | 4 | 0 | 9 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.80 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 23 | 45.10% |
▷ Public methods | 42 | 82.35% |
▷ Protected methods | 1 | 1.96% |
▷ Private methods | 8 | 15.69% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/pay_with_fio.png | 1.33KB | 0.71KB | ▼ 46.41% |
assets/img/copy.png | 0.42KB | 0.34KB | ▼ 19.59% |