Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.35MB] [CPU: ▼288.16ms] Passed 4 tests
Analyzing server-side resources used by Coffee Code - Getnet for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.92 ▲1.40 | 61.32 ▲8.79 |
Dashboard /wp-admin | 4.76 ▲1.34 | 39.80 ▲5.39 |
Posts /wp-admin/edit.php | 4.98 ▲1.34 | 43.81 ▲4.73 |
Add New Post /wp-admin/post-new.php | 8.28 ▲1.31 | 100.25 ▼1,171.00 |
Media Library /wp-admin/upload.php | 4.70 ▲1.40 | 32.86 ▲8.25 |
Server storage [IO: ▲8.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 701 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Coffee Code - Getnet for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,779 ▲25 | 15.97 ▼0.05 | 6.58 ▲0.84 | 2.13 ▼0.33 |
Dashboard /wp-admin | 2,904 ▲43 | 6.12 ▼0.10 | 117.18 ▼17.44 | 154.69 ▼7.69 |
Posts /wp-admin/edit.php | 2,705 ▲33 | 3.23 ▼0.01 | 63.68 ▼1.13 | 138.35 ▼5.51 |
Add New Post /wp-admin/post-new.php | 1,672 ▲12 | 16.05 ▼0.26 | 402.57 ▼27.91 | 155.94 ▲0.19 |
Media Library /wp-admin/upload.php | 1,711 ▲13 | 5.53 ▲0.00 | 142.50 ▲7.51 | 187.21 ▲0.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wc-checkout-getnet/views/partials/dependency/missing-ecfb.php
- 222× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wc-checkout-getnet/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/wc-checkout-getnet/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/wc-checkout-getnet/vendor/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php:36
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wc-checkout-getnet/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wc-checkout-getnet/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wc-checkout-getnet/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wc-checkout-getnet/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wc-checkout-getnet/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wc-checkout-getnet/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wc-checkout-getnet/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: woocommerce, payments, billet, santander, credit card...
wc-checkout-getnet/wc-checkout-getnet.php 92% from 13 tests
The main PHP file in "Coffee Code - Getnet for WooCommerce" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin33,313 lines of code in 394 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 3,793 | 2,550 | 16,253 |
PHP | 345 | 3,742 | 9,976 | 14,471 |
JSON | 13 | 12 | 0 | 1,081 |
Markdown | 9 | 479 | 0 | 785 |
YAML | 10 | 74 | 5 | 432 |
reStructuredText | 1 | 96 | 139 | 97 |
XML | 4 | 11 | 0 | 88 |
HTML | 3 | 0 | 0 | 85 |
CSS | 4 | 21 | 0 | 18 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 29 | |
Traits | 19 | |
Classes | 257 | |
▷ Abstract classes | 2 | 0.78% |
▷ Concrete classes | 255 | 99.22% |
▷ Final classes | 12 | 4.71% |
Methods | 1,231 | |
▷ Static methods | 152 | 12.35% |
▷ Public methods | 1,030 | 83.67% |
▷ Protected methods | 135 | 10.97% |
▷ Private methods | 66 | 5.36% |
Functions | 180 | |
▷ Named functions | 41 | 22.78% |
▷ Anonymous functions | 139 | 77.22% |
Constants | 56 | |
▷ Global constants | 29 | 51.79% |
▷ Class constants | 27 | 48.21% |
▷ Public constants | 26 | 96.30% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.60MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/mpdf/qrcode/tests/reference/LOREM-IPSUM-2019-L-100.png | 29.52KB | 0.25KB | ▼ 99.14% |
dist/images/pix.044cc342e0.png | 7.77KB | 7.88KB | 0.00% |
(invalid) dist/images/sprite.png | 0.00KB | 0.00KB | 0.00% |
dist/images/barcode.52cc72e6ee.png | 0.53KB | 0.57KB | 0.00% |
vendor/mpdf/qrcode/tests/reference/LOREM-IPSUM-2019-Q-250.png | 183.72KB | 0.33KB | ▼ 99.82% |