93% advanced-custom-fields-google-map-extended

Code Review | ACF: Google Map Extended

WordPress plugin ACF: Google Map Extended scored 93% from 54 tests.

About plugin

  • Plugin page: advanced-custom-f...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 5.9.2
  • First release: Nov 12, 2015
  • Latest release: Dec 18, 2015
  • Number of updates: 7
  • Update frequency: every 5.3 days
  • Top authors: codewahoo (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 17,260 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.01MB] [CPU: ▼308.55ms] Passed 4 tests

An overview of server-side resources used by ACF: Google Map Extended
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0253.48 ▲3.16
Dashboard /wp-admin3.42 ▲0.0132.22 ▼0.17
Posts /wp-admin/edit.php3.65 ▲0.0137.01 ▼1.87
Add New Post /wp-admin/post-new.php6.89 ▼0.0796.12 ▼1,234.17
Media Library /wp-admin/upload.php3.30 ▲0.0029.22 ▲2.01

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF: Google Map Extended
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1016.23 ▲0.536.52 ▲0.852.36 ▼0.34
Dashboard /wp-admin2,895 ▲376.10 ▼0.10114.45 ▼18.32154.93 ▼6.20
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0061.82 ▼2.12141.39 ▼0.68
Add New Post /wp-admin/post-new.php1,711 ▲4321.32 ▲3.14432.51 ▲36.52157.94 ▼1.55
Media Library /wp-admin/upload.php1,698 ▼05.52 ▼0.00151.62 ▲11.40195.94 ▲1.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field_google_map_extended' not found in wp-content/plugins/advanced-custom-fields-google-map-extended/acf-google-map-extended-v4.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field_google_map_extended' not found in wp-content/plugins/advanced-custom-fields-google-map-extended/acf-google-map-extended-v5.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-google-map-extended/acf-google-map-extended-base.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-google-map-extended/acf-google-map-extended.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

advanced-custom-fields-google-map-extended/acf-google-map-extended.php 85% from 13 tests

"ACF: Google Map Extended" version 1.0.1'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: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-custom-fields-google-map-extended.php" instead of "acf-google-map-extended.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
Success! There were no dangerous files found in this plugin1,243 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PO File5170195478

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.75
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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