90% easy-blocks

Code Review | Easy Blocks - Gutenberg Blocks Collection

WordPress plugin Easy Blocks - Gutenberg Blocks Collection scored90%from 54 tests.

About plugin

  • Plugin page: easy-blocks
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2019
  • Latest release: Mar 3, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wpeasyblocks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,180 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
Installer ran successfully

Server metrics [RAM: ▼0.57MB] [CPU: ▼23.28ms] Passed 4 tests

Analyzing server-side resources used by Easy Blocks - Gutenberg Blocks Collection
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.1240.52 ▼7.07
Dashboard /wp-admin3.74 ▲0.1751.90 ▼2.46
Posts /wp-admin/edit.php3.79 ▲0.1153.63 ▼2.80
Add New Post /wp-admin/post-new.php3.55 ▼2.6039.47 ▼80.80
Media Library /wp-admin/upload.php3.60 ▲0.1144.53 ▲10.54

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

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

Browser metrics Passed 4 tests

Easy Blocks - Gutenberg Blocks Collection: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12214.43 ▲0.072.15 ▲0.0439.39 ▼3.05
Dashboard /wp-admin2,265 ▲855.66 ▼0.0491.32 ▼28.8945.17 ▼9.12
Posts /wp-admin/edit.php2,127 ▲242.02 ▼0.0339.47 ▼0.7437.71 ▲2.35
Add New Post /wp-admin/post-new.php6,211 ▲4,66627.20 ▲3.961,070.40 ▲388.0040.87 ▼30.19
Media Library /wp-admin/upload.php1,427 ▲304.17 ▼0.13114.29 ▲12.4547.38 ▲1.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

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 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (All Available Easy Blocks.), #2 (Easy Blocks Alert Block with Settings.), #3 (Easy Blocks Button Block with Settings.), #4 (Easy Blocks Posts Block with Settings.)
You can look at the official readme.txt

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

The main file in "Easy Blocks - Gutenberg Blocks Collection" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Collection of Gutenberg Blocks for WordPress Block Editor

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
Success! There were no dangerous files found in this plugin827 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8130359634
CSS23010161
JavaScript101223
SVG1009

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity2.75
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods850.00%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions9
▷ Named functions666.67%
▷ Anonymous functions333.33%
Constants16
▷ Global constants16100.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
1 compressed PNG file occupies 0.06MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/about/assets/images/pattern-bg-min.png63.51KB64.23KB0.00%