93% google-maps-v3-shortcode-multiple-markers

Code Review | Google Maps v3 Shortcode multiple Markers

WordPress plugin Google Maps v3 Shortcode multiple Markers scored 93% from 54 tests.

About plugin

  • Plugin page: google-maps-v3-sh...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.3.1
  • WordPress version: 5.8.1
  • First release: Oct 3, 2011
  • Latest release: Dec 1, 2015
  • Number of updates: 23
  • Update frequency: every 66.2 days
  • Top authors: soundwaves-productions (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active / 13,411 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Google Maps v3 Shortcode multiple Markers
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0031.08 ▲5.81
Dashboard /wp-admin3.06 ▼0.0035.16 ▼5.04
Posts /wp-admin/edit.php3.11 ▲0.0031.46 ▼2.03
Add New Post /wp-admin/post-new.php5.42 ▼0.0271.62 ▼593.33
Media Library /wp-admin/upload.php3.01 ▲0.0024.94 ▼0.06

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Google Maps v3 Shortcode multiple Markers
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,722 ▲12116.44 ▲0.7217.33 ▲11.3876.59 ▼2.10
Dashboard /wp-admin2,930 ▲316.12 ▼0.08112.34 ▼26.15164.43 ▼9.04
Posts /wp-admin/edit.php2,740 ▼03.24 ▲0.0063.71 ▼0.56130.31 ▼13.64
Add New Post /wp-admin/post-new.php3,735 ▼7818.18 ▼0.43473.43 ▲15.92160.69 ▼9.67
Media Library /wp-admin/upload.php1,749 ▼35.52 ▲0.00143.97 ▼2.38188.31 ▲5.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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
Even though no errors were found, 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-maps-v3-shortcode-multiple-markers/Google-Maps-v3-Shortcode-multiplemarkers.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === google-maps-v3-shortcode-multiple-markers === )
You can look at the official readme.txt

google-maps-v3-shortcode-multiple-markers/Google-Maps-v3-Shortcode-multiplemarkers.php 85% from 13 tests

Analyzing the main PHP file in "Google Maps v3 Shortcode multiple Markers" version 1.0
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 207 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("google-maps-v3-shortcode-multiple-markers.php" instead of "Google-Maps-v3-Shortcode-multiplemarkers.php")

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 plugin108 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11010108

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.32MB with 0.21MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png327.72KB114.22KB▼ 65.15%