99% addy-autocomplete-woocommerce

Code Review | Addy's NZ Address Autocomplete for WooCommerce

WordPress plugin Addy's NZ Address Autocomplete for WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: addy-autocomplete...
  • Plugin version: 2.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.1
  • WordPress version: 5.9.2
  • First release: Feb 15, 2018
  • Latest release: May 5, 2020
  • Number of updates: 24
  • Update frequency: every 33.8 days
  • Top authors: jaystrydom (87.5%)joelrozen (16.67%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 2,469 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by Addy's NZ Address Autocomplete for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0355.11 ▲3.55
Dashboard /wp-admin3.43 ▲0.0232.89 ▲0.75
Posts /wp-admin/edit.php3.66 ▲0.0236.76 ▼1.94
Add New Post /wp-admin/post-new.php6.90 ▼0.0793.12 ▼1,181.71
Media Library /wp-admin/upload.php3.31 ▲0.0224.66 ▼0.81

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Addy's NZ Address Autocomplete for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,764 ▲1016.20 ▲0.465.84 ▼0.042.20 ▼0.98
Dashboard /wp-admin2,895 ▲376.10 ▼0.15113.78 ▼20.19156.20 ▼7.52
Posts /wp-admin/edit.php2,691 ▼33.23 ▼0.0163.64 ▲0.04139.42 ▲0.20
Add New Post /wp-admin/post-new.php1,781 ▲7422.44 ▲2.48399.69 ▼28.80157.96 ▼1.90
Media Library /wp-admin/upload.php1,695 ▼65.53 ▲0.04157.12 ▲17.13203.92 ▲15.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


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: You can look at the official readme.txt

addy-autocomplete-woocommerce/addy-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Addy's NZ Address Autocomplete for WooCommerce" version 2.1.7
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("addy-autocomplete-woocommerce.php" instead of "addy-woocommerce.php")

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
No dangerous file extensions were detected226 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin