89% embed-maps-block

Code Review | Block for Embed Google Maps

WordPress plugin Block for Embed Google Maps scored89%from 54 tests.

About plugin

  • Plugin page: embed-maps-block
  • Plugin version: 1.5.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2022
  • Latest release: Nov 11, 2023
  • Number of updates: 5
  • Update frequency: every 134.8 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,121 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.27ms] Passed 4 tests

This is a short check of server-side resources used by Block for Embed Google Maps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.67 ▼9.07
Dashboard /wp-admin3.32 ▲0.0243.16 ▼5.90
Posts /wp-admin/edit.php3.38 ▲0.0244.11 ▼2.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.10 ▲0.12
Media Library /wp-admin/upload.php3.25 ▲0.0234.89 ▲0.70

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Block for Embed Google Maps
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.72 ▲0.381.71 ▲0.0140.79 ▼3.08
Dashboard /wp-admin2,195 ▲185.62 ▼0.0091.08 ▼2.5836.66 ▼6.89
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0439.29 ▲2.9436.90 ▲4.04
Add New Post /wp-admin/post-new.php6,364 ▲4,83527.40 ▲4.32848.68 ▲201.3353.72 ▼3.41
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.00100.94 ▲1.0739.98 ▼1.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt is a good inspiration

embed-maps-block/plugin.php 69% from 13 tests

This is the main PHP file of "Block for Embed Google Maps" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.7")
  • Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("embed-maps-block.php" instead of "plugin.php")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.4" instead of "7.0")

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 detected287 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61312189
JSON10050
PHP2153941
Sass1106
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin