90% we-google-map-block

Code Review | WE - Google Map Gutenberg Block

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

About plugin

  • Plugin page: we-google-map-block
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 19, 2018
  • Latest release: Jul 6, 2023
  • Number of updates: 11
  • Update frequency: every 150.9 days
  • Top authors: wordpresteem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by WE - Google Map Gutenberg Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.85 ▲1.25
Dashboard /wp-admin3.31 ▲0.0046.83 ▼6.57
Posts /wp-admin/edit.php3.36 ▲0.0047.64 ▼2.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.79 ▼11.03
Media Library /wp-admin/upload.php3.23 ▲0.0035.73 ▲2.39

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WE - Google Map Gutenberg Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.001.86 ▲0.2941.58 ▼0.75
Dashboard /wp-admin2,195 ▲215.61 ▼0.0191.28 ▼6.2743.44 ▲3.92
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0136.59 ▼0.6834.85 ▼5.33
Add New Post /wp-admin/post-new.php6,362 ▲4,83627.73 ▲4.74898.00 ▲202.8958.82 ▲7.02
Media Library /wp-admin/upload.php1,403 ▲64.19 ▲0.0297.79 ▼7.3943.59 ▼4.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: gutenberg google map block, google maps for gutenberg, google map gutenberg block, google maps, google map block

we-google-map-block/we-google-map-block.php 92% from 13 tests

The main PHP file in "WE - Google Map Gutenberg Block" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin132 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript111789
PHP2212343

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ 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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin