84% gutenbee

Code Review | GutenBee - Gutenberg Blocks

WordPress plugin GutenBee - Gutenberg Blocks scored84%from 54 tests.

About plugin

  • Plugin page: gutenbee
  • Plugin version: 2.17.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 29, 2018
  • Latest release: Nov 8, 2023
  • Number of updates: 135
  • Update frequency: every 15.7 days
  • Top authors: anastis (66.67%)cssigniterteam (34.07%)

Code review

54 tests

User reviews

15 reviews

Install metrics

7,000+ active /119,998 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼3.67ms] Passed 4 tests

Server-side resources used by GutenBee - Gutenberg Blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2338.24 ▼0.92
Dashboard /wp-admin3.56 ▲0.2152.03 ▼12.13
Posts /wp-admin/edit.php3.68 ▲0.3148.69 ▼0.88
Add New Post /wp-admin/post-new.php7.45 ▲1.5694.74 ▼0.73
Media Library /wp-admin/upload.php3.49 ▲0.2537.41 ▲3.29
GutenBee Settings /wp-admin/options-general.php?page=gutenbee3.4534.06

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by GutenBee - Gutenberg Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7214.80 ▲0.452.31 ▲0.4739.05 ▼4.83
Dashboard /wp-admin2,223 ▲465.83 ▲0.1086.88 ▼14.0240.14 ▼1.89
Posts /wp-admin/edit.php2,127 ▲272.25 ▲0.2241.72 ▲4.3035.40 ▼0.91
Add New Post /wp-admin/post-new.php6,214 ▲4,68828.14 ▲5.301,012.97 ▲342.2837.38 ▼23.38
Media Library /wp-admin/upload.php1,419 ▲164.40 ▲0.1797.46 ▼2.3241.66 ▼5.69
GutenBee Settings /wp-admin/options-general.php?page=gutenbee1,0162.3443.0427.75

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gutenbee/inc/blocks/post-types/templates/article-default.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gutenbee/inc/blocks/post-types/templates/article-default-tall.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gutenbee/inc/blocks/post-types/block.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gutenbee/inc/options.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gutenbee/inc/blocks/post-types/templates/article-media.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gutenbee/gutenbee.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: gutenberg, blocks

gutenbee/gutenbee.php 85% from 13 tests

The main PHP script in "GutenBee - Gutenberg Blocks" version 2.17.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

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
Everything looks great! No dangerous files found in this plugin1,447 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP72141761,283
XML100103
CSS47833
JavaScript56728

PHP code Passed 2 tests

An overview 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 complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected