84% buba-blocks

Code Review | Buba Blocks

WordPress plugin Buba Blocks scored84%from 54 tests.

About plugin

  • Plugin page: buba-blocks
  • Plugin version: 1.10
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.3
  • WordPress version: 6.3.1
  • First release: Jan 15, 2021
  • Latest release: Sep 4, 2023
  • Number of updates: 44
  • Update frequency: every 22.1 days
  • Top authors: ecuras (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

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

Server metrics [RAM: ▲0.33MB] [CPU: ▼7.85ms] Passed 4 tests

Analyzing server-side resources used by Buba Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3937.70 ▼2.16
Dashboard /wp-admin3.61 ▲0.2647.69 ▼10.65
Posts /wp-admin/edit.php3.72 ▲0.3748.00 ▼1.40
Add New Post /wp-admin/post-new.php6.55 ▲0.6689.00 ▼17.17
Media Library /wp-admin/upload.php3.53 ▲0.3040.79 ▲5.52

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 533 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Buba Blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,020 ▲25913.52 ▼1.0712.53 ▲11.0135.88 ▼5.09
Dashboard /wp-admin2,232 ▲555.64 ▲0.0586.35 ▲1.4236.35 ▼6.27
Posts /wp-admin/edit.php2,143 ▲432.04 ▲0.0834.70 ▼1.7033.03 ▲0.29
Add New Post /wp-admin/post-new.php7,031 ▲5,50327.26 ▲4.031,084.98 ▲401.9438.65 ▼36.03
Media Library /wp-admin/upload.php1,440 ▲404.26 ▲0.0798.02 ▼1.1641.35 ▼4.61

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buba-blocks/patterns/index.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: blocks, buba blocks, gutenberg, gutenberg blocks, editor

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

The primary PHP file in "Buba Blocks" version 1.10 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file 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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected62,589 lines of code in 392 files:
LanguageFilesBlank linesComment linesLines of code
JSON710036,790
JavaScript1531,9293,77518,054
Sass53298173,717
PHP442683601,290
CSS55195441,221
PO File2367487788
SVG1410729

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.31
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%
Functions33
▷ Named functions3296.97%
▷ Anonymous functions13.03%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin