90% idb-google-map-gutenberg

Code Review | Google Map for Gutenberg Block

WordPress plugin Google Map for Gutenberg Block scored90%from 54 tests.

About plugin

  • Plugin page: idb-google-map-gu...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.0
  • WordPress version: 6.3.1
  • First release: Feb 12, 2019
  • Latest release: Feb 13, 2019
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: idesignbucket (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /835 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.26MB] [CPU: ▼16.58ms] Passed 4 tests

This is a short check of server-side resources used by Google Map for Gutenberg Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.70 ▲5.55
Dashboard /wp-admin3.33 ▼0.0248.95 ▼17.34
Posts /wp-admin/edit.php3.38 ▲0.0247.76 ▼6.83
Add New Post /wp-admin/post-new.php4.82 ▼1.0656.37 ▼41.20
Media Library /wp-admin/upload.php3.25 ▲0.0237.82 ▼0.94
Google Map /wp-admin/tools.php?page=google_map3.2231.43

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

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

Browser metrics Passed 4 tests

Google Map for Gutenberg Block: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,065 ▲30423.19 ▲8.90189.07 ▲187.3138.19 ▼3.34
Dashboard /wp-admin2,225 ▲255.99 ▼0.0386.59 ▼25.5438.33 ▼6.58
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0539.69 ▼1.9335.66 ▼2.85
Add New Post /wp-admin/post-new.php6,205 ▲4,67419.68 ▼3.62951.32 ▲267.4240.73 ▼28.16
Media Library /wp-admin/upload.php1,398 ▼24.24 ▲0.0397.29 ▼8.9748.04 ▼0.95
Google Map /wp-admin/tools.php?page=google_map7952.0826.3536.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

idb-google-map-gutenberg/idb-google-map-gutenberg.php Passed 13 tests

"Google Map for Gutenberg Block" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Simple, draggable map block powered by Google Maps for Gutenberg editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected159 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23384
PHP1117364
CSS23011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin