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

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

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

About plugin

  • Plugin page: acf-google-map-fi...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jul 28, 2021
  • Latest release: Jun 8, 2022
  • Number of updates: 11
  • Update frequency: every 28.9 days
  • Top authors: rajivlodhia (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,150 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by ACF: Google Maps Field (Multiple Markers)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.37 ▼1.94
Dashboard /wp-admin3.31 ▼0.0349.51 ▼21.12
Posts /wp-admin/edit.php3.36 ▲0.0151.44 ▲3.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.27 ▼19.87
Media Library /wp-admin/upload.php3.24 ▲0.0136.36 ▼2.47

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

ACF: Google Maps Field (Multiple Markers): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.58 ▲0.221.82 ▲0.0846.16 ▲2.61
Dashboard /wp-admin2,198 ▲185.62 ▼0.0489.41 ▼0.7542.00 ▲7.37
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0139.22 ▼3.5535.51 ▲1.49
Add New Post /wp-admin/post-new.php1,542 ▲1418.06 ▼4.96616.21 ▼42.7967.34 ▲14.28
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0095.23 ▼14.7242.80 ▼1.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: acf addon, pins, custom fields, acf, maps...

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

"ACF: Google Maps Field (Multiple Markers)" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file 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 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin678 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1170222483
PHP2195378170
CSS14325

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%