90% autocomplete-address-for-woocommerce

Code Review | Autocomplete Address for WooCommerce

WordPress plugin Autocomplete Address for WooCommerce scored 90% from 54 tests.

About plugin

  • Plugin page: autocomplete-addr...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2020
  • Latest release: Sep 16, 2023
  • Number of updates: 7
  • Update frequency: every 147.4 days
  • Top authors: Amgnando (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

8,000+ active / 22,757 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Autocomplete Address for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0627.17 ▼16.10
Dashboard /wp-admin3.32 ▲0.0152.63 ▼7.11
Posts /wp-admin/edit.php3.37 ▲0.0155.66 ▲0.19
Add New Post /wp-admin/post-new.php5.90 ▲0.01110.62 ▲5.76
Media Library /wp-admin/upload.php3.24 ▲0.0140.06 ▼1.53

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Autocomplete Address for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼32413.15 ▼1.330.51 ▼1.4620.31 ▼23.13
Dashboard /wp-admin2,203 ▼35.91 ▲0.09113.12 ▲10.2141.37 ▲0.46
Posts /wp-admin/edit.php2,092 ▼01.97 ▼0.0940.43 ▼0.4333.36 ▼6.79
Add New Post /wp-admin/post-new.php1,539 ▲523.38 ▲0.24682.93 ▲6.8067.26 ▲13.94
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0696.82 ▼9.0542.32 ▼5.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: autocomplete, endereo, cep, address, woocommerce...

autocomplete-address-for-woocommerce/autocomplete-address-for-woocommerce.php 92% from 13 tests

This is the main PHP file of "Autocomplete Address for WooCommerce" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0.0" instead of "3.3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin62 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2176561
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods562.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin