94% buba-blocks

Code Review | Buba Blocks

WordPress plugin Buba Blocks scored 94% from 53 tests.

About plugin

  • Plugin page: buba-blocks
  • Plugin version: 1.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 5.8.1
  • First release: Jan 15, 2021
  • Latest release: Sep 27, 2021
  • Number of updates: 29
  • Update frequency: every 9.1 days
  • Top authors: ecuras (100%)

Code review

53 tests

User reviews

5 reviews

Install metrics

10+ active / 962 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼269.37ms] Passed 4 tests

An overview of server-side resources used by Buba Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.05 ▲0.3340.63 ▲9.46
Dashboard /wp-admin3.28 ▲0.2345.71 ▲5.38
Posts /wp-admin/edit.php3.39 ▲0.2847.09 ▲7.57
Add New Post /wp-admin/post-new.php5.18 ▼0.2561.22 ▼1,081.85
Media Library /wp-admin/upload.php3.21 ▲0.2131.66 ▼8.56

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 234 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Buba Blocks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,851 ▲26916.38 ▲0.4216.06 ▲7.0945.50 ▼3.64
Dashboard /wp-admin2,969 ▲1175.98 ▲0.12134.69 ▲1.14106.51 ▲1.37
Posts /wp-admin/edit.php2,723 ▲172.69 ▼0.0170.08 ▲6.8393.52 ▼4.54
Add New Post /wp-admin/post-new.php1,783 ▲13019.67 ▲0.96431.23 ▲62.92104.89 ▼6.96
Media Library /wp-admin/upload.php1,795 ▲234.99 ▲0.01149.04 ▼3.31106.29 ▼12.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buba-blocks/patterns/index.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 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: buba blocks, gutenberg, gutenberg blocks, blocks, editor

buba-blocks/index.php 92% from 13 tests

The main PHP file in "Buba Blocks" ver. 1.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("buba-blocks.php" instead of "index.php")

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
There were no executable files found in this plugin21,190 lines of code in 195 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript921,5962,14315,438
Sass30224123,264
PHP29225381980
CSS3011050779
SVG1410729

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions37
▷ Named functions3697.30%
▷ Anonymous functions12.70%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin