100% idb-google-map-gutenberg

Code Review | Google Map for Gutenberg Block

WordPress plugin Google Map for Gutenberg Block scored 100% 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: 5.9.2
  • 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 / 504 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.23MB] [CPU: ▼299.18ms] Passed 4 tests

Analyzing server-side resources used by Google Map for Gutenberg Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0756.78 ▲7.01
Dashboard /wp-admin3.44 ▲0.0233.18 ▼0.06
Posts /wp-admin/edit.php3.67 ▲0.0237.22 ▼0.20
Add New Post /wp-admin/post-new.php5.98 ▼0.9959.20 ▼1,198.46
Media Library /wp-admin/upload.php3.32 ▲0.0225.34 ▲2.02
Google Map /wp-admin/tools.php?page=google_map3.2922.39

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Google Map for Gutenberg Block: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,065 ▲32122.44 ▲6.44172.46 ▲166.432.76 ▲0.52
Dashboard /wp-admin2,894 ▲365.95 ▼0.22112.69 ▼26.57156.82 ▼4.76
Posts /wp-admin/edit.php2,693 ▲53.22 ▼0.0163.83 ▼3.94143.67 ▲1.98
Add New Post /wp-admin/post-new.php1,777 ▲11623.14 ▲7.08416.00 ▼26.32189.95 ▲27.93
Media Library /wp-admin/upload.php1,703 ▲85.52 ▼0.00142.53 ▼2.46188.35 ▲2.12
Google Map /wp-admin/tools.php?page=google_map1,0132.3753.51146.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 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

The principal PHP file in "Google Map for Gutenberg Block" v. 1.0.0 is loaded by WordPress automatically on each request
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin159 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin