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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 31.27 ▲12.24 |
Dashboard /wp-admin | 3.06 ▼0.00 | 30.90 ▼6.59 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 35.06 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 67.79 ▼712.55 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 23.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.58 ▼0.11 | 5.02 ▼1.15 | 80.50 ▲6.47 |
Dashboard /wp-admin | 2,933 ▲34 | 6.01 ▼0.13 | 115.35 ▼21.00 | 169.19 ▼5.63 |
Posts /wp-admin/edit.php | 2,737 ▼6 | 3.23 ▲0.01 | 64.36 ▼1.93 | 137.90 ▼6.88 |
Add New Post /wp-admin/post-new.php | 3,835 ▲91 | 18.35 ▼0.96 | 475.46 ▼11.98 | 185.02 ▲21.20 |
Media Library /wp-admin/upload.php | 1,749 ▼3 | 5.49 ▼0.09 | 141.35 ▼2.29 | 181.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 116 | 59 | 165 |
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 code | 0.29 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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