78% gutena-kit

Code Review | Gutena Kit - Gutenberg Blocks and Templates

WordPress plugin Gutena Kit - Gutenberg Blocks and Templates scored78%from 54 tests.

About plugin

  • Plugin page: gutena-kit
  • Plugin version: 2.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.2
  • WordPress version: 6.3.1
  • First release: May 9, 2022
  • Latest release: Mar 30, 2023
  • Number of updates: 23
  • Update frequency: every 14.2 days
  • Top authors: expresstech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /6,417 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲2.32MB] [CPU: ▲16.32ms] Passed 4 tests

This is a short check of server-side resources used by Gutena Kit - Gutenberg Blocks and Templates
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.77 ▲1.3052.18 ▲13.13
Dashboard /wp-admin6.00 ▲2.6579.52 ▲10.90
Posts /wp-admin/edit.php6.02 ▲2.6676.04 ▲31.99
Add New Post /wp-admin/post-new.php8.56 ▲2.67118.82 ▲15.49
Media Library /wp-admin/upload.php5.92 ▲2.6964.44 ▲25.75
Gutena /wp-admin/themes.php?page=gutenakit_admin_dashboard5.9658.61
Demo Setup /wp-admin/options.php?page=merlin5.8255.80

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

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

Browser metrics Passed 4 tests

Gutena Kit - Gutenberg Blocks and Templates: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,525 ▲1,76413.48 ▼0.871.50 ▼0.1743.00 ▲3.66
Dashboard /wp-admin3,905 ▲1,7255.57 ▼0.02102.12 ▲3.6243.65 ▲2.66
Posts /wp-admin/edit.php3,814 ▲1,7141.94 ▼0.0135.32 ▼1.2533.38 ▼6.26
Add New Post /wp-admin/post-new.php7,923 ▲6,39520.55 ▼2.71885.11 ▲214.1154.13 ▼4.37
Media Library /wp-admin/upload.php3,117 ▲1,7174.10 ▼0.0999.37 ▼16.5746.23 ▼4.35
Gutena /wp-admin/themes.php?page=gutenakit_admin_dashboard2,5866.27154.7344.38
Demo Setup /wp-admin/options.php?page=merlin1,9221.8216.9813.04

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/gutena-kit/admin/partials/admin-dashboard.php
    • > /wp-content/plugins/gutena-kit/includes/demo-import/merlin/assets/images/spinner.php
    • > /wp-content/plugins/gutena-kit/public/partials/plugin-gutena-kit-display.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'ProteusThemes\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/gutena-kit/includes/demo-import/merlin/includes/class-merlin-logger.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/gutena-kit/includes/demo-import/tgmpa/class-tgm-plugin-activation.php:2029
    • > PHP Fatal error
      Uncaught Error: Class 'ProteusThemes\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/gutena-kit/includes/demo-import/merlin/vendor/wp-content-importer-v2/Importer.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ProteusThemes\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/gutena-kit/includes/demo-import/merlin/vendor/wp-content-importer-v2/WPImporterLoggerCLI.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/gutena-kit/includes/demo-import/merlin/includes/class-merlin-customizer-option.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/gutena-kit/includes/demo-import/merlin/vendor/wp-content-importer-v2/WXRImporter.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: page builder, full site editing, wordpress blocks, gutenberg, blocks

gutena-kit/gutena-kit.php 92% from 13 tests

"Gutena Kit - Gutenberg Blocks and Templates" version 2.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 185 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin12,484 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
PHP332,0834,0637,787
CSS8352352,866
SVG7202906
JSON800485
JavaScript410514440

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity47.29
▷ Minimum class complexity1.00
▷ Maximum class complexity289.00
Average method complexity4.99
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes13.57%
Methods319
▷ Static methods237.21%
▷ Public methods20664.58%
▷ Protected methods7724.14%
▷ Private methods3611.29%
Functions28
▷ Named functions2485.71%
▷ Anonymous functions414.29%
Constants10
▷ Global constants550.00%
▷ Class constants550.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/logo.png0.46KB0.33KB▼ 29.45%
admin/img/video-gutena-kit.png19.81KB9.30KB▼ 53.08%
admin/img/video.png21.17KB10.00KB▼ 52.75%