90% embed-gutenberg-block-google-maps

Code Review | Gutenberg Block For Google Maps Embed By Pantheon

WordPress plugin Gutenberg Block For Google Maps Embed By Pantheon scored 90% from 54 tests.

About plugin

  • Plugin page: embed-gutenberg-b...
  • Plugin version: 1.5.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2018
  • Latest release: Apr 22, 2019
  • Number of updates: 43
  • Update frequency: every 10.7 days
  • Top authors: andrew.taylor (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 5,579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.14ms] Passed 4 tests

An overview of server-side resources used by Gutenberg Block For Google Maps Embed By Pantheon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.03 ▼0.61
Dashboard /wp-admin3.34 ▲0.0445.95 ▼4.07
Posts /wp-admin/edit.php3.39 ▲0.0348.88 ▲2.39
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.66 ▼2.27
Media Library /wp-admin/upload.php3.26 ▲0.0336.82 ▲3.71

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gutenberg Block For Google Maps Embed By Pantheon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.72 ▼0.664.81 ▲2.6844.14 ▲1.94
Dashboard /wp-admin2,206 ▲185.90 ▼0.01107.38 ▲3.7741.98 ▼5.29
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0239.87 ▲1.8636.34 ▲0.13
Add New Post /wp-admin/post-new.php6,418 ▲4,90420.70 ▲3.15973.12 ▲352.0946.79 ▼6.70
Media Library /wp-admin/upload.php1,391 ▲64.23 ▼0.06100.40 ▲1.0341.94 ▼1.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

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
5 plugin tags: map, embed, google, gutenberg, block

embed-gutenberg-block-google-maps/embed-gutenberg-block-google-maps.php 92% from 13 tests

"Gutenberg Block For Google Maps Embed By Pantheon" version 1.5.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected127 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12349124
JavaScript10102
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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
Namespaces1
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected