94% adresskorrektur-autocomplete-fuer-woo

Code Review | Address correction autocomplete for Woo

WordPress plugin Address correction autocomplete for Woo scored 94% from 54 tests.

About plugin

  • Plugin page: adresskorrektur-a...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.9.2
  • First release: Oct 22, 2020
  • Latest release: Jan 27, 2022
  • Number of updates: 8
  • Update frequency: every 57.8 days
  • Top authors: sahumedia (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 1,050 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Address correction autocomplete for Woo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1154.51 ▲5.28
Dashboard /wp-admin3.45 ▲0.0533.60 ▼6.36
Posts /wp-admin/edit.php3.68 ▲0.0437.92 ▼0.61
Add New Post /wp-admin/post-new.php6.92 ▼0.0594.26 ▼1,169.48
Media Library /wp-admin/upload.php3.33 ▲0.0425.89 ▲1.83
Autocomplete Checkout Address /wp-admin/admin.php?page=sahu_woo_com_auto_complete_page3.3023.66

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Address correction autocomplete for Woo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,773 ▲1915.64 ▼0.406.50 ▲0.332.39 ▼0.03
Dashboard /wp-admin2,902 ▲416.07 ▼0.11115.88 ▼19.54158.40 ▼2.86
Posts /wp-admin/edit.php2,698 ▲43.24 ▼0.0062.29 ▼1.73139.71 ▼3.27
Add New Post /wp-admin/post-new.php1,758 ▲9721.74 ▲6.00452.30 ▲27.09289.93 ▲140.62
Media Library /wp-admin/upload.php1,705 ▲75.52 ▼0.03160.23 ▲22.50194.56 ▲13.29
Autocomplete Checkout Address /wp-admin/admin.php?page=sahu_woo_com_auto_complete_page1,0432.3653.39102.74

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
Even though no errors were found, this is by no means an exhaustive test

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adresskorrektur-autocomplete-fuer-woo/index.php:17

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: autokorrektur woo, woo autocomplete, autocomplete, address

adresskorrektur-autocomplete-fuer-woo/index.php 92% from 13 tests

The entry point to "Address correction autocomplete for Woo" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("adresskorrektur-autocomplete-fuer-woo.php" instead of "index.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 detected804 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File55763313

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
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 functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin