89% woocommerce-checkout-cielo

Code Review | Claudio Sanches - Checkout Cielo for WooCommerce

WordPress plugin Claudio Sanches - Checkout Cielo for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: woocommerce-check...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Apr 12, 2015
  • Latest release: Aug 11, 2020
  • Number of updates: 13
  • Update frequency: every 150.2 days
  • Top authors: claudiosanches (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

1,000+ active /22,477 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.56ms] Passed 4 tests

An overview of server-side resources used by Claudio Sanches - Checkout Cielo for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.25 ▼2.44
Dashboard /wp-admin3.32 ▲0.0246.99 ▼4.32
Posts /wp-admin/edit.php3.37 ▲0.0151.00 ▲2.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.13 ▼12.41
Media Library /wp-admin/upload.php3.25 ▲0.0137.36 ▲0.93

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Claudio Sanches - Checkout Cielo for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.61 ▼0.761.69 ▼0.3843.08 ▼0.52
Dashboard /wp-admin2,217 ▲295.86 ▼0.05101.30 ▼14.6939.46 ▼4.52
Posts /wp-admin/edit.php2,097 ▲112.01 ▼0.0039.20 ▲1.6138.29 ▲3.83
Add New Post /wp-admin/post-new.php1,559 ▲2418.54 ▼4.71605.97 ▼58.0864.18 ▲8.36
Media Library /wp-admin/upload.php1,399 ▲144.30 ▲0.1093.47 ▼6.9340.76 ▼0.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: cielo, woocommerce, payment

woocommerce-checkout-cielo/woocommerce-checkout-cielo.php 77% from 13 tests

This is the main PHP file of "Claudio Sanches - Checkout Cielo for WooCommerce" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages/")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected853 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6133288628
PO File18288225

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity28.67
▷ Minimum class complexity5.00
▷ Maximum class complexity48.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods13.03%
▷ Public methods2369.70%
▷ Protected methods927.27%
▷ Private methods13.03%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/cielo.png1.19KB1.71KB0.00%