94% bricksbee

Code Review | Bricksbee for Bricks Builder

WordPress plugin Bricksbee for Bricks Builder scored 94% from 54 tests.

About plugin

  • Plugin page: bricksbee
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 5.9.2
  • First release: Sep 21, 2021
  • Latest release: Sep 22, 2021
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: badhonrocks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 176 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼321.80ms] Passed 4 tests

A check of server-side resources used by Bricksbee for Bricks Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0354.00 ▲1.84
Dashboard /wp-admin3.43 ▲0.0237.95 ▲1.70
Posts /wp-admin/edit.php3.66 ▲0.0236.54 ▼4.12
Add New Post /wp-admin/post-new.php6.90 ▼0.0794.69 ▼1,286.62
Media Library /wp-admin/upload.php3.31 ▲0.0229.40 ▲4.26

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Bricksbee for Bricks Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲5915.88 ▲0.256.01 ▼0.912.43 ▲0.01
Dashboard /wp-admin2,878 ▲176.09 ▼0.10121.41 ▼14.93158.30 ▼4.30
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0162.21 ▼2.22139.86 ▼4.04
Add New Post /wp-admin/post-new.php1,672 ▲1121.53 ▲5.50470.89 ▲27.89168.44 ▼10.75
Media Library /wp-admin/upload.php1,701 ▲35.50 ▲0.00143.39 ▼4.15189.55 ▼0.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bricksbee/includes/helper/functions.php:116

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

bricksbee/bricksbee.php 92% from 13 tests

The entry point to "Bricksbee for Bricks Builder" version 0.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "5.6")

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
Good job! No executable or dangerous file extensions detected3,618 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP156498363,302
CSS3606316

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity21.25
▷ Minimum class complexity2.00
▷ Maximum class complexity70.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods124
▷ Static methods1310.48%
▷ Public methods8568.55%
▷ Protected methods86.45%
▷ Private methods3125.00%
Functions9
▷ Named functions666.67%
▷ Anonymous functions333.33%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin