84% checkout-address-autofill-for-woocommerce

Code Review | Checkout Address AutoFill For WooCommerce

WordPress plugin Checkout Address AutoFill For WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: checkout-address-...
  • Plugin version: 1.1.8
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.3
  • WordPress version: 6.3.1
  • First release: Apr 18, 2019
  • Latest release: Jan 24, 2022
  • Number of updates: 36
  • Update frequency: every 28.1 days
  • Top authors: tripathytanmay (38.89%)pitabas106 (38.89%)zetamatic (27.78%)

Code review

54 tests

User reviews

28 reviews

Install metrics

900+ active /36,187 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.84ms] Passed 4 tests

An overview of server-side resources used by Checkout Address AutoFill For WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.65 ▲1.85
Dashboard /wp-admin3.31 ▲0.0048.99 ▼3.88
Posts /wp-admin/edit.php3.36 ▲0.0048.19 ▼0.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.49 ▼15.22
Media Library /wp-admin/upload.php3.23 ▲0.0036.06 ▼3.72

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
wc_af_location_picker_image_for_testing
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Checkout Address AutoFill For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.23 ▼0.906.96 ▲5.2346.00 ▲1.65
Dashboard /wp-admin2,218 ▲125.81 ▲0.94101.37 ▼3.1940.95 ▼5.26
Posts /wp-admin/edit.php2,103 ▲32.05 ▲0.0037.09 ▼5.7333.58 ▼1.72
Add New Post /wp-admin/post-new.php1,550 ▲1023.31 ▲5.12660.93 ▲20.6749.61 ▲0.76
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.0295.31 ▼6.5642.08 ▼4.19

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • wc_af_location_picker_image_for_testing
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/checkout-address-autofill-for-woocommerce/inc/plugin-activation-error.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: google address validation, google address autofill, checkout address autocomplete, google address autocomplete, woocommerce address autocomplete

checkout-address-autofill-for-woocommerce/checkout-address-autofill-for-woocommerce.php 92% from 13 tests

This is the main PHP file of "Checkout Address AutoFill For WooCommerce" version 1.1.8, 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:
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Success! There were no dangerous files found in this plugin2,167 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP85401671,648
JavaScript28136391
CSS4235128

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity9.00
▷ Minimum class complexity3.00
▷ Maximum class complexity23.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods13.03%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/location.png40.82KB6.87KB▼ 83.17%
assets/images/location.png40.82KB6.87KB▼ 83.17%
assets/images/zeta_checkout_autofill-1.png54.55KB54.55KB0.00%
assets/images/select2.png0.60KB0.99KB0.00%
assets/images/location-picker.png3.23KB2.08KB▼ 35.49%