89% google-maps-ve

Code Review | Google Maps VE

WordPress plugin Google Maps VE scored 89% from 54 tests.

About plugin

  • Plugin page: google-maps-ve
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2015
  • Latest release: Oct 6, 2016
  • Number of updates: 44
  • Update frequency: every 14.9 days
  • Top authors: veebiekspert (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 10,561 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▲5.19ms] Passed 4 tests

Server-side resources used by Google Maps VE
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1742.73 ▲0.52
Dashboard /wp-admin3.48 ▲0.1857.12 ▲6.74
Posts /wp-admin/edit.php3.59 ▲0.2361.40 ▲16.26
Add New Post /wp-admin/post-new.php6.06 ▲0.18103.49 ▲3.07
Media Library /wp-admin/upload.php3.38 ▲0.1543.69 ▲10.41
List of all polylines /wp-admin/edit.php?post_type=gmaps_polyline_ve3.4548.83
List of all markers /wp-admin/edit.php?post_type=gmaps_marker_ve3.4545.60
Marker parameters /wp-admin/edit-tags.php?taxonomy=marker_category&post_type=gmaps_map_ve3.4043.10
List of all polygons /wp-admin/edit.php?post_type=gmaps_polygon_ve3.4554.47
List of maps /wp-admin/edit.php?post_type=gmaps_map_ve3.4547.20
Add new map /wp-admin/post-new.php?post_type=gmaps_map_ve3.4653.53

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Google Maps VE
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,022 ▲27615.06 ▲0.771.66 ▼0.2440.47 ▼3.06
Dashboard /wp-admin2,415 ▲2276.66 ▲1.77124.61 ▲5.4540.11 ▼7.13
Posts /wp-admin/edit.php2,324 ▲2353.53 ▲1.5251.98 ▲13.7032.75 ▼4.46
Add New Post /wp-admin/post-new.php1,573 ▲4023.16 ▲0.01612.22 ▼2.2440.75 ▼18.68
Media Library /wp-admin/upload.php1,460 ▲694.50 ▲0.2582.26 ▼14.6342.91 ▲1.46
List of all polylines /wp-admin/edit.php?post_type=gmaps_polyline_ve1,2973.5160.2128.16
List of all markers /wp-admin/edit.php?post_type=gmaps_marker_ve1,3033.5150.9727.70
Marker parameters /wp-admin/edit-tags.php?taxonomy=marker_category&post_type=gmaps_map_ve1,4973.4541.1331.31
List of all polygons /wp-admin/edit.php?post_type=gmaps_polygon_ve1,2973.5349.6026.93
List of maps /wp-admin/edit.php?post_type=gmaps_map_ve1,2973.6451.8428.61
Add new map /wp-admin/post-new.php?post_type=gmaps_map_ve2,1924.2272.4038.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #5 (PRO version editor button.), #6 (Override map settings for post or page only.)
  • Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
The official readme.txt might help

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

The main file in "Google Maps VE" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
23 characters long description:
Create your google maps

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
No dangerous file extensions were detected3,272 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5280262,737
PO File1186362416
CSS110083
JavaScript13036

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity41.20
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity5.02
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods50
▷ Static methods612.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants417.39%
▷ Class constants1982.61%
▷ Public constants19100.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.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
media/img/default-marker.png0.84KB1.10KB0.00%