Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.83ms] Passed 4 tests
Server-side resources used by DPO Pay for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.50 ▼10.04 |
Dashboard /wp-admin | 3.31 ▲0.00 | 57.32 ▲4.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.32 ▲3.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.39 ▲1.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.64 ▲1.94 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DPO Pay for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▼0.02 | 1.76 ▲0.04 | 46.92 ▲2.13 |
Dashboard /wp-admin | 2,192 ▲12 | 5.61 ▼0.06 | 91.55 ▼0.96 | 41.78 ▼2.33 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.05 | 42.18 ▲4.90 | 37.08 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.02 ▲2.00 | 668.04 ▼1.71 | 57.70 ▼1.97 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.13 | 111.30 ▼5.31 | 47.05 ▼0.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/dpo-group-for-woocommerce/gateway-direct-pay-online.php on line 23
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/dpo-group-for-woocommerce/gateway-direct-pay-online.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'WCGatewayDPO' not found in wp-content/plugins/dpo-group-for-woocommerce/classes/WCGatewayDpoCron.php:10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dpo-group-for-woocommerce/gateway-direct-pay-online.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/dpo-group-for-woocommerce/includes/blocks/class-wc-dpo-payments-blocks.php:10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
dpo-group-for-woocommerce/gateway-direct-pay-online.php 92% from 13 tests
This is the main PHP file of "DPO Pay for WooCommerce" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dpo-group-for-woocommerce.php" instead of "gateway-direct-pay-online.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,200 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 181 | 245 | 1,190 |
JavaScript | 2 | 0 | 0 | 9 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 25.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 37 | |
▷ Static methods | 15 | 40.54% |
▷ Public methods | 35 | 94.59% |
▷ Protected methods | 2 | 5.41% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 11 | 91.67% |
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
12 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dpo-visa.png | 3.79KB | 3.63KB | ▼ 4.20% |
assets/images/dpo-airtelmoney.png | 6.47KB | 6.22KB | ▼ 3.89% |
assets/images/dpo-unionpay.png | 9.68KB | 9.73KB | 0.00% |
assets/images/dpo-mtnmobilemoney.png | 5.89KB | 5.92KB | 0.00% |
assets/images/dpo-amex.png | 6.48KB | 6.46KB | 0.21% |