78% us-address-lookup-by-zip-code

Code Review | US Address Lookup by Zip Code

WordPress plugin US Address Lookup by Zip Code scored78%from 54 tests.

About plugin

  • Plugin page: us-address-lookup...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Apr 5, 2021
  • Latest release: Aug 10, 2023
  • Number of updates: 10
  • Update frequency: every 86.0 days
  • Top authors: PressTigers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,117 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼1.96ms] Passed 4 tests

Analyzing server-side resources used by US Address Lookup by Zip Code
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2145.88 ▲6.01
Dashboard /wp-admin3.50 ▲0.1953.37 ▲1.54
Posts /wp-admin/edit.php3.61 ▲0.2548.54 ▼0.24
Add New Post /wp-admin/post-new.php6.10 ▲0.2185.53 ▼13.55
Media Library /wp-admin/upload.php3.42 ▲0.1939.09 ▲4.40

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by US Address Lookup by Zip Code
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲19013.55 ▼1.079.74 ▲8.1038.61 ▼1.59
Dashboard /wp-admin2,212 ▲355.58 ▲0.0079.52 ▼8.7238.01 ▼1.56
Posts /wp-admin/edit.php2,123 ▲202.01 ▲0.0135.84 ▼1.1834.37 ▲1.45
Add New Post /wp-admin/post-new.php1,546 ▲1823.31 ▼0.05684.30 ▲17.6551.29 ▲0.33
Media Library /wp-admin/upload.php1,426 ▲234.21 ▲0.06102.97 ▲3.3945.02 ▲1.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/us-address-lookup-by-zip-code/admin/partials/pt-us-zip-codes-admin-display.php
    • > /wp-content/plugins/us-address-lookup-by-zip-code/public/partials/pt-us-zip-codes-public-display.php
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'NF_Fields_Textbox' not found in wp-content/plugins/us-address-lookup-by-zip-code/admin/ninja-forms/class-pt-us-zip-codes-address.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GF_Field_Text' not found in wp-content/plugins/us-address-lookup-by-zip-code/admin/gravity-forms/class-pt-us-zip-codes-address.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'NF_Fields_Textbox' not found in wp-content/plugins/us-address-lookup-by-zip-code/admin/ninja-forms/class-pt-us-zip-codes-city.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/us-address-lookup-by-zip-code/admin/formidable-forms/class-pt-us-zip-codes-zip.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'GF_Field_Text' not found in wp-content/plugins/us-address-lookup-by-zip-code/admin/gravity-forms/class-pt-us-zip-codes-city.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'NF_Fields_Textbox' not found in wp-content/plugins/us-address-lookup-by-zip-code/admin/ninja-forms/class-pt-us-zip-codes-state.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/us-address-lookup-by-zip-code/admin/formidable-forms/class-pt-us-zip-codes-address.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'NF_Fields_Textbox' not found in wp-content/plugins/us-address-lookup-by-zip-code/admin/ninja-forms/class-pt-us-zip-codes-zip.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GF_Field_Text' not found in wp-content/plugins/us-address-lookup-by-zip-code/admin/gravity-forms/class-pt-us-zip-codes-zip.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/us-address-lookup-by-zip-code/admin/formidable-forms/class-pt-us-zip-codes-state.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: "presstigers.com"
The official readme.txt is a good inspiration

us-address-lookup-by-zip-code/us-address-lookup-by-zip-code.php 85% from 13 tests

The main PHP file in "US Address Lookup by Zip Code" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 204 characters long)

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 detected1,711 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.38
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
▷ Static methods22.22%
▷ Public methods8392.22%
▷ Protected methods00.00%
▷ Private methods77.78%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
4 compressed PNG files occupy 0.25MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings