99% advanced-maps-block

Code Review | Advanced Maps Block

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

About plugin

  • Plugin page: advanced-maps-block
  • Plugin version: 0.2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.2
  • WordPress version: 5.9.2
  • First release: Sep 3, 2019
  • Latest release: Sep 13, 2019
  • Number of updates: 4
  • Update frequency: every 2.8 days
  • Top authors: mmarzeotti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 527 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Advanced Maps Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0354.52 ▼2.56
Dashboard /wp-admin3.44 ▲0.0332.26 ▼4.45
Posts /wp-admin/edit.php3.67 ▲0.0236.29 ▼2.46
Add New Post /wp-admin/post-new.php6.91 ▼0.0796.10 ▼1,187.83
Media Library /wp-admin/upload.php3.31 ▲0.0224.80 ▼0.69

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Advanced Maps Block: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,794 ▲4016.97 ▲0.9014.66 ▲8.172.21 ▼0.92
Dashboard /wp-admin2,895 ▲406.06 ▼0.10117.94 ▼24.73158.55 ▼6.68
Posts /wp-admin/edit.php2,688 ▼33.23 ▼0.1464.88 ▼3.40136.59 ▼12.79
Add New Post /wp-admin/post-new.php1,669 ▼4217.10 ▼3.65417.15 ▼48.66157.16 ▼5.53
Media Library /wp-admin/upload.php1,698 ▲35.55 ▲0.06147.40 ▲2.67190.07 ▲6.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: google maps, map block, wordpress block, gutenberg block

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

The primary PHP file in "Advanced Maps Block" version 0.2.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-maps-block.php" instead of "plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,611 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin