Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.44ms] Passed 4 tests
Server-side resources used by Pagfort Boleto Bancário para WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.39 ▼6.30 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.31 ▼3.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.74 ▼1.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.50 ▼18.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.93 ▼1.02 |
Server storage [IO: ▲3.94MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 191 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Pagfort Boleto Bancário para WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.26 ▼1.12 | 1.54 ▼0.26 | 40.34 ▼7.02 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▼0.00 | 108.60 ▲9.54 | 36.74 ▼6.90 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.02 | 41.74 ▲0.91 | 36.10 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,519 ▼23 | 23.28 ▲4.95 | 628.37 ▲24.94 | 47.41 ▼6.91 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.17 ▼0.03 | 97.57 ▲4.99 | 41.71 ▲1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 62× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(../lib/nusoap.php): failed to open stream: No such file or directory in wp-content/plugins/pagfort-boleto/vendor/econea/nusoap/samples/wsdlclient6.php on line 12
- > PHP Warning
require_once(../lib/nusoap.php): failed to open stream: No such file or directory in wp-content/plugins/pagfort-boleto/vendor/econea/nusoap/samples/wsdlclient3c.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\BarcodeGenerator' not found in wp-content/plugins/pagfort-boleto/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorJPG.php:7
- > PHP Warning
require_once(../lib/nusoap.php): failed to open stream: No such file or directory in wp-content/plugins/pagfort-boleto/vendor/econea/nusoap/samples/getfile2client.php on line 12
- > PHP Warning
require_once(../lib/nusoap.php): failed to open stream: No such file or directory in wp-content/plugins/pagfort-boleto/vendor/econea/nusoap/samples/wsdlclient11.php on line 14
- > PHP Warning
require_once(../lib/nusoap.php): failed to open stream: No such file or directory in wp-content/plugins/pagfort-boleto/vendor/econea/nusoap/samples/wsdlclient9.php on line 12
- > PHP Fatal error
require_once(): Failed opening required '../lib/nusoap.php' (include_path='.:/usr/share/php') in wp-content/plugins/pagfort-boleto/vendor/econea/nusoap/samples/wsdlclient3c.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pagfort-boleto/templates/woocommerce/checkout/pagfort-boleto/bank-slip/thankyou.php:3
- > PHP Warning
require_once(../lib/nusoap.php): failed to open stream: No such file or directory in wp-content/plugins/pagfort-boleto/vendor/econea/nusoap/samples/wsdlclient14.php on line 12
- > PHP Fatal error
require_once(): Failed opening required '../lib/nusoap.php' (include_path='.:/usr/share/php') in wp-content/plugins/pagfort-boleto/vendor/econea/nusoap/samples/wsdlclient8.php on line 12
- > PHP Warning
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 93% 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
6 plugin tags: spc protesto nacional, boleto, woocommerce, boleto bancrio, payment bank slip...
pagfort-boleto/pagfort-boleto.php 85% from 13 tests
"Pagfort Boleto Bancário para WooCommerce" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Git Repository: Please remove the Git repository from this plugin
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected43,943 lines of code in 124 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 36 | 3,099 | 469 | 30,790 |
PHP | 62 | 917 | 3,926 | 11,470 |
JavaScript | 8 | 41 | 10 | 461 |
Markdown | 4 | 167 | 0 | 388 |
PO File | 1 | 177 | 267 | 325 |
JSON | 4 | 0 | 0 | 214 |
CSS | 4 | 41 | 9 | 169 |
SVG | 2 | 0 | 0 | 74 |
YAML | 2 | 11 | 28 | 28 |
XML | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 47.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 390.00 |
Average method complexity | 6.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 1 | 2.56% |
▷ Concrete classes | 38 | 97.44% |
▷ Final classes | 0 | 0.00% |
Methods | 309 | |
▷ Static methods | 15 | 4.85% |
▷ Public methods | 246 | 79.61% |
▷ Protected methods | 43 | 13.92% |
▷ Private methods | 20 | 6.47% |
Functions | 13 | |
▷ Named functions | 10 | 76.92% |
▷ Anonymous functions | 3 | 23.08% |
Constants | 33 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 33 | 100.00% |
▷ Public constants | 33 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
46 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/econea/nusoap/docs/media/images/Tplus.png | 0.22KB | 0.13KB | ▼ 41.89% |
vendor/econea/nusoap/docs/media/images/blank.png | 0.14KB | 0.09KB | ▼ 32.64% |
vendor/econea/nusoap/docs/media/images/Global.png | 0.70KB | 0.57KB | ▼ 17.98% |
vendor/econea/nusoap/docs/media/images/function_folder.png | 0.59KB | 0.47KB | ▼ 21.16% |
vendor/econea/nusoap/docs/media/images/AbstractPrivateClass.png | 0.83KB | 0.63KB | ▼ 23.35% |