84% easy-maps-block

Code Review | Easy Maps Block

WordPress plugin Easy Maps Block scored84%from 54 tests.

About plugin

  • Plugin page: easy-maps-block
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 23, 2019
  • Latest release: Aug 8, 2023
  • Number of updates: 17
  • Update frequency: every 78.0 days
  • Top authors: boldgrid (76.47%)bwmarkle (23.53%)joemoto (11.76%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /7,321 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼0.12ms] Passed 4 tests

Server-side resources used by Easy Maps Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.56 ▼4.40
Dashboard /wp-admin3.31 ▲0.0144.76 ▼2.18
Posts /wp-admin/edit.php3.36 ▲0.0052.05 ▲3.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.99 ▲2.72
Media Library /wp-admin/upload.php3.24 ▲0.0037.79 ▲4.81

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Easy Maps Block: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.15 ▼1.151.84 ▲0.1240.07 ▼1.22
Dashboard /wp-admin2,203 ▲245.86 ▼0.01108.43 ▲3.7743.93 ▲1.85
Posts /wp-admin/edit.php2,086 ▼62.01 ▼0.0138.88 ▼1.0335.34 ▼0.20
Add New Post /wp-admin/post-new.php6,413 ▲4,88028.20 ▲5.00812.05 ▲187.7555.14 ▲6.04
Media Library /wp-admin/upload.php1,385 ▼64.21 ▼0.12108.60 ▲11.7442.97 ▲0.11

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_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-maps-block/easy-maps-block.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: google, map, boldgrid

easy-maps-block/easy-maps-block.php 85% from 13 tests

The entry point to "Easy Maps Block" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin167 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript270128
JSON10024
PHP241015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin