80% easy-blocks-pro

Code Review | Easy Blocks pro

WordPress plugin Easy Blocks pro scored80%from 54 tests.

About plugin

  • Plugin page: easy-blocks-pro
  • Plugin version: 1.0.18
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 22, 2019
  • Latest release: Nov 11, 2023
  • Number of updates: 50
  • Update frequency: every 34.1 days
  • Top authors: mughees.hafeez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,300 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.94MB] [CPU: ▼56.17ms] Passed 4 tests

Server-side resources used by Easy Blocks pro
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.416.14 ▼36.52
Dashboard /wp-admin2.08 ▼1.277.69 ▼51.75
Posts /wp-admin/edit.php2.08 ▼1.286.63 ▼42.08
Add New Post /wp-admin/post-new.php2.08 ▼3.816.06 ▼94.34
Media Library /wp-admin/upload.php2.08 ▼1.157.04 ▼21.38

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Blocks pro
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,060 ▲29816.16 ▲1.5915.69 ▲13.9579.62 ▲36.65
Dashboard /wp-admin2,241 ▲646.12 ▲0.5298.86 ▲6.3437.54 ▼5.64
Posts /wp-admin/edit.php2,145 ▲423.05 ▲1.1040.78 ▲0.6530.91 ▼2.58
Add New Post /wp-admin/post-new.php6,369 ▲4,84328.51 ▲5.02830.72 ▲189.6765.41 ▲16.37
Media Library /wp-admin/upload.php1,445 ▲515.59 ▲1.37110.39 ▲14.5644.29 ▲3.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ebp-deactivate-block-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP 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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in easy-blocks-pro/assets to your readme.txt
You can look at the official readme.txt

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

"Easy Blocks pro" version 1.0.18's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
93 characters long description:
The Easy Blocks PRO pluign enhance the Gutenberg functionality by adding feature-rich blocks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,326 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
SVG111174,920
PHP37664321
JavaScript513958
CSS51627

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/300x225&text=No+Featured+image.png0.62KB0.59KB▼ 4.60%
assets/img/icon-128x128.png17.07KB8.05KB▼ 52.81%