84% address-autocomplete-anything

Code Review | Address Autocomplete Anything

WordPress plugin Address Autocomplete Anything scored84%from 54 tests.

About plugin

  • Plugin page: address-autocompl...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 11, 2022
  • Latest release: Jun 16, 2023
  • Number of updates: 12
  • Update frequency: every 40.8 days
  • Top authors: wpsunshine (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,588 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.60ms] Passed 4 tests

This is a short check of server-side resources used by Address Autocomplete Anything
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.04 ▼2.71
Dashboard /wp-admin3.44 ▲0.0944.36 ▼15.48
Posts /wp-admin/edit.php3.55 ▲0.1945.24 ▼4.83
Add New Post /wp-admin/post-new.php6.02 ▲0.1390.68 ▼11.36
Media Library /wp-admin/upload.php3.36 ▲0.1336.84 ▲1.60
Address Autocomplete /wp-admin/options-general.php?page=wps_aa3.3433.23

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Address Autocomplete Anything
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.54 ▼0.841.61 ▼0.1240.49 ▼5.23
Dashboard /wp-admin2,213 ▲244.89 ▼0.07104.75 ▼14.5539.35 ▼5.17
Posts /wp-admin/edit.php2,096 ▲41.99 ▼0.0341.29 ▲0.1733.48 ▼3.82
Add New Post /wp-admin/post-new.php1,536 ▼2023.34 ▲4.97591.99 ▼63.1349.71 ▼6.38
Media Library /wp-admin/upload.php1,395 ▲44.26 ▲0.0596.92 ▼5.8645.92 ▲2.02
Address Autocomplete /wp-admin/options-general.php?page=wps_aa2,2102.4746.0252.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • wps_aa_install_time

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/address-autocomplete-anything/address-autocomplete.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/address-autocomplete-anything/includes/admin/class-options.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/address-autocomplete-anything/includes/admin/promos.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: google, autocomplete, gravityforms, woocommerce, form...

address-autocomplete-anything/address-autocomplete.php 92% from 13 tests

The main PHP file in "Address Autocomplete Anything" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("address-autocomplete-anything.php" instead of "address-autocomplete.php")

Code Analysis Passed 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
No dangerous file extensions were detected973 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity30.50
▷ Minimum class complexity22.00
▷ Maximum class complexity39.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods312.00%
▷ Public methods1976.00%
▷ Protected methods28.00%
▷ Private methods416.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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 were not PNG files found in your plugin