78% site-editor-google-map

Code Review | Site Editor Google Map - with drag and drop

WordPress plugin Site Editor Google Map - with drag and drop scored78%from 54 tests.

About plugin

  • Plugin page: site-editor-googl...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.4
  • WordPress version: 6.3.1
  • First release: May 3, 2017
  • Latest release: May 3, 2017
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: wpsiteeditor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /788 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Site Editor Google Map - with drag and drop
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.36 ▲2.23
Dashboard /wp-admin3.32 ▼0.0350.09 ▼16.55
Posts /wp-admin/edit.php3.37 ▲0.0149.41 ▼0.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.62 ▼16.39
Media Library /wp-admin/upload.php3.24 ▲0.0137.34 ▼0.28

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Site Editor Google Map - with drag and drop
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.75 ▲0.382.06 ▼0.7044.24 ▼1.26
Dashboard /wp-admin2,224 ▲184.84 ▼0.02110.68 ▲10.5543.12 ▼3.81
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0433.85 ▼2.5435.19 ▼0.91
Add New Post /wp-admin/post-new.php1,546 ▲123.32 ▼0.03674.52 ▲10.5970.78 ▲13.50
Media Library /wp-admin/upload.php1,403 ▼04.20 ▲0.0396.29 ▼8.5941.34 ▼5.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/site-editor-google-map/modules/google-map/sed-gmap-custom.php
    • > /wp-content/plugins/site-editor-google-map/modules/google-map/skins/default/sed_google_map.php
  • 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: sed_attrs in wp-content/plugins/site-editor-google-map/modules/google-map/skins/default/sed_google_map.php on line 1
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/site-editor-google-map/modules/google-map/skins/default/sed_google_map.php on line 1
    • > PHP Notice
      Undefined variable: panControl in wp-content/plugins/site-editor-google-map/modules/google-map/sed-gmap-custom.php on line 128
    • > PHP Notice
      Undefined index: api_key in wp-content/plugins/site-editor-google-map/modules/google-map/sed-gmap-custom.php on line 66
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/site-editor-google-map/modules/google-map/sed-gmap-custom.php on line 131
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/site-editor-google-map/modules/google-map/sed-gmap-custom.php on line 104
    • > PHP Notice
      Undefined variable: zoom in wp-content/plugins/site-editor-google-map/modules/google-map/sed-gmap-custom.php on line 123
    • > PHP Notice
      Undefined variable: overlayColor in wp-content/plugins/site-editor-google-map/modules/google-map/sed-gmap-custom.php on line 116
    • > PHP Notice
      Undefined variable: description in wp-content/plugins/site-editor-google-map/modules/google-map/sed-gmap-custom.php on line 93
    • > PHP Notice
      Undefined variable: moduleUrl in wp-content/plugins/site-editor-google-map/modules/google-map/sed-gmap-custom.php on line 68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #3, #4 in site-editor-google-map/assets to your readme.txt
  • Tags: You are using too many tags: 15 tag instead of maximum 10
Please take inspiration from this readme.txt

site-editor-google-map/site-editor-google-map.php Passed 13 tests

The main PHP script in "Site Editor Google Map - with drag and drop" version 1.0.1 is automatically included on every request by WordPress
76 characters long description:
Site Editor Google Map added simple google map to your site with site editor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,084 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4239201,619
PHP512168408
Markdown130057

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.31
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods16
▷ Static methods16.25%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
No PNG files were detected