84% address-autocomplete-google-places

Code Review | Address Autocomplete Google Places

WordPress plugin Address Autocomplete Google Places scored84%from 54 tests.

About plugin

  • Plugin page: address-autocompl...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 5, 2023
  • Latest release: Jul 13, 2023
  • Number of updates: 4
  • Update frequency: every 40.2 days
  • Top authors: devpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /383 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Address Autocomplete Google Places
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.23 ▲2.74
Dashboard /wp-admin3.33 ▲0.0251.11 ▲0.72
Posts /wp-admin/edit.php3.38 ▲0.0250.00 ▲3.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.18 ▲0.56
Media Library /wp-admin/upload.php3.25 ▲0.0237.12 ▼0.19

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Address Autocomplete Google Places
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.72 ▲0.371.86 ▼0.0945.72 ▼2.89
Dashboard /wp-admin2,198 ▲245.65 ▼0.0196.18 ▲4.5045.82 ▼2.35
Posts /wp-admin/edit.php2,106 ▲61.97 ▼0.0433.96 ▼7.8033.27 ▼1.16
Add New Post /wp-admin/post-new.php1,529 ▼223.10 ▼0.16659.91 ▲17.0362.14 ▲2.29
Media Library /wp-admin/upload.php1,406 ▲94.20 ▼0.0299.25 ▲0.1042.48 ▼1.76

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/address-autocomplete-google-places/address-autocomplete.php:59
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/address-autocomplete-google-places/includes/class-settings.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 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
1 plugin tags: woocommerce

address-autocomplete-google-places/address-autocomplete.php 85% from 13 tests

The primary PHP file in "Address Autocomplete Google Places" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.2")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("address-autocomplete-google-places.php" instead of "address-autocomplete.php")

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
Good job! No executable or dangerous file extensions detected308 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.39MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/icon-128x128.png3.13KB2.28KB▼ 27.23%
.wordpress-org/banner-1544x500.png70.17KB25.98KB▼ 62.98%
.wordpress-org/banner-772x250.png46.69KB14.94KB▼ 68.00%
.wordpress-org/screenshot-2.png127.41KB31.63KB▼ 75.18%
.wordpress-org/icon-256x256.png3.36KB1.26KB▼ 62.45%