Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼7.90ms] Passed 4 tests
An overview of server-side resources used by Payment gateway: accept.blue for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 42.30 ▲1.85 |
Dashboard /wp-admin | 3.58 ▲0.24 | 45.60 ▼16.95 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 50.22 ▲3.69 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 90.47 ▼15.03 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 33.67 ▼1.46 |
Server storage [IO: ▲3.92MB] [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: 190 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Payment gateway: accept.blue for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.37 ▲1.26 | 1.81 ▼2.82 | 42.43 ▼1.01 |
Dashboard /wp-admin | 2,198 ▲21 | 5.69 ▲0.07 | 90.51 ▼6.74 | 43.69 ▲1.29 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.94 ▼0.06 | 39.55 ▼3.73 | 37.65 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,528 ▼6 | 23.19 ▼2.15 | 586.47 ▼73.56 | 81.03 ▲3.80 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.20 ▲0.00 | 100.88 ▲1.70 | 42.43 ▲0.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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)
Even though everything seems fine, this is not 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
- 52× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/payment-gateway-accept-blue-for-woocommerce/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/payment-gateway-accept-blue-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/payment-gateway-accept-blue-for-woocommerce/vendor/guzzlehttp/promises/src/TaskQueue.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/payment-gateway-accept-blue-for-woocommerce/includes/wc-acceptblue-gateway-credit-card.php:2
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/payment-gateway-accept-blue-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/payment-gateway-accept-blue-for-woocommerce/includes/ach-fields-acceptblue.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/payment-gateway-accept-blue-for-woocommerce/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/payment-gateway-accept-blue-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/payment-gateway-accept-blue-for-woocommerce/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/payment-gateway-accept-blue-for-woocommerce/vendor/guzzlehttp/psr7/src/Request.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
4 plugin tags: acceptblue, credit card, ach, payments
payment-gateway-accept-blue-for-woocommerce/acceptblue-payments.php 85% from 13 tests
The entry point to "Payment gateway: accept.blue for WooCommerce" version 1.4.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("payment-gateway-accept-blue-for-woocommerce.php" instead of "acceptblue-payments.php")
- Domain Path: The domain path folder does not exist ("/languages")
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
Success! There were no dangerous files found in this plugin69,661 lines of code in 177 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 46,728 | 40,972 | 62,357 |
Markdown | 15 | 1,278 | 0 | 3,664 |
SVG | 10 | 5 | 2 | 1,897 |
JSON | 10 | 0 | 0 | 1,046 |
JavaScript | 7 | 84 | 69 | 418 |
CSS | 1 | 49 | 3 | 272 |
YAML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 13.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 84 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 84 | 100.00% |
▷ Final classes | 35 | 41.67% |
Methods | 840 | |
▷ Static methods | 146 | 17.38% |
▷ Public methods | 710 | 84.52% |
▷ Protected methods | 4 | 0.48% |
▷ Private methods | 126 | 15.00% |
Functions | 175 | |
▷ Named functions | 84 | 48.00% |
▷ Anonymous functions | 91 | 52.00% |
Constants | 81 | |
▷ Global constants | 8 | 9.88% |
▷ Class constants | 73 | 90.12% |
▷ Public constants | 62 | 84.93% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin