84% modal-builder-block

Code Review | Modal Builder Block

WordPress plugin Modal Builder Block scored84%from 54 tests.

About plugin

  • Plugin page: modal-builder-block
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8.0
  • WordPress version: 6.3.1
  • First release: Aug 26, 2021
  • Latest release: Aug 27, 2021
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: rodrigoleon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /2,275 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Modal Builder Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.27 ▲0.76
Dashboard /wp-admin3.32 ▲0.0149.45 ▼0.31
Posts /wp-admin/edit.php3.37 ▲0.0148.84 ▼3.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.09 ▼9.00
Media Library /wp-admin/upload.php3.24 ▲0.0134.71 ▲1.70

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Modal Builder Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.33 ▼0.031.77 ▲0.1043.05 ▼7.32
Dashboard /wp-admin2,195 ▲185.62 ▼0.0286.02 ▼5.7439.94 ▼2.11
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0137.57 ▲3.2635.25 ▼0.25
Add New Post /wp-admin/post-new.php6,366 ▲4,83827.63 ▲4.39892.18 ▲200.8862.18 ▲6.62
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.0195.83 ▼15.0942.43 ▼3.40

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/modal-builder-block/modal-builder-block.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: window, modal, block, gutenberg, lightbox...

modal-builder-block/modal-builder-block.php 92% from 13 tests

The main PHP script in "Modal Builder Block" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 155 characters long)

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
No dangerous file extensions were detected95 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript281156
JSON10026
PHP262011
CSS2002

PHP code Passed 2 tests

This is a very shot review 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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin