Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.66ms] Passed 4 tests
An overview of server-side resources used by Select Estados e Cidades Brasil
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.52 ▼14.46 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.89 ▲2.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.50 ▼4.29 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.94 ▼14.02 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.91 ▲3.24 |
Estados e Cidades /wp-admin/admin.php?page=secbr_wp | 3.21 | 34.05 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Select Estados e Cidades Brasil
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲78 | 13.31 ▼1.07 | 5.00 ▲2.98 | 40.67 ▲4.23 |
Dashboard /wp-admin | 2,230 ▲45 | 6.02 ▲0.20 | 101.00 ▼0.15 | 81.49 ▲42.58 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.06 ▲0.09 | 34.91 ▼6.87 | 32.63 ▼3.54 |
Add New Post /wp-admin/post-new.php | 1,541 ▲19 | 23.09 ▼0.08 | 718.60 ▲103.74 | 63.22 ▲15.14 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.26 ▲0.08 | 98.93 ▼6.40 | 70.91 ▲26.76 |
Estados e Cidades /wp-admin/admin.php?page=secbr_wp | 979 | 2.22 | 29.85 | 41.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=secbr_wp
- > Warning in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/mwp-secbr-html-form.php+35
include(html/documentacao.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=secbr_wp
- > Warning in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/mwp-secbr-html-form.php+35
include(): Failed opening 'html/documentacao.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=secbr_wp
- > Warning in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/mwp-secbr-html-form.php+35
include(html/plugins.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=secbr_wp
- > Warning in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/mwp-secbr-html-form.php+35
include(): Failed opening 'html/plugins.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=secbr_wp
- > Warning in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-sidebar.php+6
simplexml_load_file(): https://www.mestresdowp.com.br/checkout/artigos.php:1: parser error : Start tag expected, '<' not found
- > GET request to /wp-admin/admin.php?page=secbr_wp
- > Warning in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-sidebar.php+6
simplexml_load_file(): [{"ID":306678,"post_author":"2","post_date":"2023-09-30 10:00:00","post_date_gmt
- > GET request to /wp-admin/admin.php?page=secbr_wp
- > Warning in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-sidebar.php+6
simplexml_load_file(): ^
- > GET request to /wp-admin/admin.php?page=secbr_wp
- > Notice in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-sidebar.php+8
Trying to get property 'artigo' of non-object
- > GET request to /wp-admin/admin.php?page=secbr_wp
- > Warning in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-sidebar.php+8
Invalid argument supplied for foreach()
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-copyright.php
- > /wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-sidebar.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
simplexml_load_file(): [{"ID":306678,"post_author":"2","post_date":"2023-09-30 10:00:00","post_date_gmt in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-sidebar.php on line 6
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-sidebar.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/select-estados-e-cidades-brasil/admin/mwp-secbr-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/select-estados-e-cidades-brasil/admin/mwp-secbr-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/config.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/select-estados-e-cidades-brasil/includes/mwp-secbr-scripts.php:2
- > PHP Warning
simplexml_load_file(): https://www.mestresdowp.com.br/checkout/artigos.php:1: parser error : Start tag expected, '<' not found in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-sidebar.php on line 6
- > PHP Notice
Undefined variable: mwp_url_icons in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/config.php on line 3
- > PHP Notice
Trying to get property 'artigo' of non-object in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-sidebar.php on line 8
- > PHP Warning
simplexml_load_file(): ^ in wp-content/plugins/select-estados-e-cidades-brasil/admin/includes/html/mestres-wp-sidebar.php on line 6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== select-estados-e-cidades-brasil ===
)
select-estados-e-cidades-brasil/select-estados-cidades-brasil.php 92% from 13 tests
The primary PHP file in "Select Estados e Cidades Brasil" version 1.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("select-estados-e-cidades-brasil.php" instead of "select-estados-cidades-brasil.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected281 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 2 | 14 | 172 |
CSS | 1 | 11 | 0 | 109 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/mwp-ico-off.png | 1.33KB | 0.73KB | ▼ 45.19% |
admin/assets/images/mwp-logotipo.png | 4.97KB | 2.46KB | ▼ 50.49% |
admin/assets/images/bytesize_settings.png | 1.23KB | 0.70KB | ▼ 43.11% |
admin/assets/images/mwp-ico-on.png | 1.34KB | 0.69KB | ▼ 48.18% |
admin/assets/images/faviconmwp.png | 0.58KB | 0.62KB | 0.00% |