10% robo-maps

Code Review | Maps - Google Maps

WordPress plugin Maps - Google Maps scored10%from 54 tests.

About plugin

  • Plugin page: robo-maps
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: May 19, 2017
  • Number of updates: 42
  • Update frequency: every 19.6 days
  • Top authors: robosoft (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

700+ active /37,016 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/robo-maps/robo-maps.php+22
    Use of undefined constant ROBO_MAPS_PATH - assumed 'ROBO_MAPS_PATH' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.96MB] [CPU: ▼49.81ms] Passed 4 tests

Server-side resources used by Maps - Google Maps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.437.25 ▼33.27
Dashboard /wp-admin2.05 ▼1.265.91 ▼40.84
Posts /wp-admin/edit.php2.05 ▼1.315.50 ▼43.16
Add New Post /wp-admin/post-new.php2.05 ▼3.846.91 ▼81.97
Media Library /wp-admin/upload.php2.05 ▼1.185.71 ▼29.54

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 67 new files
Database: 1 new table, 6 new options
New tables
wp_robo_maps
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Maps - Google Maps
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17414.88 ▲0.8925.08 ▲22.8939.80 ▼8.58
Dashboard /wp-admin2,222 ▲375.89 ▲0.07113.73 ▲6.5443.09 ▼4.01
Posts /wp-admin/edit.php2,141 ▲493.12 ▲1.0960.93 ▲25.9332.55 ▼0.44
Add New Post /wp-admin/post-new.php1,558 ▲1624.43 ▲6.06653.54 ▲13.6033.55 ▼23.14
Media Library /wp-admin/upload.php1,404 ▲164.27 ▼0.0993.96 ▼5.1442.15 ▼4.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/robo-maps/robo-maps.php+22
    Use of undefined constant ROBO_MAPS_PATH - assumed 'ROBO_MAPS_PATH' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_robo_maps
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/robo-maps/admin/partials/robo-maps-admin-display-dialog.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/robo-maps/admin/partials/robo-maps-admin-display.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/robo-maps/admin/partials/robo-maps-admin-display-form.php:12

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: maps, google maps, map markers, wordpress google maps, marker

robo-maps/robo-maps.php 92% from 13 tests

"Maps - Google Maps" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 231 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
No dangerous file extensions were detected18,815 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
CSS8646113,631
JavaScript81,0945523,458
PHP14193143915
PO File2238794582
SVG100229

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity6.71
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 1.15MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshots/screenshot5.png167.18KB67.30KB▼ 59.74%
images/screenshots/screenshot4.png146.76KB59.01KB▼ 59.79%
images/screenshots/screenshot1.png171.87KB68.02KB▼ 60.42%
images/logo.png7.28KB3.74KB▼ 48.68%
images/admin_plugin_userguide.png310.53KB144.49KB▼ 53.47%