10% acf-google-maps-radius-search

Code Review | ACF Google Maps Radius Search

WordPress plugin ACF Google Maps Radius Search scored 10% from 54 tests.

About plugin

  • Plugin page: acf-google-maps-r...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 5.8.1
  • First release: Jun 16, 2016
  • Latest release: Jun 7, 2016
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: raiserweb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,301 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/acf-google-maps-radius-search/classes/acf_gms.class.php+163
    Uncaught Error: Call to undefined function get_field() in wp-content/plugins/acf-google-maps-radius-search/classes/acf_gms.class.php:163
    Stack trace:
    #0 wp-content/plugins/acf-google-maps-radius-search/functions.php(26): acf_gms->update_historic_post_gm_data()
    #1 wp-includes/class-wp-hook.php(303): acf_google_maps_search_table_install()
    #2 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(470): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(698): do_action()

Server metrics [RAM: ▼0.00MB] [CPU: ▼179.36ms] Passed 4 tests

A check of server-side resources used by ACF Google Maps Radius Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0031.27 ▲12.24
Dashboard /wp-admin3.06 ▼0.0030.90 ▼6.59
Posts /wp-admin/edit.php3.11 ▲0.0035.06 ▲1.93
Add New Post /wp-admin/post-new.php5.42 ▼0.0267.79 ▼712.55
Media Library /wp-admin/upload.php3.00 ▲0.0023.80 ▼0.21

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, no new options
New tables
wp_acf_google_map_search_geodata

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Google Maps Radius Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.58 ▼0.115.02 ▼1.1580.50 ▲6.47
Dashboard /wp-admin2,933 ▲346.01 ▼0.13115.35 ▼21.00169.19 ▼5.63
Posts /wp-admin/edit.php2,737 ▼63.23 ▲0.0164.36 ▼1.93137.90 ▼6.88
Add New Post /wp-admin/post-new.php3,835 ▲9118.35 ▼0.96475.46 ▼11.98185.02 ▲21.20
Media Library /wp-admin/upload.php1,749 ▼35.49 ▼0.09141.35 ▼2.29181.41 ▼9.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_acf_google_map_search_geodata

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 50% 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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/acf-google-maps-radius-search/functions.php:82

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: acf, advanced custom fields address search

acf-google-maps-radius-search/advanced-custom-fields-google-maps-search.php 85% from 13 tests

"ACF Google Maps Radius Search" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("acf-google-maps-radius-search.php" instead of "advanced-custom-fields-google-maps-search.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected165 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP311659165

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin