10% awesome-google-maps

Code Review | Awesome Google Maps

WordPress plugin Awesome Google Maps scored 10% from 54 tests.

About plugin

  • Plugin page: awesome-google-maps
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4.2
  • WordPress version: 5.8.1
  • First release: Mar 25, 2016
  • Latest release: Mar 24, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: optimalplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 799 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/awesome-google-maps/awesome-google-maps.php+44
    Use of undefined constant is_admin - assumed 'is_admin' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.77MB] [CPU: ▼190.12ms] Passed 4 tests

Server-side resources used by Awesome Google Maps
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼0.866.11 ▼13.97
Dashboard /wp-admin1.89 ▼1.176.22 ▼40.18
Posts /wp-admin/edit.php1.89 ▼1.225.60 ▼38.77
Add New Post /wp-admin/post-new.php1.89 ▼3.555.81 ▼653.91
Media Library /wp-admin/upload.php1.89 ▼1.125.39 ▼27.60

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Awesome Google Maps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,711 ▲11516.54 ▲0.9816.80 ▲6.1849.20 ▼1.71
Dashboard /wp-admin2,967 ▲365.93 ▼0.06137.48 ▼4.69111.93 ▼4.97
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.1261.85 ▼4.4994.05 ▼4.26
Add New Post /wp-admin/post-new.php1,872 ▲20019.13 ▲0.29353.42 ▼13.26109.41 ▲0.49
Media Library /wp-admin/upload.php1,807 ▲35.03 ▲0.01140.22 ▼6.69122.47 ▼4.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/awesome-google-maps/awesome-google-maps.php+44
    Use of undefined constant is_admin - assumed 'is_admin' (this will throw an Error in a future version of PHP)

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (32 tag instead of maximum 10)
The official readme.txt is a good inspiration

awesome-google-maps/awesome-google-maps.php 92% from 13 tests

The main PHP file in "Awesome Google Maps" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0" instead of "3.8")

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
There were no executable files found in this plugin299 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity6.57
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods114.29%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pin-grey.png4.63KB1.58KB▼ 65.91%
images/pin-red.png4.40KB1.58KB▼ 64.20%
images/pin-yellow.png4.39KB1.55KB▼ 64.57%
images/pin-black.png4.58KB1.49KB▼ 67.46%
images/fullscreen.png1.56KB1.13KB▼ 27.62%