90% woocommerce-extra-checkout-fields-for-brazil

Code Review | Brazilian Market on WooCommerce

WordPress plugin Brazilian Market on WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-extra...
  • Plugin version: 4.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2012
  • Latest release: Nov 6, 2023
  • Number of updates: 74
  • Update frequency: every 54.2 days
  • Top authors: claudiosanches (100%)

Code review

54 tests

User reviews

491 reviews

Install metrics

90,000+ active /688,309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.88ms] Passed 4 tests

A check of server-side resources used by Brazilian Market on WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.34 ▼2.60
Dashboard /wp-admin3.33 ▲0.0247.00 ▼3.41
Posts /wp-admin/edit.php3.38 ▲0.0249.12 ▲7.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.55 ▼5.69
Media Library /wp-admin/upload.php3.25 ▲0.0233.19 ▼3.82

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Brazilian Market on WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.28 ▼0.431.75 ▲0.0743.56 ▼0.90
Dashboard /wp-admin2,195 ▲215.51 ▼0.1489.32 ▼7.3538.69 ▼5.15
Posts /wp-admin/edit.php2,106 ▲62.00 ▼0.0239.48 ▲4.2135.98 ▲2.73
Add New Post /wp-admin/post-new.php1,532 ▲623.01 ▼0.20657.27 ▲31.9949.43 ▼7.55
Media Library /wp-admin/upload.php1,409 ▲94.20 ▲0.0097.28 ▼1.7741.64 ▲0.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: cpnj, checkout, cpf, woocommerce, brazil

woocommerce-extra-checkout-fields-for-brazil/woocommerce-extra-checkout-fields-for-brazil.php Passed 13 tests

The primary PHP file in "Brazilian Market on WooCommerce" version 4.0.0 is used by WordPress to initiate all plugin functionality
109 characters long description:
Adds new checkout fields, field masks and other things necessary to properly work with WooCommerce on Brazil.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,901 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP173296071,632
JavaScript101601151,016
PO File199164250
CSS3003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity21.44
▷ Minimum class complexity8.00
▷ Maximum class complexity79.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods66
▷ Static methods46.06%
▷ Public methods5887.88%
▷ Protected methods46.06%
▷ Private methods46.06%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.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
There are no PNG files in this plugin