Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/boleto-simples/class_boletosimples.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; boletoSimplesAPI has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼53.18ms] Passed 4 tests
Server-side resources used by Boleto Simples
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 5.35 ▼32.77 |
Dashboard /wp-admin | 2.13 ▼1.22 | 6.74 ▼54.13 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 7.85 ▼39.29 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.40 ▼86.52 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 7.62 ▼28.59 |
Boleto /wp-admin/options-general.php?page=boleto-settings | 2.13 | 6.85 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Boleto Simples
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲180 | 13.63 ▼0.80 | 5.39 ▲3.60 | 45.18 ▲4.37 |
Dashboard /wp-admin | 2,226 ▲35 | 4.85 ▼0.03 | 98.75 ▼4.71 | 36.37 ▼4.73 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.02 ▼0.01 | 33.61 ▼1.71 | 35.56 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 17.64 ▲0.11 | 691.98 ▲72.62 | 48.00 ▼9.74 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.20 ▼0.09 | 92.88 ▼19.44 | 39.83 ▼7.12 |
Boleto /wp-admin/options-general.php?page=boleto-settings | 990 | 2.14 | 24.44 | 30.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/boleto-simples/class_boletosimples.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; boletoSimplesAPI has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=boleto-settings
- > Deprecated in wp-content/plugins/boleto-simples/class_boletosimples.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; boletoSimplesAPI has a deprecated constructor
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/boleto-simples/views/admin_form.php:24
- > PHP Fatal error
Uncaught Error: Class 'boletoSimplesAPI' not found in wp-content/plugins/boleto-simples/views/admin_grid.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/boleto-simples/boletosimples.php:219
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: bill bank, boleto simples, boleto
boleto-simples/boletosimples.php 85% from 13 tests
The entry point to "Boleto Simples" version 0.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("boleto-simples.php" instead of "boletosimples.php")
- Description: The description should be shorter than 140 characters (currently 166 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin443 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 100 | 19 | 400 |
JavaScript | 1 | 7 | 7 | 27 |
Markdown | 1 | 6 | 0 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/step2.png | 34.30KB | 12.96KB | ▼ 62.22% |
images/step1.png | 97.94KB | 45.50KB | ▼ 53.54% |