71% advanced-google-maps-lite

Code Review | Weblizar for Google Maps Lite

WordPress plugin Weblizar for Google Maps Lite scored 71% from 54 tests.

About plugin

  • Plugin page: advanced-google-m...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.9.2
  • First release: Oct 1, 2018
  • Latest release: Oct 28, 2021
  • Number of updates: 30
  • Update frequency: every 37.6 days
  • Top authors: weblizar (93.33%)vibhorp (10%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 5,785 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.68MB] [CPU: ▼294.09ms] 75% from 4 tests

A check of server-side resources used by Weblizar for Google Maps Lite
The following require your attention
  • CPU: You should keep total CPU usage under 500.00ms (currently 894.18ms on /wp-admin/admin.php?page=)
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.2762.74 ▲10.81
Dashboard /wp-admin4.23 ▲0.8363.01 ▼29.21
Posts /wp-admin/edit.php4.46 ▲0.82112.12 ▲74.72
Add New Post /wp-admin/post-new.php7.76 ▲0.79109.40 ▼1,159.98
Media Library /wp-admin/upload.php4.18 ▲0.8930.57 ▲2.02
Location /wp-admin/edit.php?post_type=wl_agm_locations4.2333.20
Route /wp-admin/edit.php?post_type=wl_agm_routes4.2331.63
Dashboard /wp-admin/admin.php?page=advance-google-map-lite-wl4.1837.97
Map /wp-admin/edit.php?post_type=wl_agm_maps4.2336.85
Settings /wp-admin/admin.php?page=advance-google-map-lite-wl-settings4.1228.83
Interactive Map /wp-admin/edit.php?post_type=wl_agm_inter_maps4.2328.51
Recommendation /wp-admin/admin.php?page=4.29894.18
Configure Plugin /wp-admin/admin.php?page=advance-google-map-lite-wl-help4.1233.65

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 87 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Weblizar for Google Maps Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,954 ▲20016.97 ▲0.9412.59 ▲6.332.64 ▲0.09
Dashboard /wp-admin2,939 ▲786.11 ▼0.06134.50 ▲1.54163.65 ▼2.65
Posts /wp-admin/edit.php2,751 ▲643.24 ▲0.0165.28 ▼14.07149.97 ▼17.83
Add New Post /wp-admin/post-new.php1,735 ▲6921.67 ▲0.88482.08 ▲24.08162.64 ▼5.77
Media Library /wp-admin/upload.php1,756 ▲585.50 ▼0.02152.14 ▲10.56226.15 ▲42.53
Location /wp-admin/edit.php?post_type=wl_agm_locations1,6833.1765.36191.87
Route /wp-admin/edit.php?post_type=wl_agm_routes1,6883.1763.91189.62
Dashboard /wp-admin/admin.php?page=advance-google-map-lite-wl1,3933.1263.59281.99
Map /wp-admin/edit.php?post_type=wl_agm_maps1,6863.1761.82191.62
Settings /wp-admin/admin.php?page=advance-google-map-lite-wl-settings1,5083.0668.55210.44
Interactive Map /wp-admin/edit.php?post_type=wl_agm_inter_maps1,6013.1762.83228.06
Recommendation /wp-admin/admin.php?page=3,2802.3956.45178.81
Configure Plugin /wp-admin/admin.php?page=advance-google-map-lite-wl-help1,3033.0860.50175.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_wl_agm_lite_map_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=advance-google-map-lite-wl-settings
    • > Notice in wp-content/plugins/advanced-google-maps-lite/admin/inc/helpers/WL_AGM_LITE_Helper.php+25
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/advanced-google-maps-lite/admin/inc/wl_agm_recommendation.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)
There are user-side issues you should fix
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wl_agm_inter_maps
    • > Network (severe)
    wp-content/plugins/advanced-google-maps-lite/admin/css/img/bg.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: No descriptions were found for these screenshots #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in advanced-google-maps-lite/assets to your readme.txt
You can look at the official readme.txt

advanced-google-maps-lite/advance-google-maps-lite.php 77% from 13 tests

The principal PHP file in "Weblizar for Google Maps Lite" v. 1.2.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-google-maps-lite.php" instead of "advance-google-maps-lite.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 266 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin44,855 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
PO File15767181,250

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity20.50
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity4.28
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
▷ Static methods8892.63%
▷ Public methods9296.84%
▷ Protected methods00.00%
▷ Private methods33.16%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants545.45%
▷ Class constants654.55%
▷ Public constants6100.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 compressed PNG file occupies 0.08MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings