84% blog-blocks

Code Review | Blog Blocks - Gutenberg Blocks for Content Writers

WordPress plugin Blog Blocks - Gutenberg Blocks for Content Writers scored84%from 54 tests.

About plugin

  • Plugin page: blog-blocks
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 16, 2019
  • Latest release: Sep 16, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ivanchernyakov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /913 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.21MB] [CPU: ▼11.54ms] Passed 4 tests

A check of server-side resources used by Blog Blocks - Gutenberg Blocks for Content Writers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.85 ▼2.29
Dashboard /wp-admin3.36 ▲0.0547.68 ▼0.64
Posts /wp-admin/edit.php3.47 ▲0.1147.51 ▼1.41
Add New Post /wp-admin/post-new.php4.87 ▼1.0255.36 ▼41.30
Media Library /wp-admin/upload.php3.28 ▲0.0533.60 ▼1.14

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Blog Blocks - Gutenberg Blocks for Content Writers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.50 ▼1.077.46 ▲5.4441.22 ▼6.19
Dashboard /wp-admin2,196 ▲225.56 ▼0.1387.29 ▼0.6541.10 ▲6.22
Posts /wp-admin/edit.php2,101 ▼22.00 ▲0.0439.13 ▼3.9534.26 ▼4.81
Add New Post /wp-admin/post-new.php6,366 ▲4,83327.71 ▲4.46859.73 ▲186.7135.22 ▼18.27
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0697.54 ▼6.5442.69 ▼3.68

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/blog-blocks/public/partials/blog-blocks-public-display.php
    • > /wp-content/plugins/blog-blocks/admin/partials/blog-blocks-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: blocks, editor, gutenberg blocks, block, gutenberg...

blog-blocks/blog-blocks.php Passed 13 tests

This is the main PHP file of "Blog Blocks - Gutenberg Blocks for Content Writers" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
106 characters long description:
Blocks for content writers to make your articles more attractive to readers with elements such as infobox.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected316 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12124547194
JavaScript396380
CSS231342

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.16
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin