89% simple-google-maps-short-code

Code Review | Simple Shortcode for Google Maps

WordPress plugin Simple Shortcode for Google Maps scored 89% from 54 tests.

About plugin

  • Plugin page: simple-google-map...
  • Plugin version: 1.5.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Oct 1, 2012
  • Latest release: Dec 23, 2022
  • Number of updates: 67
  • Update frequency: every 55.8 days
  • Top authors: fullworks (50.75%)WebFactory (28.36%)mordauk (23.88%)

Code review

54 tests

User reviews

41 reviews

Install metrics

6,000+ active / 151,407 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼6.29ms] Passed 4 tests

Server-side resources used by Simple Shortcode for Google Maps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2541.12 ▼0.11
Dashboard /wp-admin3.54 ▲0.2448.65 ▲0.78
Posts /wp-admin/edit.php3.65 ▲0.3048.94 ▼1.88
Add New Post /wp-admin/post-new.php6.12 ▲0.2386.53 ▼23.93
Media Library /wp-admin/upload.php3.46 ▲0.2340.90 ▲6.92
Simple Google Maps /wp-admin/options-general.php?page=simple-google-maps-settings3.4332.80

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
simple-google-maps-short-code_review
widget_theysaidso_widget
widget_recent-comments
simple-google-maps-short-code_donate

Browser metrics Passed 4 tests

Simple Shortcode for Google Maps: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.24 ▼1.141.70 ▲0.0339.42 ▼8.42
Dashboard /wp-admin2,206 ▲155.84 ▲0.95102.19 ▼2.8739.03 ▼6.48
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0335.68 ▼4.8932.43 ▼3.48
Add New Post /wp-admin/post-new.php1,536 ▲223.25 ▼0.06664.82 ▲23.8870.65 ▲17.06
Media Library /wp-admin/upload.php1,386 ▲44.21 ▼0.0197.00 ▼3.0943.15 ▲0.19
Simple Google Maps /wp-admin/options-general.php?page=simple-google-maps-settings1,0092.0329.9230.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

simple-google-maps-short-code/simple-google-map-short-code.php 85% from 13 tests

"Simple Shortcode for Google Maps" version 1.5.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-google-maps-short-code.php" instead of "simple-google-map-short-code.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,849 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP132406331,376
JSON200176
PO File24448176
JavaScript4157066
SVG11136
Sass22019

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity22.33
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods63
▷ Static methods1930.16%
▷ Public methods5790.48%
▷ Protected methods00.00%
▷ Private methods69.52%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.18MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/alanef/plugindonation_lib/images/logos/PPcards.png5.42KB5.35KB▼ 1.15%
vendor/alanef/plugindonation_lib/images/QRcodes/ETH.png7.39KB1.74KB▼ 76.47%
vendor/alanef/plugindonation_lib/images/logos/reviews.png1.46KB1.28KB▼ 12.42%
vendor/alanef/plugindonation_lib/images/logos/translate.png32.90KB12.18KB▼ 62.98%
vendor/alanef/plugindonation_lib/images/logos/PP.png3.65KB2.93KB▼ 19.63%