78% rsv-google-maps

Code Review | RSV GMaps

WordPress plugin RSV GMaps scored78%from 54 tests.

About plugin

  • Plugin page: rsv-google-maps
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2015
  • Latest release: Dec 15, 2019
  • Number of updates: 56
  • Update frequency: every 27.3 days
  • Top authors: Rapid Sort (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,048 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
Installer ran successfully

Server metrics [RAM: ▼0.51MB] [CPU: ▼17.82ms] Passed 4 tests

A check of server-side resources used by RSV GMaps
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1842.58 ▲3.31
Dashboard /wp-admin3.48 ▲0.1747.91 ▼4.11
Posts /wp-admin/edit.php3.59 ▲0.2448.52 ▼4.18
Add New Post /wp-admin/post-new.php3.33 ▼2.5638.08 ▼66.31
Media Library /wp-admin/upload.php3.40 ▲0.1739.80 ▲7.07
Add New /wp-admin/post-new.php?post_type=rsvgmap3.3237.56
RSV GMaps Options /wp-admin/edit.php?post_type=rsvgmap&page=rsv-gmaps-unique-identifier3.3530.71
Rsv Gmaps /wp-admin/edit.php?post_type=rsvgmap3.4430.17

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for RSV GMaps
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.23 ▲0.021.70 ▼0.2840.94 ▲0.00
Dashboard /wp-admin2,229 ▲525.66 ▲0.0687.11 ▼5.2138.11 ▼5.44
Posts /wp-admin/edit.php2,131 ▲312.04 ▲0.0335.94 ▲0.5433.72 ▼5.47
Add New Post /wp-admin/post-new.php1,571 ▲3123.23 ▼0.01644.66 ▲2.1943.30 ▼11.41
Media Library /wp-admin/upload.php1,428 ▲254.26 ▼0.00104.94 ▲2.0245.87 ▲0.51
Add New /wp-admin/post-new.php?post_type=rsvgmap1,6963.6364.9733.35
RSV GMaps Options /wp-admin/edit.php?post_type=rsvgmap&page=rsv-gmaps-unique-identifier8872.0223.5036.14
Rsv Gmaps /wp-admin/edit.php?post_type=rsvgmap1,0952.0131.5430.16

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=rsvgmap
    • > Notice in wp-content/plugins/rsv-google-maps/rsv-gmaps.php+28
    Undefined index: eventmeta_noncename
    • > GET request to /wp-admin/edit.php?post_type=rsvgmap&page=rsv-gmaps-unique-identifier
    • > Notice in wp-content/plugins/rsv-google-maps/rsv-gmaps.php+251
    Undefined index: rsv_data_save

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/rsv-google-maps/rsv-gmaps.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: rsv gmaps, google maps, google map multiple pointers, multiple pointers, rsv maps...

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

Analyzing the main PHP file in "RSV GMaps" version 1.5
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("rsv-google-maps.php" instead of "rsv-gmaps.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin656 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3251450656

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png2.69KB1.45KB▼ 46.17%