90% bricksable

Code Review | Bricksable for Bricks Builder

WordPress plugin Bricksable for Bricks Builder scored90%from 54 tests.

About plugin

  • Plugin page: bricksable
  • Plugin version: 1.6.40
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 22, 2021
  • Latest release: Nov 10, 2023
  • Number of updates: 107
  • Update frequency: every 8.7 days
  • Top authors: bricksable (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

3,000+ active /61,491 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼6.73ms] Passed 4 tests

An overview of server-side resources used by Bricksable for Bricks Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2440.30 ▲1.50
Dashboard /wp-admin3.55 ▲0.2045.23 ▼16.04
Posts /wp-admin/edit.php3.66 ▲0.3047.93 ▲2.66
Add New Post /wp-admin/post-new.php6.13 ▲0.2485.54 ▼15.03
Media Library /wp-admin/upload.php3.47 ▲0.2435.74 ▲4.67

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bricksable for Bricks Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7714.17 ▼0.572.02 ▲0.4342.68 ▼1.29
Dashboard /wp-admin2,201 ▲245.48 ▼0.1392.46 ▼9.9939.16 ▼5.90
Posts /wp-admin/edit.php2,109 ▲62.01 ▲0.0238.45 ▼3.2238.92 ▲0.10
Add New Post /wp-admin/post-new.php1,535 ▲923.12 ▲0.06626.19 ▼31.6250.97 ▼7.04
Media Library /wp-admin/upload.php1,409 ▲94.19 ▼0.12105.53 ▲6.7943.83 ▲3.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: bricks, bricks element, bricks builder

bricksable/bricksable.php 92% from 13 tests

The primary PHP file in "Bricksable for Bricks Builder" version 1.6.40 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 232 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected16,992 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
PHP271,6321,28513,970
CSS28395172,542
JavaScript14111107480

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity44.58
▷ Minimum class complexity3.00
▷ Maximum class complexity175.00
Average method complexity7.70
▷ Minimum method complexity1.00
▷ Maximum method complexity92.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods156
▷ Static methods42.56%
▷ Public methods15398.08%
▷ Protected methods00.00%
▷ Private methods31.92%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.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
No PNG files were detected