Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/boleto-pag-seguro-direto/BoletoPagSeguroDireto_Plugin.php+31
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.00ms] Passed 4 tests
An overview of server-side resources used by Boleto Pag Seguro Direto
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.39 ▼7.15 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.96 ▲2.41 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 46.63 ▼5.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.95 ▼10.00 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.11 ▼1.65 |
Boleto Pag Seguro Direto /wp-admin/plugins.php?page=BoletoPagSeguroDireto_PluginSettings | 3.22 | 31.32 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 15 new options
New WordPress options |
---|
theysaidso_admin_options |
BoletoPagSeguroDireto_Plugin_CTextInput |
BoletoPagSeguroDireto_Plugin_BTextInput |
BoletoPagSeguroDireto_Plugin__installed |
can_compress_scripts |
BoletoPagSeguroDireto_Plugin_GTextInput |
widget_recent-comments |
BoletoPagSeguroDireto_Plugin_ETextInput |
BoletoPagSeguroDireto_Plugin_FTextInput |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Boleto Pag Seguro Direto
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.61 ▼0.77 | 1.61 ▼0.58 | 42.21 ▼4.94 |
Dashboard /wp-admin | 2,210 ▲22 | 5.84 ▲0.95 | 103.06 ▼8.56 | 43.42 ▲0.70 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.97 ▼0.00 | 36.29 ▼1.81 | 35.64 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.36 ▲1.60 | 671.72 ▼11.15 | 57.85 ▲8.46 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.20 ▲0.04 | 96.46 ▼6.15 | 41.75 ▼3.58 |
Boleto Pag Seguro Direto /wp-admin/plugins.php?page=BoletoPagSeguroDireto_PluginSettings | 1,129 | 2.07 | 30.01 | 31.61 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 15 options
- BoletoPagSeguroDireto_Plugin_ETextInput
- theysaidso_admin_options
- BoletoPagSeguroDireto_Plugin__installed
- widget_recent-posts
- widget_theysaidso_widget
- BoletoPagSeguroDireto_Plugin__version
- BoletoPagSeguroDireto_Plugin_CTextInput
- BoletoPagSeguroDireto_Plugin_ATextInput
- BoletoPagSeguroDireto_Plugin_GTextInput
- BoletoPagSeguroDireto_Plugin_DTextInput
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/boleto-pag-seguro-direto/boleto/pages/form-dados-do-boleto-confirma.php
- > /wp-content/plugins/boleto-pag-seguro-direto/boleto/pages/form-dados-do-boleto.php
- > /wp-content/plugins/boleto-pag-seguro-direto/boleto/pages/formata.php
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'BOLETO_PAG_SEGURO_DIRETO_DIRBoletoPagSeguroDireto_ShortCodeLoader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/boleto-pag-seguro-direto/boleto/shortcodes/form-dados-do-boleto-confirma.php on line 2
- > PHP Warning
Use of undefined constant BOLETO_PAG_SEGURO_DIRETO_DIR - assumed 'BOLETO_PAG_SEGURO_DIRETO_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/boleto-pag-seguro-direto/boleto/shortcodes/form-dados-do-boleto.php on line 2
- > PHP Warning
include_once(BOLETO_PAG_SEGURO_DIRETO_DIRBoletoPagSeguroDireto_ShortCodeLoader.php): failed to open stream: No such file or directory in wp-content/plugins/boleto-pag-seguro-direto/boleto/shortcodes/form-dados-do-boleto.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'BoletoPagSeguroDireto_ShortCodeLoader' not found in wp-content/plugins/boleto-pag-seguro-direto/boleto/shortcodes/form-dados-do-boleto-confirma.php:3
- > PHP Fatal error
Uncaught Error: Class 'BoletoPagSeguroDireto_ShortCodeLoader' not found in wp-content/plugins/boleto-pag-seguro-direto/boleto/shortcodes/form-dados-do-boleto.php:3
- > PHP Warning
include(): Failed opening 'BOLETO_PAG_SEGURO_DIRETO_DIRboleto/pages/config/Url.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/boleto-pag-seguro-direto/boleto/pages/core/PagSeguro.php on line 3
- > PHP Warning
Use of undefined constant BOLETO_PAG_SEGURO_DIRETO_DIR - assumed 'BOLETO_PAG_SEGURO_DIRETO_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/boleto-pag-seguro-direto/boleto/shortcodes/PagamentoBoleto.php on line 2
- > PHP Warning
include(BOLETO_PAG_SEGURO_DIRETO_DIRboleto/pages/config/Url.php): failed to open stream: No such file or directory in wp-content/plugins/boleto-pag-seguro-direto/boleto/pages/core/PagSeguro.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'BoletoPagSeguroDireto_ShortCodeLoader' not found in wp-content/plugins/boleto-pag-seguro-direto/boleto/shortcodes/PagamentoBoleto.php:4
- > PHP Warning
include_once(): Failed opening 'BOLETO_PAG_SEGURO_DIRETO_DIRBoletoPagSeguroDireto_ShortCodeLoader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/boleto-pag-seguro-direto/boleto/shortcodes/PagamentoBoleto.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: paypal, donate, boleto online, recebimentos de doaes, donation...
boleto-pag-seguro-direto/boleto-pag-seguro-direto.php 92% from 13 tests
The main file in "Boleto Pag Seguro Direto" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 488 characters long)
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 detected2,333 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 314 | 705 | 1,855 |
PO File | 2 | 182 | 234 | 478 |
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.31 |
Average class complexity | 9.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 11 | 8.87% |
▷ Public methods | 90 | 72.58% |
▷ Protected methods | 32 | 25.81% |
▷ Private methods | 2 | 1.61% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-128x128.png | 7.09KB | 3.45KB | ▼ 51.36% |