78% grid-googlemaps-box

Code Review | Grid GoogleMaps Box

WordPress plugin Grid GoogleMaps Box scored78%from 54 tests.

About plugin

  • Plugin page: grid-googlemaps-box
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2015
  • Latest release: Feb 18, 2015
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: EdwardBock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /946 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Grid GoogleMaps Box
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.78 ▼0.77
Dashboard /wp-admin3.31 ▲0.0245.38 ▼1.49
Posts /wp-admin/edit.php3.37 ▲0.0145.00 ▲0.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.61 ▼2.98
Media Library /wp-admin/upload.php3.24 ▲0.0138.25 ▲1.42

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Grid GoogleMaps Box: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.551.97 ▲0.1544.07 ▼2.24
Dashboard /wp-admin2,206 ▲285.79 ▲0.86101.12 ▼18.1440.19 ▼4.38
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0334.95 ▼1.1035.76 ▲1.42
Add New Post /wp-admin/post-new.php1,533 ▲523.04 ▲4.71635.46 ▲12.3851.97 ▼4.59
Media Library /wp-admin/upload.php1,388 ▲34.26 ▲0.10108.15 ▲8.4449.84 ▲6.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/grid-googlemaps-box/templates/grid-box-gmaps-editmode.tpl.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/grid-googlemaps-box/templates/grid-box-gmaps-editmode.tpl.php on line 4
    • > PHP Notice
      Trying to get property 'lat' of non-object in wp-content/plugins/grid-googlemaps-box/templates/grid-box-gmaps-editmode.tpl.php on line 4
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/grid-googlemaps-box/templates/grid-box-gmaps-editmode.tpl.php on line 3
    • > PHP Notice
      Trying to get property 'coordinates' of non-object in wp-content/plugins/grid-googlemaps-box/templates/grid-box-gmaps-editmode.tpl.php on line 4
    • > PHP Notice
      Trying to get property 'lng' of non-object in wp-content/plugins/grid-googlemaps-box/templates/grid-box-gmaps-editmode.tpl.php on line 3
    • > PHP Notice
      Trying to get property 'coordinates' of non-object in wp-content/plugins/grid-googlemaps-box/templates/grid-box-gmaps-editmode.tpl.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/grid-googlemaps-box/grid-gmaps-box.php:16
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/grid-googlemaps-box/templates/grid-box-gmaps.tpl.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: landingpage, grid, coorindates, maps

grid-googlemaps-box/grid-gmaps-box.php 92% from 13 tests

The entry point to "Grid GoogleMaps Box" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("grid-googlemaps-box.php" instead of "grid-gmaps-box.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin109 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript215656
PHP371641
Pascal15216
CSS1004
Markdown1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin