77% gutentor

Code Review | Gutentor - Gutenberg Blocks - Page Builder for Gutenberg Editor

WordPress plugin Gutentor - Gutenberg Blocks - Page Builder for Gutenberg Editor scored77%from 54 tests.

About plugin

  • Plugin page: gutentor
  • Plugin version: 3.2.7
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Aug 23, 2019
  • Latest release: Sep 5, 2023
  • Number of updates: 108
  • Update frequency: every 13.7 days
  • Top authors: gutentor (100%)

Code review

54 tests

User reviews

85 reviews

Install metrics

50,000+ active /1,116,956 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲5.18MB] [CPU: ▲34.75ms] 75% from 4 tests

Server-side resources used by Gutentor - Gutenberg Blocks - Page Builder for Gutenberg Editor
Please fix the following
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.18MB on /wp-admin/admin.php?page=gutentor)
PageMemory (MB)CPU Time (ms)
Home /8.65 ▲5.1984.30 ▲39.35
Dashboard /wp-admin8.53 ▲5.22139.97 ▲82.79
Posts /wp-admin/edit.php8.54 ▲5.1880.47 ▲31.25
Add New Post /wp-admin/post-new.php12.16 ▲6.27126.75 ▲34.24
Media Library /wp-admin/upload.php8.35 ▲5.1271.69 ▲34.16
Settings /wp-admin/admin.php?page=gutentor-settings8.3768.85
License /wp-admin/admin.php?page=gutentor-pro-license8.3561.33
Blocks /wp-admin/admin.php?page=gutentor-blocks8.3971.24
Getting Started /wp-admin/admin.php?page=gutentor8.4171.80

Server storage [IO: ▲13.27MB] [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: 573 new files
Database: no new tables, 11 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
__gutentor_do_redirect
agent_d045983d122a96f235928702675643f8
db_upgraded
widget_gutentor_wp_block_widget
__gutentor_helper_options
widget_theysaidso_widget
gutentor_settings_options
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for Gutentor - Gutenberg Blocks - Page Builder for Gutenberg Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,029 ▲26813.88 ▼0.3914.17 ▲11.9644.49 ▲0.19
Dashboard /wp-admin2,283 ▲1035.66 ▼0.0092.21 ▼6.2944.06 ▼1.73
Posts /wp-admin/edit.php2,185 ▲852.00 ▲0.0240.27 ▲2.8535.00 ▼0.18
Add New Post /wp-admin/post-new.php1,602 ▲7426.26 ▲3.23804.79 ▲115.0238.98 ▼8.34
Media Library /wp-admin/upload.php1,487 ▲874.18 ▼0.0099.82 ▼20.0446.02 ▼1.00
Settings /wp-admin/admin.php?page=gutentor-settings1,15011.13265.9629.62
License /wp-admin/admin.php?page=gutentor-pro-license1,2573.2944.9425.02
Blocks /wp-admin/admin.php?page=gutentor-blocks2,99214.09131.2043.71
Getting Started /wp-admin/admin.php?page=gutentor1,64014.15122.69185.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 11 options
    • __gutentor_helper_options
    • theysaidso_admin_options
    • __gutentor_do_redirect
    • widget_recent-comments
    • gutentor_settings_options
    • widget_gutentor_wp_block_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • agent_d045983d122a96f235928702675643f8
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/gutentor/gutentor.php
    • > /wp-content/plugins/gutentor/includes/admin/templates/settings.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/gutentor/page-templates/template-gutentor-canvas.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gutentor/includes/admin/templates/admin-page.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Gutentor_Helper' not found in wp-content/plugins/gutentor/includes/admin/class-gutentor-admin.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gutentor/includes/admin/templates/getting-started-page.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gutentor/includes/sidebar-widget/class-gutentor-wp-block-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function gutentor_is_fse_template() in wp-content/plugins/gutentor/page-templates/template-gutentor-full-width.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gutentor/includes/admin/settings/class-admin-settings.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
You can look at the official readme.txt

gutentor/gutentor.php 92% from 13 tests

"Gutentor - Gutenberg Blocks - Page Builder for Gutenberg Editor" version 3.2.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected66,818 lines of code in 503 files:
LanguageFilesBlank linesComment linesLines of code
SVG22513314834,022
PHP1063,4848,80424,105
CSS1491,410326,198
JavaScript232712342,493

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 120)
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity54.58
▷ Minimum class complexity1.00
▷ Maximum class complexity838.00
Average method complexity8.48
▷ Minimum method complexity1.00
▷ Maximum method complexity120.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes98
▷ Abstract classes00.00%
▷ Concrete classes98100.00%
▷ Final classes00.00%
Methods705
▷ Static methods12117.16%
▷ Public methods67495.60%
▷ Protected methods70.99%
▷ Private methods243.40%
Functions109
▷ Named functions9082.57%
▷ Anonymous functions1917.43%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 compressed PNG files occupy 0.36MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/admin/widget-designing.png84.63KB89.93KB0.00%
assets/img/admin/template-library.png108.05KB113.90KB0.00%
assets/img/gutentor-white-logo.png0.50KB0.52KB0.00%
assets/img/admin/start-designing.png92.79KB97.30KB0.00%
assets/img/gutentor-settings.png16.40KB16.81KB0.00%