99% acf-search-google-maps

Code Review | Google Maps Search Tool For ACF

WordPress plugin Google Maps Search Tool For ACF scored 99% 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: 5.9.2
  • 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

20+ active / 1,145 total downloads


Plugin footprint Passed 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.07MB] [CPU: ▼292.28ms] Passed 4 tests

Analyzing server-side resources used by Google Maps Search Tool For ACF
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.2763.81 ▲10.24
Dashboard /wp-admin3.54 ▲0.1033.91 ▼1.94
Posts /wp-admin/edit.php3.77 ▲0.1037.37 ▼1.85
Add New Post /wp-admin/post-new.php7.01 ▲0.0095.36 ▼1,163.30
Media Library /wp-admin/upload.php3.42 ▲0.0924.08 ▼2.03
ACF Google Maps Search /wp-admin/options-general.php?page=gmst_acf3.3925.04

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, 1 new option
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Google Maps Search Tool For ACF
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲5915.69 ▲0.066.20 ▲0.612.13 ▼0.33
Dashboard /wp-admin2,907 ▲536.16 ▼0.10119.53 ▼21.93150.62 ▼19.70
Posts /wp-admin/edit.php2,703 ▲183.24 ▼0.1264.65 ▼2.70141.73 ▼15.50
Add New Post /wp-admin/post-new.php1,670 ▼10316.63 ▼5.56400.33 ▼48.06160.33 ▼0.91
Media Library /wp-admin/upload.php1,710 ▲125.54 ▲0.06148.78 ▼5.16191.11 ▲5.11
ACF Google Maps Search /wp-admin/options-general.php?page=gmst_acf1,0892.3755.17142.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 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)
Even though no errors were found, 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: No descriptions were found for these screenshots #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 primary PHP file in "Google Maps Search Tool For ACF" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to 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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected421 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for 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
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods35100.00%
▷ Public methods3394.29%
▷ Protected methods12.86%
▷ Private methods12.86%
▷ Named functions00.00%
▷ Anonymous functions2100.00%
▷ 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 files were detected