94% woo-autocomplete-checkout-address

Code Review | Woocommerce autocomplete checkout address

WordPress plugin Woocommerce autocomplete checkout address scored 94% from 54 tests.

About plugin

  • Plugin page: woo-autocomplete-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 5.8.1
  • First release: Jun 6, 2019
  • Latest release: Dec 23, 2020
  • Number of updates: 11
  • Update frequency: every 51.5 days
  • Top authors: priya5656 (90.91%)acespritech (18.18%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active / 5,415 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Woocommerce autocomplete checkout address
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.10 ▲12.16
Dashboard /wp-admin3.07 ▲0.0143.05 ▼3.95
Posts /wp-admin/edit.php3.12 ▲0.0142.31 ▼4.22
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.20 ▼569.49
Media Library /wp-admin/upload.php3.01 ▲0.0126.05 ▼6.59
Autocomplete Checkout Address /wp-admin/admin.php?page=ace_waca_auto_complete_page2.9827.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Woocommerce autocomplete checkout address: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9315.87 ▲0.218.32 ▼1.0647.00 ▼0.83
Dashboard /wp-admin2,983 ▲496.09 ▼0.11147.77 ▲6.32104.53 ▼6.91
Posts /wp-admin/edit.php2,751 ▲122.72 ▼0.0064.89 ▼7.4590.75 ▼0.73
Add New Post /wp-admin/post-new.php1,506 ▲818.51 ▼0.40365.58 ▼10.22117.61 ▲4.29
Media Library /wp-admin/upload.php1,820 ▲105.02 ▲0.01153.92 ▼1.11122.75 ▲6.21
Autocomplete Checkout Address /wp-admin/admin.php?page=ace_waca_auto_complete_page1,0732.0957.8278.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-autocomplete-checkout-address/index.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: address, autocomplete

woo-autocomplete-checkout-address/index.php 85% from 13 tests

"Woocommerce autocomplete checkout address" version 1.1.0'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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-autocomplete-checkout-address.php" instead of "index.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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 detected480 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1497379
PHP11114101

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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