90% guten-editor-blocks

Code Review | Guten Editor Blocks

WordPress plugin Guten Editor Blocks scored90%from 54 tests.

About plugin

  • Plugin page: guten-editor-blocks
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 22, 2018
  • Latest release: Oct 10, 2018
  • Number of updates: 6
  • Update frequency: every 3.0 days
  • Top authors: themevedanta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,713 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Guten Editor Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.87 ▼1.85
Dashboard /wp-admin3.32 ▲0.0249.27 ▼3.37
Posts /wp-admin/edit.php3.37 ▲0.0148.52 ▼1.28
Add New Post /wp-admin/post-new.php4.84 ▼1.0553.21 ▼49.52
Media Library /wp-admin/upload.php3.25 ▲0.0138.55 ▲1.26

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Guten Editor Blocks: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.44 ▼0.181.82 ▼0.3644.54 ▲1.51
Dashboard /wp-admin2,195 ▲155.62 ▼0.0291.20 ▼9.4539.31 ▼3.85
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0140.06 ▲1.3134.73 ▼2.99
Add New Post /wp-admin/post-new.php1,539 ▲1323.53 ▲5.92682.31 ▼10.4254.14 ▼7.15
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.01105.82 ▲4.3446.86 ▲4.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: guten-editor-blocks, gutenberg, gutenberg blocks, blocks, editor...

guten-editor-blocks/guten-editor-blocks.php Passed 13 tests

The primary PHP file in "Guten Editor Blocks" version 1.0.1 is used by WordPress to initiate all plugin functionality
52 characters long description:
All text editor related gutenberg block collections.

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
No dangerous file extensions were detected10,167 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS171,958616,164
SVG4003,941
PHP2145661
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.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
No PNG files were detected