93% ls-gmap-route

Code Review | LS Google Map Router

WordPress plugin LS Google Map Router scored 93% from 54 tests.

About plugin

  • Plugin page: ls-gmap-route
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-3.5
  • WordPress version: 5.8.1
  • First release: Jan 22, 2013
  • Latest release: Feb 1, 2013
  • Number of updates: 4
  • Update frequency: every 2.5 days
  • Top authors: ladislav.soukup@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,122 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼147.97ms] Passed 4 tests

This is a short check of server-side resources used by LS Google Map Router
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0238.38 ▲1.23
Dashboard /wp-admin3.07 ▲0.0239.17 ▼9.06
Posts /wp-admin/edit.php3.13 ▲0.0144.89 ▼16.41
Add New Post /wp-admin/post-new.php5.43 ▼0.0096.20 ▼567.64
Media Library /wp-admin/upload.php3.02 ▲0.0136.40 ▲2.69

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for LS Google Map Router
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲4215.81 ▲0.1311.23 ▲1.7855.19 ▲2.72
Dashboard /wp-admin2,964 ▲335.85 ▼0.10157.32 ▼11.35120.78 ▼2.03
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0171.21 ▲2.6198.51 ▲5.89
Add New Post /wp-admin/post-new.php1,683 ▲10218.52 ▼1.78384.45 ▼32.64112.73 ▼3.49
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.00155.70 ▲2.09124.66 ▲4.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ls-gmap-route/ls-gmap_route.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Plugin settings) image missing
  • Donate link: Invalid URI found ("")
The official readme.txt might help

ls-gmap-route/ls-gmap_route.php 85% from 13 tests

The principal PHP file in "LS Google Map Router" v. 1.1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ls-gmap-route.php" instead of "ls-gmap_route.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
Success! There were no dangerous files found in this plugin96 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1221196

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.32MB with 0.19MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ls-gmap_route.png325.68KB126.68KB▼ 61.10%