89% advanced-maps-block

Code Review | Advanced Maps Block

WordPress plugin Advanced Maps Block scored 89% from 54 tests.

About plugin

  • Plugin page: advanced-maps-block
  • Plugin version: 0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 3, 2019
  • Latest release: Nov 26, 2022
  • Number of updates: 7
  • Update frequency: every 168.7 days
  • Top authors: mmarzeotti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 982 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.75ms] Passed 4 tests

An overview of server-side resources used by Advanced Maps Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.25 ▼5.68
Dashboard /wp-admin3.31 ▲0.0146.66 ▼19.15
Posts /wp-admin/edit.php3.36 ▲0.0148.54 ▼1.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.63 ▼19.78
Media Library /wp-admin/upload.php3.24 ▲0.0138.12 ▼2.37

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Maps Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8614.43 ▼0.1715.56 ▲13.7848.21 ▼2.98
Dashboard /wp-admin2,206 ▲185.90 ▲0.05117.49 ▼3.7447.44 ▼7.73
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0143.97 ▲5.1441.36 ▼0.63
Add New Post /wp-admin/post-new.php1,479 ▼3518.52 ▼3.05733.18 ▼29.9367.76 ▼5.92
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.07139.28 ▲19.5961.21 ▲4.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% 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
4 plugin tags: map block, google maps, wordpress block, gutenberg block

advanced-maps-block/plugin.php 85% from 13 tests

This is the main PHP file of "Advanced Maps Block" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-maps-block.php" instead of "plugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)

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
Everything looks great! No dangerous files found in this plugin1,619 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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 functions5100.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin