84% guteblock

Code Review | Guteblock - Ultimate Gutenberg Blocks Plugin

WordPress plugin Guteblock - Ultimate Gutenberg Blocks Plugin scored84%from 54 tests.

About plugin

  • Plugin page: guteblock
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Dec 13, 2019
  • Latest release: May 22, 2020
  • Number of updates: 48
  • Update frequency: every 3.4 days
  • Top authors: sweans (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /5,211 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.10MB] [CPU: ▼9.93ms] Passed 4 tests

An overview of server-side resources used by Guteblock - Ultimate Gutenberg Blocks Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.1942.44 ▼6.13
Dashboard /wp-admin3.51 ▲0.1753.18 ▲0.15
Posts /wp-admin/edit.php3.62 ▲0.2350.10 ▲0.07
Add New Post /wp-admin/post-new.php5.02 ▼0.9060.20 ▼32.62
Media Library /wp-admin/upload.php3.43 ▲0.1638.39 ▼1.05
Settings /wp-admin/admin.php?page=guteblock-plugin-settings3.4035.73
About Guteblock /wp-admin/admin.php?page=guteblock3.4037.18

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 181 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Guteblock - Ultimate Gutenberg Blocks Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲18313.53 ▼1.0311.41 ▲9.7636.32 ▼7.86
Dashboard /wp-admin2,252 ▲755.59 ▼0.0885.60 ▼22.9639.69 ▼8.22
Posts /wp-admin/edit.php2,154 ▲541.98 ▼0.0534.80 ▲0.7632.11 ▼3.80
Add New Post /wp-admin/post-new.php6,396 ▲4,86822.71 ▼0.33886.65 ▲204.5636.16 ▼25.59
Media Library /wp-admin/upload.php1,454 ▲514.21 ▲0.0996.64 ▼7.1043.59 ▼4.95
Settings /wp-admin/admin.php?page=guteblock-plugin-settings9922.1525.1653.99
About Guteblock /wp-admin/admin.php?page=guteblock1,2222.0525.6047.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guteblock/inc/settings/settings.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guteblock/inc/newsletter/newsletter.php:4

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)
Everything seems fine on the user side

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
7 plugin tags: gutenberg blocks, guteblock, block, blocks, gutenberg...

guteblock/plugin.php 92% from 13 tests

"Guteblock - Ultimate Gutenberg Blocks Plugin" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("guteblock.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin32,373 lines of code in 100 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5957820927,674
Sass32180642,749
CSS3208121,062
PHP413234865
SVG19021
Markdown1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
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
9 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/blocks/blockquote/assets/images/Blockquote-quote.png1.93KB1.87KB▼ 3.28%
inc/settings/images/blocks-sprite.png65.82KB69.14KB0.00%
src/blocks/team-member/assets/images/icon-twitter.png1.21KB0.24KB▼ 80.44%
src/blocks/team-member/assets/images/icon-pinterest.png1.25KB0.24KB▼ 80.80%
src/blocks/team-member/assets/images/icon-facebook.png1.16KB0.19KB▼ 83.36%