89% gosign-google-maps-block

Code Review | Gosign - Google Maps Block

WordPress plugin Gosign - Google Maps Block scored89%from 54 tests.

About plugin

  • Plugin page: gosign-google-map...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0+
  • WordPress version: 6.3.1
  • First release: Mar 17, 2019
  • Latest release: May 19, 2022
  • Number of updates: 16
  • Update frequency: every 72.4 days
  • Top authors: gosign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,622 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Gosign - Google Maps Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.10 ▲1.58
Dashboard /wp-admin3.32 ▲0.0149.27 ▲0.16
Posts /wp-admin/edit.php3.37 ▲0.0149.37 ▲1.49
Add New Post /wp-admin/post-new.php5.85 ▼0.0495.24 ▼0.18
Media Library /wp-admin/upload.php3.24 ▲0.0140.46 ▲8.10

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Gosign - Google Maps Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲17813.98 ▼0.3910.12 ▲8.4843.62 ▼2.48
Dashboard /wp-admin2,209 ▲215.89 ▲1.0194.27 ▼8.1639.37 ▼0.84
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0435.92 ▲1.0131.89 ▼3.45
Add New Post /wp-admin/post-new.php6,429 ▲4,89628.86 ▲5.54842.69 ▲156.7738.84 ▼13.88
Media Library /wp-admin/upload.php1,388 ▲34.29 ▲0.0397.01 ▼3.4339.28 ▼6.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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 a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in gosign-google-maps-block/assets to your readme.txt
  • Requires php: Invalid plugin version format
The official readme.txt might help

gosign-google-maps-block/gosign-googlemaps.php 92% from 13 tests

"Gosign - Google Maps Block" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("gosign-google-maps-block.php" instead of "gosign-googlemaps.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin291 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP239146161
Markdown125091
SVG70029
JavaScript40317
CSS3003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
6 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
blocks/googlemaps/styles/style-light.png3.91KB4.29KB0.00%
blocks/googlemaps/styles/style-custom.png0.11KB0.11KB0.00%
blocks/googlemaps/styles/style-dark.png3.66KB3.87KB0.00%
blocks/googlemaps/styles/style-default.png7.58KB7.86KB0.00%
blocks/googlemaps/styles/style-pale-dawn.png6.61KB6.89KB0.00%