94% advanced-google-maps-shortcode

Code Review | Advanced Google Maps Shortcode

WordPress plugin Advanced Google Maps Shortcode scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-google-m...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 5.9.2
  • First release: Feb 1, 2016
  • Latest release: Apr 10, 2016
  • Number of updates: 6
  • Update frequency: every 54.2 days
  • Top authors: limestreet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,032 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Advanced Google Maps Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0356.00 ▲5.45
Dashboard /wp-admin3.43 ▲0.0232.43 ▼0.20
Posts /wp-admin/edit.php3.67 ▲0.0339.22 ▲4.32
Add New Post /wp-admin/post-new.php6.90 ▼0.0792.06 ▼1,164.85
Media Library /wp-admin/upload.php3.31 ▲0.0225.84 ▲0.87

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Google Maps Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4916.01 ▲0.346.36 ▼0.412.35 ▲0.39
Dashboard /wp-admin2,895 ▲376.16 ▼0.04118.81 ▼16.71165.11 ▲3.61
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0162.79 ▲0.93139.43 ▼0.39
Add New Post /wp-admin/post-new.php1,711 ▲5021.12 ▲4.67437.02 ▼7.09159.52 ▲9.97
Media Library /wp-admin/upload.php1,698 ▲65.48 ▼0.02143.22 ▲2.09187.11 ▲2.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advanced-google-maps-shortcode/advanced-google-maps-shortcode.php:16

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: google maps shortcode, multiple markers, shortcode, google maps, map styling

advanced-google-maps-shortcode/advanced-google-maps-shortcode.php Passed 13 tests

This is the main PHP file of "Advanced Google Maps Shortcode" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Really advanced Google Maps shortcode. Map styling, multiple markers, markers clustering and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected849 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings