78% google-maps-master

Code Review | TechGasp Maps Master

WordPress plugin TechGasp Maps Master scored78%from 54 tests.

About plugin

  • Plugin page: google-maps-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Apr 23, 2014
  • Latest release: Mar 11, 2021
  • Number of updates: 38
  • Update frequency: every 66.3 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

90+ active /15,955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.51ms] Passed 4 tests

Analyzing server-side resources used by TechGasp Maps Master
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.84 ▼2.02
Dashboard /wp-admin3.33 ▲0.0343.91 ▼5.56
Posts /wp-admin/edit.php3.38 ▲0.0244.99 ▼5.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.32 ▼21.24
Media Library /wp-admin/upload.php3.25 ▲0.0238.57 ▲4.62
Add-ons /wp-admin/admin.php?page=google-maps-master-admin-addons3.2931.40
Maps Master /wp-admin/admin.php?page=google-maps-master3.2530.01

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
widget_google_maps_master_widget_maps_basic
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_google_maps_master_widget_viral
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for TechGasp Maps Master
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9113.64 ▼0.741.66 ▼0.3938.04 ▼6.64
Dashboard /wp-admin2,232 ▲445.86 ▲0.9598.53 ▼7.1567.45 ▲25.79
Posts /wp-admin/edit.php2,121 ▲322.02 ▲0.0139.00 ▼1.5136.91 ▲0.82
Add New Post /wp-admin/post-new.php1,689 ▲15622.29 ▼0.89714.93 ▲131.0949.72 ▼3.83
Media Library /wp-admin/upload.php1,414 ▲264.21 ▼0.0496.05 ▼5.3272.49 ▲29.94
Add-ons /wp-admin/admin.php?page=google-maps-master-admin-addons1,0952.0523.5932.60
Maps Master /wp-admin/admin.php?page=google-maps-master1,7658.27205.3779.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_google_maps_master_widget_maps_basic
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_google_maps_master_widget_viral

Smoke tests 50% 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
Please take a closer look at the following
  • 8× 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-master/includes/google-maps-master-widget-viral.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/google-maps-master/includes/google-maps-master-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/google-maps-master/includes/google-maps-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-maps-master/includes/google-maps-master-widget-maps-basic.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/google-maps-master/includes/google-maps-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/google-maps-master/includes/google-maps-master-admin-addons-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/google-maps-master/google-maps-master.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/google-maps-master/includes/google-maps-master-admin-addons.php:38

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 take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=google-maps-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=google-maps-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=google-maps-master
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yx/r/RBH7b7zeA6F.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=google-maps-master
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yx/r/RBH7b7zeA6F.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

google-maps-master/google-maps-master.php Passed 13 tests

The main PHP script in "TechGasp Maps Master" version 5.1.4 is automatically included on every request by WordPress
103 characters long description:
TechGasp Maps Master is the professional wordpress plugin to display map locations with Google Maps V3.

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
Success! There were no dangerous files found in this plugin831 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP103275831

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.83
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
11 PNG files occupy 0.29MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-admin-addons-support.png15.84KB14.85KB▼ 6.26%
images/techgasp-hr.png0.94KB0.13KB▼ 86.60%
images/techgasp-check-no.png21.14KB7.14KB▼ 66.23%
images/techgasp-admin-addons-widgets.png17.08KB16.02KB▼ 6.22%
images/techgasp_empty_avatar.png0.90KB0.09KB▼ 89.70%