84% vihv-google-maps

Code Review | Vihv Google Maps

WordPress plugin Vihv Google Maps scored 84% from 54 tests.

About plugin

  • Plugin page: vihv-google-maps
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 5.9.2
  • First release: Jul 9, 2013
  • Latest release: Jul 9, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: Vihv (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,308 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼293.71ms] Passed 4 tests

A check of server-side resources used by Vihv Google Maps
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0554.80 ▲7.29
Dashboard /wp-admin3.43 ▲0.0233.20 ▼0.61
Posts /wp-admin/edit.php3.65 ▲0.0137.11 ▼0.02
Add New Post /wp-admin/post-new.php6.89 ▼0.07118.20 ▼1,175.94
Media Library /wp-admin/upload.php3.30 ▲0.0126.22 ▲1.72

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
widget_vihv_google_maps_widget

Browser metrics Passed 4 tests

Checking browser requirements for Vihv Google Maps
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,889 ▲13517.48 ▲1.8612.50 ▲6.312.38 ▼0.49
Dashboard /wp-admin2,896 ▲387.20 ▲1.09119.32 ▼20.05154.49 ▼10.29
Posts /wp-admin/edit.php2,695 ▲73.46 ▲0.2370.69 ▲4.74134.39 ▼8.30
Add New Post /wp-admin/post-new.php1,779 ▲11821.54 ▲5.41434.35 ▼3.06181.23 ▲28.14
Media Library /wp-admin/upload.php1,705 ▲76.38 ▲0.88128.92 ▼22.10191.45 ▲4.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_vihv_google_maps_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vihv-google-maps/vihv-google-maps.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: maps, map, kml, google maps

vihv-google-maps/vihv-google-maps.php 92% from 13 tests

The main PHP script in "Vihv Google Maps" version 2.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 229 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin109 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP171369
JavaScript16037
CSS1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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 files were detected