10% address-autocomplete-contact-form-7

Code Review | Address autocomplete Contact Form 7

WordPress plugin Address autocomplete Contact Form 7 scored 10% from 54 tests.

About plugin

  • Plugin page: address-autocompl...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2.2
  • WordPress version: 5.9.2
  • First release: Apr 19, 2018
  • Latest release: Aug 19, 2019
  • Number of updates: 9
  • Update frequency: every 54.1 days
  • Top authors: oremtech (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 9,139 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/address-autocomplete-contact-form-7/WMAMC-cf7-address-autocomplete.php+565
    Non-static method WMAMC_cf7_address_autocomplete::WMAMC_cf7_address_autocomplete_instance() should not be called statically

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

A check of server-side resources used by Address autocomplete Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.24 ▲4.44
Dashboard /wp-admin3.41 ▲0.0033.06 ▲0.03
Posts /wp-admin/edit.php3.64 ▲0.0037.00 ▲1.60
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.49 ▼1,163.60
Media Library /wp-admin/upload.php3.30 ▲0.0025.60 ▲0.20
Google Place API /wp-admin/admin.php?page=google-place-api3.1019.55

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Address autocomplete Contact Form 7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2916.20 ▲0.425.59 ▼0.942.30 ▼0.54
Dashboard /wp-admin2,889 ▲286.13 ▼0.09120.64 ▼11.54155.37 ▼9.73
Posts /wp-admin/edit.php2,691 ▼03.24 ▼0.0163.19 ▲0.09140.84 ▼5.09
Add New Post /wp-admin/post-new.php1,661 ▼3716.21 ▼4.82408.43 ▼44.51148.86 ▼8.12
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.09137.40 ▼2.43184.31 ▼5.58
Google Place API /wp-admin/admin.php?page=google-place-api280.940.0318.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • WMAMC_cf7_address_autocomplete_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=google-place-api
    • > Network (severe)
    wp-admin/admin.php?page=google-place-api - Failed to load resource: the server responded with a status of 403 (Forbidden)


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: You can look at the official readme.txt

address-autocomplete-contact-form-7/WMAMC-cf7-address-autocomplete.php 77% from 13 tests

"Address autocomplete Contact Form 7" version 1.1.2'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: The principal plugin file should be the same as the plugin slug ("address-autocomplete-contact-form-7.php" instead of "WMAMC-cf7-address-autocomplete.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "4.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected305 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
PNG images were not found in this plugin