90% scblocks

Code Review | ScBlocks - Page Builder Gutenberg Blocks

WordPress plugin ScBlocks - Page Builder Gutenberg Blocks scored90%from 54 tests.

About plugin

  • Plugin page: scblocks
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.7.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2020
  • Latest release: Apr 28, 2021
  • Number of updates: 7
  • Update frequency: every 30.9 days
  • Top authors: sc81 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /572 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.24MB] [CPU: ▼16.12ms] Passed 4 tests

A check of server-side resources used by ScBlocks - Page Builder Gutenberg Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.53 ▼0.41
Dashboard /wp-admin3.34 ▼0.0144.67 ▼16.40
Posts /wp-admin/edit.php3.39 ▲0.0348.35 ▲2.09
Add New Post /wp-admin/post-new.php4.87 ▼1.0252.52 ▼46.34
Media Library /wp-admin/upload.php3.26 ▲0.0330.76 ▼1.31
ScBlocks /wp-admin/options-general.php?page=scblocks-settings3.2230.03

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
scblocks_css_write_time
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for ScBlocks - Page Builder Gutenberg Blocks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▼0.081.63 ▲0.0040.20 ▼1.34
Dashboard /wp-admin2,210 ▲225.01 ▼0.86101.77 ▼15.1138.36 ▼8.12
Posts /wp-admin/edit.php2,096 ▲42.05 ▲0.0441.12 ▲4.6934.94 ▼0.53
Add New Post /wp-admin/post-new.php6,198 ▲4,68419.36 ▲1.70809.31 ▲125.9535.80 ▼15.94
Media Library /wp-admin/upload.php1,395 ▲44.22 ▼0.0198.65 ▲1.0042.32 ▲0.29
ScBlocks /wp-admin/options-general.php?page=scblocks-settings8242.0624.0828.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • scblocks_css_write_time
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: gutenberg, container, blocks, page builder, wordpress blocks

scblocks/scblocks.php Passed 13 tests

The main PHP script in "ScBlocks - Page Builder Gutenberg Blocks" version 1.2.0 is automatically included on every request by WordPress
69 characters long description:
A collection of Gutenberg Blocks that help you build WordPress sites.

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
Success! There were no dangerous files found in this plugin3,493 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP252607253,458
CSS20029
JavaScript6006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity14.07
▷ Minimum class complexity3.00
▷ Maximum class complexity84.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods101
▷ Static methods1413.86%
▷ Public methods9998.02%
▷ Protected methods00.00%
▷ Private methods21.98%
Functions37
▷ Named functions410.81%
▷ Anonymous functions3389.19%
Constants13
▷ Global constants323.08%
▷ Class constants1076.92%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin