90% design

Code Review | Gutenberg Blocks Templates - 50+ Free Gutenberg Block Designs

WordPress plugin Gutenberg Blocks Templates - 50+ Free Gutenberg Block Designs scored90%from 54 tests.

About plugin

  • Plugin page: design
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2018
  • Latest release: Jun 7, 2019
  • Number of updates: 57
  • Update frequency: every 3.1 days
  • Top authors: wpdesignhub (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /21,373 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: ▲0.01MB] [CPU: ▼8.57ms] Passed 4 tests

A check of server-side resources used by Gutenberg Blocks Templates - 50+ Free Gutenberg Block Designs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.43 ▼0.63
Dashboard /wp-admin3.32 ▼0.0243.32 ▼21.83
Posts /wp-admin/edit.php3.37 ▲0.0245.51 ▼0.53
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.76 ▼11.28
Media Library /wp-admin/upload.php3.25 ▲0.0235.10 ▼0.29

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Gutenberg Blocks Templates - 50+ Free Gutenberg Block Designs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.48 ▼0.081.76 ▲0.2543.98 ▲1.26
Dashboard /wp-admin2,189 ▲95.54 ▼0.1490.45 ▲4.1442.11 ▲2.56
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0236.08 ▼0.6536.53 ▲1.97
Add New Post /wp-admin/post-new.php1,551 ▲2524.68 ▲0.96671.93 ▲52.8453.67 ▼9.77
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.04100.91 ▲1.8344.82 ▲2.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gutenberg blocks, blocks, block, block-editor, gutenberg

design/plugin.php 92% from 13 tests

The main PHP file in "Gutenberg Blocks Templates - 50+ Free Gutenberg Block Designs" ver. 0.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("design.php" instead of "plugin.php")

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
There were no executable files found in this plugin476 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5156267473
CSS2002
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity21.50
▷ Minimum class complexity4.00
▷ Maximum class complexity51.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods2268.75%
▷ Protected methods00.00%
▷ Private methods1031.25%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.04MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/styling-tab.png33.32KB38.03KB0.00%
assets/bunnya.png7.08KB7.96KB0.00%