84% checkout-address-suggestion-and-autocomplete-for-woocommerce

Code Review | Checkout Address Suggestion And Autocomplete For Woocommerce

WordPress plugin Checkout Address Suggestion And Autocomplete For Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: checkout-address-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.0
  • WordPress version: 6.3.1
  • First release: May 8, 2015
  • Latest release: May 25, 2015
  • Number of updates: 14
  • Update frequency: every 9.3 days
  • Top authors: magerips (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

50+ active /6,911 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by Checkout Address Suggestion And Autocomplete For Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.31 ▼0.16
Dashboard /wp-admin3.31 ▲0.0149.66 ▼11.54
Posts /wp-admin/edit.php3.36 ▲0.0154.22 ▲5.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.55 ▼12.66
Media Library /wp-admin/upload.php3.23 ▲0.0139.06 ▼0.19

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/checkout-address-suggestion-and-autocomplete-for-woocommerce/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Checkout Address Suggestion And Autocomplete For Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.24 ▼1.142.15 ▲0.4241.52 ▼1.85
Dashboard /wp-admin2,221 ▲185.77 ▲0.90113.78 ▼4.8843.25 ▼2.90
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0236.87 ▲0.6835.14 ▲0.05
Add New Post /wp-admin/post-new.php1,544 ▼13523.23 ▲0.98664.53 ▼24.9452.89 ▼7.59
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.01104.27 ▼13.5643.17 ▼4.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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 following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/checkout-address-suggestion-and-autocomplete-for-woocommerce/index.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/checkout-address-suggestion-and-autocomplete-for-woocommerce/lib/main.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: google address, woocommerce, address autosuggestion, checkout address, checkout...

checkout-address-suggestion-and-autocomplete-for-woocommerce/index.php 92% from 13 tests

This is the main PHP file of "Checkout Address Suggestion And Autocomplete For Woocommerce" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("checkout-address-suggestion-and-autocomplete-for-woocommerce.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin385 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1405352
PHP2131233

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected