10% slick-google-map

Code Review | Slick Google Map

WordPress plugin Slick Google Map scored10%from 54 tests.

About plugin

  • Plugin page: slick-google-map
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.3.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Nov 27, 2015
  • Number of updates: 13
  • Update frequency: every 21.9 days
  • Top authors: norbusan (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,687 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/slick-google-map/admin-menu.php+230
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.44MB] [CPU: ▼49.74ms] Passed 4 tests

Server-side resources used by Slick Google Map
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.56 ▼0.907.04 ▼28.38
Dashboard /wp-admin2.58 ▼0.778.33 ▼49.16
Posts /wp-admin/edit.php2.58 ▼0.788.45 ▼35.66
Add New Post /wp-admin/post-new.php2.58 ▼3.317.67 ▼85.74
Media Library /wp-admin/upload.php2.58 ▼0.658.56 ▼27.65
Shortcode Builder /wp-admin/admin.php?page=sgmp-shortcodebuilder2.587.09
Saved Shortcodes /wp-admin/admin.php?page=sgmp-saved-shortcodes2.588.62
Settings /wp-admin/admin.php?page=sgmp-settings2.587.43
Documentation /wp-admin/admin.php?page=sgmp-documentation2.588.32

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 393 new files
Database: no new tables, 11 new options
New WordPress options
recovery_mode_email_last_sent
theysaidso_admin_options
sgmp_geomashup_data_cache_time
can_compress_scripts
SGMP_INITIAL_WARNING
widget_slickgooglemap
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
...

Browser metrics Passed 4 tests

A check of browser resources used by Slick Google Map
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17014.41 ▲0.011.69 ▼0.0340.11 ▼1.03
Dashboard /wp-admin2,291 ▲1064.93 ▼0.92101.29 ▼1.3066.09 ▲26.38
Posts /wp-admin/edit.php2,180 ▲912.01 ▼0.0235.68 ▼0.4933.12 ▼1.12
Add New Post /wp-admin/post-new.php1,601 ▲8222.95 ▼0.06674.36 ▲6.5039.01 ▼14.29
Media Library /wp-admin/upload.php1,476 ▲884.00 ▼0.2198.91 ▼12.7788.93 ▲40.60
Shortcode Builder /wp-admin/admin.php?page=sgmp-shortcodebuilder3,5902.0143.45238.66
Saved Shortcodes /wp-admin/admin.php?page=sgmp-saved-shortcodes9502.2828.4933.59
Settings /wp-admin/admin.php?page=sgmp-settings7381.536.4820.88
Documentation /wp-admin/admin.php?page=sgmp-documentation1,7942.3128.5344.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/slick-google-map/admin-menu.php+230
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options detected upon uninstall: 10 options
    • sgmp_geomashup_data_cache_time
    • db_upgraded
    • sgmp_geomashup_data_cache
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • SGMP_INITIAL_WARNING
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 44 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgmp-documentation
    • > Deprecated in wp-content/plugins/slick-google-map/admin-menu.php+291
    Array and string offset access syntax with curly braces is deprecated
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgmp-documentation
    • > Deprecated in wp-content/plugins/slick-google-map/slick-google-map.php+138
    Function create_function() is deprecated
    • > GET request to /wp-admin/admin.php?page=sgmp-settings
    • > Error in wp-content/plugins/slick-google-map/admin-menu.php+116
    Uncaught Error: Call to undefined function mysql_get_server_info() in wp-content/plugins/slick-google-map/admin-menu.php:116
    Stack trace:
    #0 wp-content/plugins/slick-google-map/admin-menu.php(72): sgmp_generate_support_data()
    #1 wp-includes/class-wp-hook.php(310): sgmp_settings_callback()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown

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
Please take a closer look at the following
  • 9× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/slick-google-map/admin-bar-menu.php
    • > /wp-content/plugins/slick-google-map/shortcode.php
    • > /wp-content/plugins/slick-google-map/slick-google-map.php
    • > /wp-content/plugins/slick-google-map/metabox.php
    • > /wp-content/plugins/slick-google-map/head.php
    • > /wp-content/plugins/slick-google-map/info.php
    • > /wp-content/plugins/slick-google-map/functions.php
    • > /wp-content/plugins/slick-google-map/admin-menu.php
    • > /wp-content/plugins/slick-google-map/widget.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgmp-documentation
    • > Javascript (severe) in unknown
    /wp-content/plugins/slick-google-map/assets/js/jquery.tools.tooltip.min.js?ver=1.2.5.a 18:151 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Tags: You are using too many tags: 35 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Help tooltip in action), #2 (Documentation page), #3 (Shortcode builder page), #4 (Generated short code in the editor), #5 (Facebook style interactive interface for map markers with custom icons and text), #6 (Direction panel), #7 (Markers info window with the direction and street view), #8 (Street view in the marker's infer window), #9 (When having marker Geo mashup, you can display in the info bubble marker's original post and post content excerpt instead of normally address and lat/long)
You can look at the official readme.txt

slick-google-map/slick-google-map.php 92% from 13 tests

The main PHP file in "Slick Google Map" ver. 0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 426 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected5,264 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript93942191,975
PHP104722671,965
PO File7236700563
JSON480537
CSS211197
make111627

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity11.50
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions83
▷ Named functions83100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
333 PNG files occupy 1.40MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/markers/restaurant_vegetarian.png1.21KB0.84KB▼ 30.65%
assets/css/images/markers/firstaid.png0.76KB0.60KB▼ 21.07%
assets/css/images/markers/letter_j.png0.67KB0.59KB▼ 11.44%
assets/css/images/markers/wiki-export.png1.31KB0.92KB▼ 29.97%
assets/css/images/markers/icy_road.png1.19KB0.77KB▼ 35.11%