73% autocomplete-address-and-location-picker-for-woocommerce

Code Review | Autocomplete Address and Location Picker for WooCommerce

WordPress plugin Autocomplete Address and Location Picker for WooCommerce scored73%from 54 tests.

About plugin

  • Plugin page: autocomplete-addr...
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Aug 10, 2021
  • Latest release: Jul 6, 2023
  • Number of updates: 20
  • Update frequency: every 35.0 days
  • Top authors: powerfulwp (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /7,882 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.51MB] [CPU: ▼4.34ms] Passed 4 tests

Server-side resources used by Autocomplete Address and Location Picker for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4024.81 ▼15.94
Dashboard /wp-admin3.92 ▲0.6254.66 ▲1.21
Posts /wp-admin/edit.php3.97 ▲0.6254.42 ▲6.11
Add New Post /wp-admin/post-new.php6.46 ▲0.5791.49 ▼8.75
Media Library /wp-admin/upload.php3.68 ▲0.4645.64 ▲7.97
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.0541.19

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 201 new files
Database: no new tables, 13 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Autocomplete Address and Location Picker for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,488 ▼27314.36 ▲0.170.46 ▼1.266.60 ▼38.20
Dashboard /wp-admin2,229 ▲555.55 ▲0.0083.80 ▼15.5244.66 ▲0.22
Posts /wp-admin/edit.php2,138 ▲352.04 ▲0.1038.99 ▲1.4136.31 ▲0.20
Add New Post /wp-admin/post-new.php1,558 ▲3223.23 ▼0.43636.98 ▼57.5074.80 ▲16.86
Media Library /wp-admin/upload.php1,437 ▲374.22 ▲0.00100.46 ▼15.0248.09 ▼0.83
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0861.7225.7427.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/autocomplete-address-and-location-picker-for-woocommerce/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 12 options
    • fs_debug_mode
    • aafw_center_map_longitude
    • aafw_center_map_latitude
    • fs_active_plugins
    • can_compress_scripts
    • aafw_map_zoom
    • db_upgraded
    • fs_accounts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/autocomplete-address-and-location-picker-for-woocommerce/admin/partials/aafw-admin-display.php
    • > /wp-content/plugins/autocomplete-address-and-location-picker-for-woocommerce/public/partials/aafw-public-display.php

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

autocomplete-address-and-location-picker-for-woocommerce/autocomplete-address-and-location-picker-for-woocommerce.php 92% from 13 tests

"Autocomplete Address and Location Picker for WooCommerce" version 1.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin34,672 lines of code in 152 files:
LanguageFilesBlank linesComment linesLines of code

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity82.16
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
▷ Abstract classes23.64%
▷ Concrete classes5396.36%
▷ Final classes00.00%
▷ Static methods19915.25%
▷ Public methods91169.81%
▷ Protected methods171.30%
▷ Private methods37728.89%
▷ Named functions106100.00%
▷ Anonymous functions00.00%
▷ Global constants10268.46%
▷ Class constants4731.54%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%