84% very-simple-google-maps

Code Review | Very Simple Google Maps

WordPress plugin Very Simple Google Maps scored84%from 54 tests.

About plugin

  • Plugin page: very-simple-googl...
  • Plugin version: 2.9.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3
  • WordPress version: 6.3.1
  • First release: Jun 23, 2013
  • Latest release: Oct 23, 2023
  • Number of updates: 65
  • Update frequency: every 58.1 days
  • Top authors: MasterK (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

4,000+ active /36,537 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
Install script ran successfully

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

Analyzing server-side resources used by Very Simple Google Maps
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.64 ▼1.55
Dashboard /wp-admin3.31 ▼0.0339.52 ▼18.89
Posts /wp-admin/edit.php3.37 ▲0.0148.17 ▲4.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0175.96 ▼10.11
Media Library /wp-admin/upload.php3.24 ▲0.0132.41 ▼5.38

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Very Simple Google Maps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.391.54 ▼0.3136.80 ▼0.67
Dashboard /wp-admin2,195 ▲175.58 ▼0.1494.07 ▼3.4642.38 ▲1.38
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0539.68 ▲4.9836.26 ▲1.04
Add New Post /wp-admin/post-new.php1,526 ▼023.78 ▲0.80671.78 ▲1.1353.15 ▲1.16
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.0293.37 ▼10.6740.16 ▼7.27

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/very-simple-google-maps/very-simple-google-maps.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: maps, google, direction, contact

very-simple-google-maps/very-simple-google-maps.php 92% from 13 tests

Analyzing the main PHP file in "Very Simple Google Maps" version 2.9.1
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 414 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11817

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected