89% builder-blocks

Code Review | Builder Blocks

WordPress plugin Builder Blocks scored89%from 54 tests.

About plugin

  • Plugin page: builder-blocks
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.0.2
  • WordPress version: 6.3.1
  • First release: Dec 23, 2018
  • Latest release: Dec 23, 2018
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: mrpritchett (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,302 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Builder Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.31 ▲1.08
Dashboard /wp-admin3.31 ▲0.0151.05 ▲1.62
Posts /wp-admin/edit.php3.36 ▲0.0145.50 ▼8.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.01 ▼9.57
Media Library /wp-admin/upload.php3.24 ▲0.0135.60 ▼0.12

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Builder Blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.72 ▲0.371.95 ▲0.3645.41 ▲3.29
Dashboard /wp-admin2,192 ▲125.51 ▼0.1482.28 ▼1.3840.27 ▼4.56
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0135.75 ▼2.7633.23 ▼8.73
Add New Post /wp-admin/post-new.php6,373 ▲4,83522.66 ▲4.44868.12 ▲256.8371.52 ▲8.41
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.0598.53 ▲3.8639.84 ▼1.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Editing A Menu Item.), #2 (A Menu Item.), #3 (Menu Item and Menu blocks.)
The official readme.txt is a good inspiration

builder-blocks/builder-blocks.php 92% from 13 tests

The primary PHP file in "Builder Blocks" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin552 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14081309
SVG100142
CSS12143
PHP497141
Markdown17017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 1.39MB with 1.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png202.50KB45.74KB▼ 77.41%
assets/screenshot-3.png247.66KB61.04KB▼ 75.35%
assets/screenshot-1.png202.50KB45.74KB▼ 77.41%
assets/screenshot-2.png263.27KB60.51KB▼ 77.02%
screenshot-3.png247.66KB61.04KB▼ 75.35%