Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.04ms] Passed 4 tests
Server-side resources used by WebDebit Pay By Check Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.57 ▼3.13 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.65 ▼4.97 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.13 ▼0.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.15 ▲0.15 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.95 ▲0.98 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WebDebit Pay By Check Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.63 ▼0.93 | 1.83 ▲0.06 | 40.16 ▼10.06 |
Dashboard /wp-admin | 2,209 ▲24 | 4.85 ▼0.96 | 107.72 ▲8.86 | 44.35 ▲1.39 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 39.11 ▲1.80 | 34.65 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,534 ▼8 | 23.28 ▲4.94 | 665.18 ▲49.63 | 49.99 ▲4.53 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.00 | 92.02 ▼13.16 | 40.41 ▼3.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 3× 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/woo-webdebit-payment-gateway/webdebit-pay-by-check-gateway.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-webdebit-payment-gateway/class-woocommerce-webdebit-payment-gateway.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/woo-webdebit-payment-gateway/webdebit-thanks.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: echeck, woocommerce extension, payment, checks, payment option...
woo-webdebit-payment-gateway/webdebit-pay-by-check-gateway.php 77% from 13 tests
Analyzing the main PHP file in "WebDebit Pay By Check Gateway" version 1.0.5
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-webdebit-payment-gateway.php" instead of "webdebit-pay-by-check-gateway.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected423 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 62 | 77 | 386 |
PO File | 1 | 9 | 11 | 37 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-256x256.png | 44.68KB | 20.35KB | ▼ 54.46% |