89% addressfinder-woo

Code Review | WooCommerce Address Validation and Autocomplete | Addressfinder

WordPress plugin WooCommerce Address Validation and Autocomplete | Addressfinder scored89%from 54 tests.

About plugin

  • Plugin page: addressfinder-woo
  • Plugin version: 1.5.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2016
  • Latest release: Oct 13, 2023
  • Number of updates: 99
  • Update frequency: every 28.4 days
  • Top authors: abletech (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /33,881 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
The plugin installed gracefully, with no errors

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

Server-side resources used by WooCommerce Address Validation and Autocomplete | Addressfinder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.06 ▼1.84
Dashboard /wp-admin3.33 ▼0.0147.52 ▼16.15
Posts /wp-admin/edit.php3.39 ▲0.0348.74 ▲1.87
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.37 ▼23.93
Media Library /wp-admin/upload.php3.26 ▲0.0338.50 ▲5.71

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Address Validation and Autocomplete | Addressfinder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.23 ▼0.421.68 ▼0.2641.12 ▼3.33
Dashboard /wp-admin2,198 ▲215.61 ▼0.0492.56 ▼10.0339.63 ▼3.16
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0339.92 ▼1.3736.30 ▼4.46
Add New Post /wp-admin/post-new.php1,526 ▼1223.14 ▼1.38674.97 ▲53.1449.24 ▼17.76
Media Library /wp-admin/upload.php1,403 ▲94.14 ▼0.02106.60 ▲12.4144.28 ▲2.52

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can look at the official readme.txt

addressfinder-woo/woocommerce-addressfinder.php 92% from 13 tests

The main PHP file in "WooCommerce Address Validation and Autocomplete | Addressfinder" ver. 1.5.9 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("addressfinder-woo.php" instead of "woocommerce-addressfinder.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
Good job! No executable or dangerous file extensions detected135 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12226133
CSS1011
JavaScript1011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin