10% address-autocomplete-contact-form-7

Code Review | Address autocomplete Contact Form 7

WordPress plugin Address autocomplete Contact Form 7 scored10%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: 6.3.1
  • 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 /10,539 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • 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.00MB] [CPU: ▼4.93ms] Passed 4 tests

Server-side resources used by Address autocomplete Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.81 ▼5.35
Dashboard /wp-admin3.31 ▲0.0047.16 ▼4.86
Posts /wp-admin/edit.php3.36 ▲0.0051.43 ▼1.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.28 ▼7.68
Media Library /wp-admin/upload.php3.23 ▲0.0034.95 ▼0.98
Google Place API /wp-admin/admin.php?page=google-place-api3.0023.55

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
WMAMC_cf7_address_autocomplete_version

Browser metrics Passed 4 tests

Address autocomplete Contact Form 7: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.18 ▼1.571.81 ▼0.2842.10 ▼4.25
Dashboard /wp-admin2,206 ▲184.85 ▼0.0998.22 ▼17.4940.53 ▼3.40
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0638.05 ▼5.0233.78 ▲0.09
Add New Post /wp-admin/post-new.php1,538 ▲2423.44 ▲5.96655.27 ▼63.4952.39 ▲0.70
Media Library /wp-admin/upload.php1,385 ▲34.22 ▲0.02101.83 ▲0.1845.21 ▼1.05
Google Place API /wp-admin/admin.php?page=google-place-api280.440.093.98

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • WMAMC_cf7_address_autocomplete_version
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

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

The entry point to "Address autocomplete Contact Form 7" version 1.1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "4.4")
  • Main file name: Please rename the main PHP file in this plugin to 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin305 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116698305

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected