10% boleto-simples

Code Review | Boleto Simples

WordPress plugin Boleto Simples scored10%from 54 tests.

About plugin

  • Plugin page: boleto-simples
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Jul 24, 2015
  • Number of updates: 3
  • Update frequency: every 37.3 days
  • Top authors: ooprogramador (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,363 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.355.35 ▼32.77
Dashboard /wp-admin2.13 ▼1.226.74 ▼54.13
Posts /wp-admin/edit.php2.13 ▼1.237.85 ▼39.29
Add New Post /wp-admin/post-new.php2.13 ▼3.766.40 ▼86.52
Media Library /wp-admin/upload.php2.13 ▼1.107.62 ▼28.59
Boleto /wp-admin/options-general.php?page=boleto-settings2.136.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲18013.63 ▼0.805.39 ▲3.6045.18 ▲4.37
Dashboard /wp-admin2,226 ▲354.85 ▼0.0398.75 ▼4.7136.37 ▼4.73
Posts /wp-admin/edit.php2,109 ▲202.02 ▼0.0133.61 ▼1.7135.56 ▲1.47
Add New Post /wp-admin/post-new.php1,530 ▲1617.64 ▲0.11691.98 ▲72.6248.00 ▼9.74
Media Library /wp-admin/upload.php1,408 ▲204.20 ▼0.0992.88 ▼19.4439.83 ▼7.12
Boleto /wp-admin/options-general.php?page=boleto-settings9902.1424.4430.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP410019400
JavaScript17727
Markdown16016

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 code0.27
Average class complexity12.00
▷ Minimum class complexity5.00
▷ Maximum class complexity19.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/step2.png34.30KB12.96KB▼ 62.22%
images/step1.png97.94KB45.50KB▼ 53.54%