84% blocks-grid-builder-for-bootstrap

Code Review | Blocks Grid Builder For Bootstrap

WordPress plugin Blocks Grid Builder For Bootstrap scored84%from 54 tests.

About plugin

  • Plugin page: blocks-grid-build...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Dec 21, 2021
  • Latest release: Jan 28, 2022
  • Number of updates: 5
  • Update frequency: every 7.6 days
  • Top authors: besquares (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,459 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼9.41ms] Passed 4 tests

Analyzing server-side resources used by Blocks Grid Builder For Bootstrap
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.78 ▼1.80
Dashboard /wp-admin3.43 ▲0.0848.32 ▼16.80
Posts /wp-admin/edit.php3.48 ▲0.1248.44 ▼2.22
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.49 ▼16.83
Media Library /wp-admin/upload.php3.35 ▲0.1236.27 ▲3.35

Server storage [IO: ▲0.32MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blocks Grid Builder For Bootstrap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5314.28 ▼0.451.96 ▲0.4242.71 ▲3.29
Dashboard /wp-admin2,195 ▲155.59 ▼0.0793.86 ▲4.6642.40 ▲3.43
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0133.68 ▼3.9333.60 ▼3.80
Add New Post /wp-admin/post-new.php6,201 ▲4,67319.61 ▼3.51909.88 ▲219.0255.06 ▼12.24
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.0398.39 ▼6.0046.77 ▲0.54

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 3× 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/blocks-grid-builder-for-bootstrap/src/blocks/container/block.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocks-grid-builder-for-bootstrap/src/blocks/column/block.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocks-grid-builder-for-bootstrap/src/blocks/row/block.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

blocks-grid-builder-for-bootstrap/blocks-builder-for-bootstrap.php 92% from 13 tests

"Blocks Grid Builder For Bootstrap" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("blocks-grid-builder-for-bootstrap.php" instead of "blocks-builder-for-bootstrap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,232 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25176511,748
JSON400840
Sass5127364
PHP54122268
CSS315312

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin