90% woo-cielo-boleto

Code Review | WooCommerce Cielo Boleto

WordPress plugin WooCommerce Cielo Boleto scored 90% from 54 tests.

About plugin

  • Plugin page: woo-cielo-boleto
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.1.1
  • WordPress version: 6.3.1
  • First release: May 25, 2019
  • Latest release: May 25, 2019
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: williansantana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,626 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.29ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Cielo Boleto
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.26 ▼1.97
Dashboard /wp-admin3.36 ▲0.0644.87 ▼4.00
Posts /wp-admin/edit.php3.41 ▲0.0547.58 ▲1.09
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.16 ▲4.69
Media Library /wp-admin/upload.php3.28 ▲0.0534.62 ▼0.29

Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

WooCommerce Cielo Boleto: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.71 ▼0.541.74 ▲0.1540.94 ▲4.33
Dashboard /wp-admin2,237 ▲455.21 ▲0.28101.42 ▼8.4541.15 ▼0.71
Posts /wp-admin/edit.php2,124 ▲382.29 ▲0.2839.50 ▲4.0335.13 ▲3.90
Add New Post /wp-admin/post-new.php1,548 ▲1518.75 ▼4.50630.74 ▼27.6656.79 ▼7.49
Media Library /wp-admin/upload.php1,419 ▲344.45 ▲0.2497.98 ▼2.5041.83 ▼2.82

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: gateway, cielo, pagamentos, api v3, checkout...

woo-cielo-boleto/woo-cielo-boleto.php 92% from 13 tests

The main file in "WooCommerce Cielo Boleto" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,795 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP288242,4301,478
PO File16162241
JavaScript261933
SVG10030
CSS23512
JSON1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.68
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes22
▷ Abstract classes14.55%
▷ Concrete classes2195.45%
▷ Final classes00.00%
Methods127
▷ Static methods3325.98%
▷ Public methods12195.28%
▷ Protected methods32.36%
▷ Private methods32.36%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected