100% acf-google-map-field-multiple-markers

Code Review | ACF: Google Maps Field (Multiple Markers)

WordPress plugin ACF: Google Maps Field (Multiple Markers) scored 100% from 54 tests.

About plugin

  • Plugin page: acf-google-map-fi...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 5.9.2
  • First release: Jul 28, 2021
  • Latest release: Apr 2, 2022
  • Number of updates: 10
  • Update frequency: every 25.1 days
  • Top authors: rajivlodhia (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 592 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼290.07ms] Passed 4 tests

A check of server-side resources used by ACF: Google Maps Field (Multiple Markers)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.29 ▲3.40
Dashboard /wp-admin3.42 ▲0.0133.24 ▲0.57
Posts /wp-admin/edit.php3.65 ▲0.0136.91 ▼0.09
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.20 ▼1,164.14
Media Library /wp-admin/upload.php3.30 ▲0.0128.97 ▲5.88

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF: Google Maps Field (Multiple Markers): an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,821 ▲6716.35 ▲0.385.89 ▲0.073.52 ▲0.85
Dashboard /wp-admin2,921 ▲346.44 ▼0.21128.48 ▼25.89157.65 ▼8.83
Posts /wp-admin/edit.php2,694 ▲93.44 ▲0.0159.93 ▼1.49138.37 ▼9.49
Add New Post /wp-admin/post-new.php1,773 ▲11321.89 ▲5.51432.79 ▲37.39162.53 ▼21.78
Media Library /wp-admin/upload.php1,698 ▼05.72 ▼0.00136.84 ▼1.02184.87 ▼2.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: maps, pins, google maps, custom fields, markers...

acf-google-map-field-multiple-markers/acf-google-map-multi.php 92% from 13 tests

The entry point to "ACF: Google Maps Field (Multiple Markers)" version 1.0.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-google-map-field-multiple-markers.php" instead of "acf-google-map-multi.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
There were no executable files found in this plugin678 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1170222483
PHP2195378170
CSS14325

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity5.50
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/marker-big.png2.49KB2.05KB▼ 17.39%