Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼307.19ms] Passed 4 tests
A check of server-side resources used by WooCommerce Custom Payment Gateways
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 55.34 ▲7.22 |
Dashboard /wp-admin | 3.42 ▲0.02 | 41.97 ▲5.98 |
Posts /wp-admin/edit.php | 3.65 ▲0.02 | 58.66 ▲18.08 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 94.08 ▼1,243.04 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 27.73 ▲1.07 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Custom Payment Gateways
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,760 ▲16 | 15.33 ▼0.28 | 5.52 ▼2.05 | 2.61 ▲0.29 |
Dashboard /wp-admin | 2,885 ▲27 | 6.02 ▼0.21 | 117.49 ▼16.39 | 162.62 ▲0.35 |
Posts /wp-admin/edit.php | 2,700 ▲9 | 3.23 ▼0.01 | 68.28 ▲3.50 | 148.78 ▲0.92 |
Add New Post /wp-admin/post-new.php | 1,647 ▼64 | 21.91 ▲1.17 | 438.50 ▼30.33 | 174.24 ▼24.21 |
Media Library /wp-admin/upload.php | 1,709 ▲14 | 5.53 ▲0.02 | 151.09 ▲9.94 | 191.14 ▼45.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-custom-payment-gateways/woocommerce-custom-payment-gateways.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woocommerce-custom-payment-gateways/class-wc-custom_payment_gateway_2.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woocommerce-custom-payment-gateways/class-wc-custom_payment_gateway_5.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woocommerce-custom-payment-gateways/class-wc-custom_payment_gateway_4.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woocommerce-custom-payment-gateways/class-wc-custom_payment_gateway_3.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woocommerce-custom-payment-gateways/class-wc-custom_payment_gateway_1.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
woocommerce-custom-payment-gateways/woocommerce-custom-payment-gateways.php Passed 13 tests
The entry point to "WooCommerce Custom Payment Gateways" version 1.0.0 is a PHP file that has certain tags in its header comment area
44 characters long description:
Add Custom Payment Gateways for WooCommerce.
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
Everything looks great! No dangerous files found in this plugin476 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 161 | 119 | 476 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
No PNG files were detected