89% acf-search-google-maps

Code Review | Google Maps Search Tool For ACF

WordPress plugin Google Maps Search Tool For ACF scored 89% from 54 tests.

About plugin

  • Plugin page: acf-search-google...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.4
  • WordPress version: 6.3.1
  • First release: May 8, 2017
  • Latest release: May 8, 2017
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: belmond (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,411 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.69ms] Passed 4 tests

Server-side resources used by Google Maps Search Tool For ACF
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3040.51 ▼3.91
Dashboard /wp-admin3.40 ▲0.1045.64 ▼5.13
Posts /wp-admin/edit.php3.52 ▲0.1647.94 ▼0.53
Add New Post /wp-admin/post-new.php5.98 ▲0.0999.56 ▼1.20
Media Library /wp-admin/upload.php3.32 ▲0.0938.13 ▲3.73
ACF Google Maps Search /wp-admin/options-general.php?page=gmst_acf3.2932.79

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 7 new options
New tables
wp_acf_gmst_geodata
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
gmst_acf_field_range
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Google Maps Search Tool For ACF
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.65 ▼1.081.80 ▼0.0940.60 ▼2.34
Dashboard /wp-admin2,216 ▲314.84 ▼0.97111.34 ▼5.1245.46 ▲7.12
Posts /wp-admin/edit.php2,099 ▲102.12 ▲0.1340.48 ▲4.6536.37 ▲1.59
Add New Post /wp-admin/post-new.php1,523 ▲417.80 ▼5.39618.55 ▼2.0748.31 ▼4.63
Media Library /wp-admin/upload.php1,401 ▲134.16 ▼0.1196.88 ▼12.3443.45 ▲0.22
ACF Google Maps Search /wp-admin/options-general.php?page=gmst_acf8512.0127.6236.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: These screenshots need descriptions #1, #2 in acf-search-google-maps/assets to your readme.txt
The official readme.txt might help

acf-search-google-maps/google-maps-search-tool-for-acf.php 92% from 13 tests

The principal PHP file in "Google Maps Search Tool For ACF" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("acf-search-google-maps.php" instead of "google-maps-search-tool-for-acf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin421 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5116173388
JavaScript13223
CSS10010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.00
▷ Minimum class complexity4.00
▷ Maximum class complexity22.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods35
▷ Static methods35100.00%
▷ Public methods3394.29%
▷ Protected methods12.86%
▷ Private methods12.86%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin