73% kenta-blocks

Code Review | Kenta Gutenberg Blocks – Responsive Blocks and block templates library for Gutenberg Editor

WordPress plugin Kenta Gutenberg Blocks – Responsive Blocks and block templates library for Gutenberg Editor scored73%from 54 tests.

About plugin

  • Plugin page: kenta-blocks
  • Plugin version: 1.3.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Sep 4, 2022
  • Latest release: Oct 22, 2023
  • Number of updates: 38
  • Update frequency: every 11.2 days
  • Top authors: ibllex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /23,328 total downloads

Benchmarks

Plugin footprint 64% from 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: ▲8.15MB] [CPU: ▲41.99ms] 50% from 4 tests

Server-side resources used by Kenta Gutenberg Blocks – Responsive Blocks and block templates library for Gutenberg Editor
The following require your attention
  • RAM: Try to keep total memory usage under 10MB (currently 11.93MB on /wp-admin/admin.php?page=kenta-blocks)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 8.15MB on /wp-admin/admin.php?page=kenta-blocks)
PageMemory (MB)CPU Time (ms)
Home /11.95 ▲8.4885.25 ▲48.16
Dashboard /wp-admin11.93 ▲8.5994.72 ▲42.09
Posts /wp-admin/edit.php11.93 ▲8.5879.85 ▲32.02
Add New Post /wp-admin/post-new.php12.84 ▲6.95145.93 ▲45.67
Media Library /wp-admin/upload.php11.93 ▲8.7092.25 ▲61.52
Support Forum /wp-admin/admin.php?page=kenta-blocks-wp-support-forum11.9363.22
Opt In /wp-admin/admin.php?page=kenta-blocks-optin11.9379.94
Upgrade  ➤ /wp-admin/admin.php?page=kenta-blocks-pricing11.9365.59
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius11.9369.32
Contact Us /wp-admin/admin.php?page=kenta-blocks-contact11.9366.21
Kenta Blocks /wp-admin/admin.php?page=kenta-blocks11.9367.60

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 336 new files
Database: no new tables, 11 new options
New WordPress options
fs_active_plugins
kb_plugin_version
widget_theysaidso_widget
kenta_blocks_dynamic_assets_posts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
fs_debug_mode
db_upgraded
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for Kenta Gutenberg Blocks – Responsive Blocks and block templates library for Gutenberg Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲11214.37 ▼0.151.81 ▲0.0132.29 ▼8.59
Dashboard /wp-admin2,285 ▲1105.60 ▼0.1086.77 ▼10.8780.89 ▲41.17
Posts /wp-admin/edit.php2,191 ▲882.03 ▲0.0138.86 ▲0.6137.52 ▲1.20
Add New Post /wp-admin/post-new.php1,773 ▲24725.06 ▲1.86862.82 ▲204.21199.02 ▲147.48
Media Library /wp-admin/upload.php1,478 ▲844.24 ▲0.05104.70 ▲7.4479.90 ▲37.66
Support Forum /wp-admin/admin.php?page=kenta-blocks-wp-support-forum1,5163.9880.2887.87
Opt In /wp-admin/admin.php?page=kenta-blocks-optin1,0441.7025.6458.27
Upgrade  ➤ /wp-admin/admin.php?page=kenta-blocks-pricing1,8263.2658.5199.13
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,1281.7024.3527.34
Contact Us /wp-admin/admin.php?page=kenta-blocks-contact1,5973.1651.9148.84
Kenta Blocks /wp-admin/admin.php?page=kenta-blocks1,30410.57257.4939.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/kenta-blocks/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 11 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • fs_debug_mode
    • fs_accounts
    • widget_recent-comments
    • widget_recent-posts
    • kb_plugin_version
    • fs_active_plugins
    • can_compress_scripts
    • widget_theysaidso_widget
    • ...

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'KentaBlocks\\Css' not found in wp-content/plugins/kenta-blocks/inc/blocks/query-pagination.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kenta_blocks_advanced_attrs() in wp-content/plugins/kenta-blocks/inc/blocks/slides.php:77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kenta_blocks_container_global_style() in wp-content/plugins/kenta-blocks/inc/blocks/section.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/kenta-blocks/inc/blocks/post-excerpt.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kenta_blocks_position_attrs() in wp-content/plugins/kenta-blocks/inc/blocks/button.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kenta_blocks_container_global_style() in wp-content/plugins/kenta-blocks/inc/blocks/column.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kenta_blocks_paragraph_attrs() in wp-content/plugins/kenta-blocks/inc/blocks/heading.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kenta_blocks_position_attrs() in wp-content/plugins/kenta-blocks/inc/blocks/button.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kenta_blocks_container_global_style() in wp-content/plugins/kenta-blocks/inc/blocks/cover.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kenta_blocks_advanced_attrs() in wp-content/plugins/kenta-blocks/inc/blocks/post-metas.php:45

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: editor, block editor, gutenberg blocks, page builder, blocks...

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

The main file in "Kenta Gutenberg Blocks – Responsive Blocks and block templates library for Gutenberg Editor" v. 1.3.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 268 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin172,507 lines of code in 258 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1622,75714,840126,908
PHP2069,02419,46340,296
CSS222332435,048
Markdown2180109
JSON500105
SVG60025
XML13016

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity70.78
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces8
Interfaces0
Traits2
Classes67
▷ Abstract classes22.99%
▷ Concrete classes6597.01%
▷ Final classes34.62%
Methods1,444
▷ Static methods27018.70%
▷ Public methods1,03271.47%
▷ Protected methods281.94%
▷ Private methods38426.59%
Functions221
▷ Named functions16072.40%
▷ Anonymous functions6127.60%
Constants159
▷ Global constants11069.18%
▷ Class constants4930.82%
▷ Public constants49100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/images/magazine-grid/style-13.png0.65KB0.12KB▼ 82.01%
assets/images/magazine-grid/style-8.png0.67KB0.12KB▼ 82.15%
assets/images/magazine-grid/style-16.png0.64KB0.12KB▼ 81.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%