Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/boleto-sicoob-facil-cnab-240/BoletoSicoobFacilCnab_Plugin.php+41
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▼1.77MB] [CPU: ▼62.69ms] Passed 4 tests
Server-side resources used by Boleto Sicoob Fácil
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 5.57 ▼35.52 |
Dashboard /wp-admin | 2.24 ▼1.06 | 7.73 ▼52.23 |
Posts /wp-admin/edit.php | 2.24 ▼1.11 | 7.45 ▼42.60 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.66 | 7.80 ▼120.42 |
Media Library /wp-admin/upload.php | 2.24 ▼0.99 | 6.94 ▼28.35 |
Boleto Sicoob Facil Cnab /wp-admin/plugins.php?page=BoletoSicoobFacilCnab_PluginSettings | 2.35 | 7.28 |
Server storage [IO: ▲0.34MB] [DB: ▲0.18MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: 2 new tables, 20 new options
New tables |
---|
wp_cod_espec_titulo |
wp_cod_mun |
New WordPress options |
---|
can_compress_scripts |
BoletoSicoobFacilCnab_Plugin_ATextInputDescInstrucao3 |
widget_theysaidso_widget |
BoletoSicoobFacilCnab_Plugin__installed |
BoletoSicoobFacilCnab_Plugin_ATextInputPercTaxaMulta |
BoletoSicoobFacilCnab_Plugin_ATextInputnumContaCorrente |
theysaidso_admin_options |
BoletoSicoobFacilCnab_Plugin_ATextInputChaveAcessoWeb |
widget_recent-comments |
BoletoSicoobFacilCnab_Plugin_ATextInputDescInstrucao2 |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Boleto Sicoob Fácil
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲158 | 13.99 ▼0.38 | 5.66 ▲3.20 | 39.60 ▼5.19 |
Dashboard /wp-admin | 2,232 ▲32 | 4.86 ▼0.99 | 109.37 ▲4.89 | 40.87 ▼0.42 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.06 ▲0.01 | 40.52 ▲4.46 | 36.07 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,550 ▲5 | 18.36 ▼4.58 | 642.18 ▲45.57 | 53.93 ▼4.72 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.20 ▼0.08 | 105.15 ▼7.13 | 44.15 ▲1.24 |
Boleto Sicoob Facil Cnab /wp-admin/plugins.php?page=BoletoSicoobFacilCnab_PluginSettings | 1,068 | 2.06 | 27.66 | 30.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.18MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my-style-1 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_cod_mun
- wp_cod_espec_titulo
- The uninstall procedure has failed, leaving 20 options in the database
- can_compress_scripts
- BoletoSicoobFacilCnab_Plugin_ATextInputDescInstrucao2
- BoletoSicoobFacilCnab_Plugin_ATextInputDescInstrucao1
- widget_theysaidso_widget
- BoletoSicoobFacilCnab_Plugin_ATextInputDiasLimitePagamento
- widget_recent-comments
- BoletoSicoobFacilCnab_Plugin_ATextInputDescInstrucao5
- theysaidso_admin_options
- BoletoSicoobFacilCnab_Plugin_ATextInputnumCliente
- BoletoSicoobFacilCnab_Plugin_ATextInputPercTaxaMora
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/plugins.php?page=BoletoSicoobFacilCnab_PluginSettings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my-style-1 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/plugins.php?page=BoletoSicoobFacilCnab_PluginSettings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my-ajax-handle handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 50% 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
Almost there! Just fix the following items
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/boleto-sicoob-facil-cnab-240/boleto-sicoob-facil-cnab.php:34
- > PHP Warning
include_once(): Failed opening 'BOLETO_SICOOB_FACIL_CNAB_DIRBoletoSicoobFacilCnab_ShortCodeLoader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/boleto-sicoob-facil-cnab-240/contents/boleto/shortcodes/shortcodes.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/boleto-sicoob-facil-cnab-240/contents/boleto/pages/active-plugins.php:8
- > PHP Warning
include_once(BOLETO_SICOOB_FACIL_CNAB_DIRBoletoSicoobFacilCnab_ShortCodeLoader.php): failed to open stream: No such file or directory in wp-content/plugins/boleto-sicoob-facil-cnab-240/contents/boleto/shortcodes/shortcodes.php on line 6
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/boleto-sicoob-facil-cnab-240/contents/boleto/pages/active-plugins.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/boleto-sicoob-facil-cnab-240/contents/boleto/pages/active-plugins.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/boleto-sicoob-facil-cnab-240/contents/boleto/create/all-pages.php:13
- > PHP Warning
Use of undefined constant BOLETO_SICOOB_FACIL_CNAB_DIR - assumed 'BOLETO_SICOOB_FACIL_CNAB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/boleto-sicoob-facil-cnab-240/contents/boleto/shortcodes/shortcodes.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'BoletoSicoobFacilCnab_ShortCodeLoader' not found in wp-content/plugins/boleto-sicoob-facil-cnab-240/contents/boleto/shortcodes/shortcodes.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/boleto-sicoob-facil-cnab-240/contents/boleto/pages/importador-cnab.php:380
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
10 plugin tags: cobrana bancria, boleto, api de boletos, donate, sicoob...
boleto-sicoob-facil-cnab-240/boleto-sicoob-facil-cnab.php 77% from 13 tests
"Boleto Sicoob Fácil" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 265 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("boleto-sicoob-facil-cnab-240.php" instead of "boleto-sicoob-facil-cnab.php")
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
Good job! No executable or dangerous file extensions detected8,458 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 516 | 654 | 7,818 |
CSS | 1 | 86 | 3 | 309 |
PO File | 1 | 101 | 160 | 233 |
JavaScript | 2 | 13 | 2 | 98 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 62.16% |
▷ Protected methods | 28 | 37.84% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin