10% geo-multi-location-map

Code Review | Geo Map Locations WordPress Plugin

WordPress plugin Geo Map Locations WordPress Plugin scored 10% from 54 tests.

About plugin

  • Plugin page: geo-multi-locatio...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2016
  • Latest release: May 15, 2017
  • Number of updates: 6
  • Update frequency: every 35.2 days
  • Top authors: omexinfotech (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active / 4,251 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/geo-multi-location-map/geomap.php+32
    Use of undefined constant gmlm_version - assumed 'gmlm_version' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.83MB] [CPU: ▼51.78ms] Passed 4 tests

Server-side resources used by Geo Map Locations WordPress Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.304.73 ▼38.62
Dashboard /wp-admin2.18 ▼1.1211.96 ▼33.86
Posts /wp-admin/edit.php2.18 ▼1.187.81 ▼43.08
Add New Post /wp-admin/post-new.php2.18 ▼3.716.15 ▼91.57
Media Library /wp-admin/upload.php2.18 ▼1.056.65 ▼26.10
Add new /wp-admin/admin.php?page=locations_form2.185.92
Geo Locations /wp-admin/admin.php?page=locations2.185.74
Map Setting /wp-admin/admin.php?page=locations_setting2.186.51
Map ShortCode /wp-admin/admin.php?page=locations_view2.185.57

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables
wp_locations
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
LOCATER_VERSION_KEY

Browser metrics Passed 4 tests

An overview of browser requirements for Geo Map Locations WordPress Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18112.98 ▼1.631.55 ▼0.4640.43 ▼6.83
Dashboard /wp-admin2,284 ▲965.83 ▲0.9799.48 ▼6.7443.72 ▲3.98
Posts /wp-admin/edit.php2,310 ▲2212.00 ▼0.0135.08 ▼1.6837.05 ▲4.40
Add New Post /wp-admin/post-new.php1,629 ▲9523.93 ▲0.67684.77 ▼19.4237.88 ▼24.57
Media Library /wp-admin/upload.php1,476 ▲854.17 ▲0.0286.02 ▼13.5441.29 ▼4.30
Add new /wp-admin/admin.php?page=locations_form1,0632.7144.1533.65
Geo Locations /wp-admin/admin.php?page=locations9992.0624.2326.98
Map Setting /wp-admin/admin.php?page=locations_setting9132.0623.9727.43
Map ShortCode /wp-admin/admin.php?page=locations_view8562.0622.7224.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/geo-multi-location-map/geomap.php+32
    Use of undefined constant gmlm_version - assumed 'gmlm_version' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • LOCATER_VERSION_KEY
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=locations_view
    • > Warning in wp-content/plugins/geo-multi-location-map/geomap.php+32
    Use of undefined constant gmlm_version - assumed 'gmlm_version' (this will throw an Error in a future version of PHP)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=locations
    • > Notice in wp-content/plugins/geo-multi-location-map/geomap.php+312
    Undefined index: view
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=locations_view
    • > Notice in wp-content/plugins/geo-multi-location-map/map_viewshortcode.php+11
    Undefined variable: item

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 output text when accessed directly:
    • > /wp-content/plugins/geo-multi-location-map/geomap.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=locations_form
    • > Console-api (warning) in unknown
    http://maps.googleapis.com/maps/api/js?key=AIzaSyBMAt42KN__1_aVtPo9lx10tBMo2CMOyxE&sensor=false 208:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: easy to use with just place short code on anywhere, geo map, tag places, locations, match with your desing easily...

geo-multi-location-map/geomap.php 92% from 13 tests

The primary PHP file in "Geo Map Locations WordPress Plugin" version 1.1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("geo-multi-location-map.php" instead of "geomap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,416 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP55054701
CSS21619564
JavaScript31715151

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.32
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
image/globe-location.png38.31KB17.70KB▼ 53.80%