72% multi-location-google-map

Code Review | Mulit Location Google Map

WordPress plugin Mulit Location Google Map scored 72% from 54 tests.

About plugin

  • Plugin page: multi-location-go...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-5.4.1
  • WordPress version: 5.8.1
  • First release: May 20, 2019
  • Latest release: Jun 5, 2020
  • Number of updates: 19
  • Update frequency: every 20.2 days
  • Top authors: jagadeeshok (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 5,870 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.30MB] [CPU: ▼166.10ms] Passed 4 tests

A check of server-side resources used by Mulit Location Google Map
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0535.82 ▼22.62
Dashboard /wp-admin3.10 ▲0.0548.91 ▼19.36
Posts /wp-admin/edit.php3.16 ▲0.0547.27 ▼0.30
Add New Post /wp-admin/post-new.php4.09 ▼1.3554.47 ▼622.11
Media Library /wp-admin/upload.php3.05 ▲0.0533.46 ▲4.34
All Locations /wp-admin/edit.php?post_type=clupmap3.0933.28
Add Location /wp-admin/post-new.php?post_type=clupmap2.9835.10
Settings /wp-admin/edit.php?page=clupmap-settings2.8320.48

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 2 new options
New WordPress options
gmap_api_key
gmap_zoom

Browser metrics Passed 4 tests

An overview of browser requirements for Mulit Location Google Map
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,753 ▲17116.30 ▲0.3410.52 ▲0.8850.64 ▼13.32
Dashboard /wp-admin3,015 ▲815.84 ▼0.35146.06 ▼29.15111.20 ▼28.30
Posts /wp-admin/edit.php2,781 ▲422.68 ▼0.0169.54 ▼6.4493.19 ▼7.17
Add New Post /wp-admin/post-new.php1,711 ▲2817.43 ▼1.25383.34 ▲11.43111.86 ▲0.80
Media Library /wp-admin/upload.php1,867 ▲605.00 ▼0.04160.20 ▲12.67122.30 ▼9.05
All Locations /wp-admin/edit.php?post_type=clupmap1,4352.6265.3566.36
Add Location /wp-admin/post-new.php?post_type=clupmap2,4655.02146.5083.81
Settings /wp-admin/edit.php?page=clupmap-settings280.900.0610.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • gmap_api_key
    • gmap_zoom

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=clupmap
    • > Notice in wp-content/plugins/multi-location-google-map/function.php+80
    Undefined index: your_meta_box_nonce

SRP 50% from 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
Please take a closer look at the following
  • 4× 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/multi-location-google-map/function.php:118
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/multi-location-google-map/multi-location-gmap.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/multi-location-google-map/map.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/multi-location-google-map/shortcode.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?page=clupmap-settings
    • > Network (severe)
    wp-admin/edit.php?page=clupmap-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

multi-location-google-map/multi-location-gmap.php 77% from 13 tests

The entry point to "Mulit Location Google Map" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("multi-location-google-map.php" instead of "multi-location-gmap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin266 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44234223
CSS10043

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ 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
There were not PNG files found in your plugin