83% section-builder-block

Code Review | Advnaced Background for Gutenberg Blocks

WordPress plugin Advnaced Background for Gutenberg Blocks scored83%from 54 tests.

About plugin

  • Plugin page: section-builder-b...
  • Plugin version: 1.5.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2022
  • Latest release: Nov 11, 2023
  • Number of updates: 7
  • Update frequency: every 94.6 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,019 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.05MB] [CPU: ▼9.31ms] Passed 4 tests

Server-side resources used by Advnaced Background for Gutenberg Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0733.74 ▼6.63
Dashboard /wp-admin3.37 ▲0.0243.47 ▼17.17
Posts /wp-admin/edit.php3.42 ▲0.0645.86 ▼1.56
Add New Post /wp-admin/post-new.php5.95 ▲0.0782.36 ▼10.58
Media Library /wp-admin/upload.php3.29 ▲0.0635.46 ▼2.87
Section Builder /wp-admin/tools.php?page=scbb-section-builder3.2629.88

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Advnaced Background for Gutenberg Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5214.24 ▲0.191.71 ▲0.0237.10 ▼6.73
Dashboard /wp-admin2,201 ▲205.50 ▼0.2084.52 ▼28.8940.49 ▼6.22
Posts /wp-admin/edit.php2,106 ▲91.94 ▼0.0639.00 ▲2.0036.19 ▲0.85
Add New Post /wp-admin/post-new.php6,371 ▲4,84527.53 ▲4.30913.27 ▲236.4255.76 ▲1.19
Media Library /wp-admin/upload.php1,409 ▲124.21 ▲0.0296.83 ▼11.1440.58 ▼7.32
Section Builder /wp-admin/tools.php?page=scbb-section-builder1,2929.04273.9372.20

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 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/section-builder-block/admin/admin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

section-builder-block/plugin.php 69% from 13 tests

"Advnaced Background for Gutenberg Blocks" version 1.5.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("section-builder-block.php" instead of "plugin.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.7")
  • Description: Please don't use more than 140 characters for the plugin description (currently 216 characters long)
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.4" instead of "7.0")

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 detected2,368 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7941291,765
CSS43714231
PHP32867169
JSON100148
Sass24055

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.00
▷ Minimum class complexity2.00
▷ Maximum class complexity16.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods12
▷ Static methods18.33%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin