84% wp-google-maps-shortcode

Code Review | WP Google Maps Shortcode

WordPress plugin WP Google Maps Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: wp-google-maps-sh...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: Apr 19, 2014
  • Latest release: Feb 17, 2015
  • Number of updates: 10
  • Update frequency: every 31.0 days
  • Top authors: fahmiadib (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /9,794 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.13ms] Passed 4 tests

A check of server-side resources used by WP Google Maps Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.53 ▼2.26
Dashboard /wp-admin3.31 ▲0.0048.33 ▼3.76
Posts /wp-admin/edit.php3.36 ▲0.0050.97 ▼2.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.52 ▼12.30
Media Library /wp-admin/upload.php3.23 ▲0.0038.20 ▼0.00

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Google Maps Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.082.08 ▲0.1741.21 ▼1.10
Dashboard /wp-admin2,189 ▲125.49 ▼0.1691.58 ▲2.4241.38 ▲0.48
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0735.37 ▼2.9732.33 ▼1.81
Add New Post /wp-admin/post-new.php1,526 ▼223.06 ▼0.07673.62 ▲57.1459.07 ▼4.76
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.07100.60 ▼6.3247.26 ▼1.77

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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× 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/wp-google-maps-shortcode/wp-gmaps-shortcode.php:78

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: maps, short code, google maps, gmaps

wp-google-maps-shortcode/wp-gmaps-shortcode.php 92% from 13 tests

The entry point to "WP Google Maps Shortcode" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-google-maps-shortcode.php" instead of "wp-gmaps-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin96 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1232596

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin