10% acf-google-maps-radius-search

Code Review | ACF Google Maps Radius Search

WordPress plugin ACF Google Maps Radius Search scored10%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: 6.3.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,786 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure had errors
    • > 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(310): acf_google_maps_search_table_install()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(693): do_action()

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

Analyzing server-side resources used by ACF Google Maps Radius Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.56 ▼2.13
Dashboard /wp-admin3.31 ▲0.0045.69 ▼1.48
Posts /wp-admin/edit.php3.36 ▲0.0046.01 ▼2.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.42 ▼15.85
Media Library /wp-admin/upload.php3.23 ▲0.0033.00 ▼4.69

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
wp_acf_google_map_search_geodata
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

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 /2,800 ▲6513.61 ▼0.671.67 ▼0.1540.47 ▼2.33
Dashboard /wp-admin2,206 ▲245.91 ▼0.06107.73 ▲8.1342.96 ▲1.40
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0139.61 ▲0.2734.35 ▲0.14
Add New Post /wp-admin/post-new.php1,514 ▼3017.58 ▼1.07679.78 ▲74.5546.97 ▼7.11
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0296.90 ▼4.9740.24 ▼3.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_acf_google_map_search_geodata
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 just a short smoke test looking for browser issues
There were no browser issues 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: advanced custom fields address search, acf

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 main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin165 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP311659165

PHP code Passed 2 tests

A brief analysis 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.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
There are no PNG files in this plugin