Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.02ms] Passed 4 tests
This is a short check of server-side resources used by Instant Pay for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.32 ▼2.84 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.19 ▼0.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.26 ▼11.48 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.08 ▼18.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.48 ▼2.79 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Instant Pay for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.21 ▼1.18 | 1.78 ▼0.59 | 39.30 ▼3.15 |
Dashboard /wp-admin | 2,218 ▲12 | 5.83 ▼0.10 | 102.24 ▼8.05 | 35.54 ▼2.18 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.04 ▲0.06 | 37.14 ▼4.70 | 33.16 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,554 ▲9 | 17.90 ▼5.39 | 641.70 ▼62.10 | 74.40 ▲9.03 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▼0.01 | 119.44 ▲10.82 | 50.68 ▲2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/instant-pay-for-woocommerce/includes/views/api_request_headers_html.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/instant-pay-for-woocommerce/includes/views/api_atts_html.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/instant-pay-for-woocommerce/includes/hooks.php:8
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/instant-pay-for-woocommerce/classes/advance_custom_payment_gateway_pro_settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/instant-pay-for-woocommerce/classes/advance_custom_payment_gateway_pro.php:11
- > 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 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #2, #3, #4 in instant-pay-for-woocommerce/assets to your readme.txt
- Plugin Name: You should set the name of your plugin on the first line (
=== instant-pay-for-woocommerce ===
)
instant-pay-for-woocommerce/instant-pay-for-woocommerce.php Passed 13 tests
This is the main PHP file of "Instant Pay for Woocommerce" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
94 characters long description:
Instant Pay for Woocommerce. Capture payments via bank transfer with API Banking in Australia.
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
Good job! No executable or dangerous file extensions detected717 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 83 | 42 | 448 |
CSS | 1 | 9 | 0 | 227 |
JavaScript | 1 | 8 | 6 | 42 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
4 PNG files occupy 0.42MB with 0.25MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 14.64KB | 6.59KB | ▼ 54.97% |
assets/icon-256x256.png | 42.17KB | 16.86KB | ▼ 60.03% |
assets/banner772x250.png | 116.53KB | 35.99KB | ▼ 69.11% |
assets/banner1544x500.png | 252.26KB | 102.87KB | ▼ 59.22% |