77% advanced-google-maps-lite

Code Review | IS-Google Maps Lite

WordPress plugin IS-Google Maps Lite scored77%from 54 tests.

About plugin

  • Plugin page: advanced-google-m...
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.4-6.1
  • WordPress version: 6.3.1
  • First release: Oct 1, 2018
  • Latest release: Dec 24, 2022
  • Number of updates: 34
  • Update frequency: every 45.5 days
  • Top authors: weblizar (82.35%)vibhorp (20.59%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /7,324 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.68MB] [CPU: ▲2.35ms] Passed 4 tests

Server-side resources used by IS-Google Maps Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2142.40 ▼4.94
Dashboard /wp-admin4.19 ▲0.8856.52 ▲4.37
Posts /wp-admin/edit.php4.24 ▲0.8860.10 ▲13.93
Add New Post /wp-admin/post-new.php6.71 ▲0.82101.08 ▼1.12
Media Library /wp-admin/upload.php4.05 ▲0.8250.61 ▲11.10
Dashboard /wp-admin/admin.php?page=advance-google-map-lite-wl4.0743.79
Location /wp-admin/edit.php?post_type=wl_agm_locations4.1546.39
Map /wp-admin/edit.php?post_type=wl_agm_maps4.1542.50
Configure Plugin /wp-admin/admin.php?page=advance-google-map-lite-wl-help4.0443.13
Route /wp-admin/edit.php?post_type=wl_agm_routes4.1541.43
Interactive Map /wp-admin/edit.php?post_type=wl_agm_inter_maps4.1544.95
Settings /wp-admin/admin.php?page=advance-google-map-lite-wl-settings4.0339.13

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 88 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_wl_agm_lite_map_widget
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for IS-Google Maps Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲18313.89 ▼0.7210.00 ▲8.0844.80 ▼1.55
Dashboard /wp-admin2,241 ▲705.69 ▲0.1291.30 ▲3.8442.80 ▲2.38
Posts /wp-admin/edit.php2,148 ▲482.04 ▲0.0439.29 ▲4.7636.47 ▼5.23
Add New Post /wp-admin/post-new.php1,560 ▲3423.34 ▲0.55661.71 ▼39.8358.39 ▼3.59
Media Library /wp-admin/upload.php1,446 ▲464.14 ▼0.07110.46 ▲5.5949.01 ▲2.36
Dashboard /wp-admin/admin.php?page=advance-google-map-lite-wl1,0412.0632.5384.63
Location /wp-admin/edit.php?post_type=wl_agm_locations1,1271.9629.3131.25
Map /wp-admin/edit.php?post_type=wl_agm_maps1,1301.9431.9027.58
Configure Plugin /wp-admin/admin.php?page=advance-google-map-lite-wl-help9992.1930.3543.01
Route /wp-admin/edit.php?post_type=wl_agm_routes1,1271.9429.9632.49
Interactive Map /wp-admin/edit.php?post_type=wl_agm_inter_maps1,1271.9133.3932.19
Settings /wp-admin/admin.php?page=advance-google-map-lite-wl-settings1,2052.0828.5636.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_wl_agm_lite_map_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please 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 | 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 fix the following items
  • 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 Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in advanced-google-maps-lite/assets to your readme.txt
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

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

Analyzing the main PHP file in "IS-Google Maps Lite" version 1.2.6
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 266 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-google-maps-lite.php" instead of "advance-google-maps-lite.php")

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
Success! There were no dangerous files found in this plugin44,799 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
CSS153,1995916,818
JavaScript211,35445814,075
SVG30128,777
PHP283512173,879
PO File15767181,250

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
Methods95
▷ Static methods8892.63%
▷ Public methods9296.84%
▷ Protected methods00.00%
▷ Private methods33.16%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants545.45%
▷ Class constants654.55%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.27MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/image/christmas.png194.21KB210.44KB0.00%
admin/image/agmap_pro_banner.png79.74KB80.19KB0.00%