89% wp-essential-blocks

Code Review | WordPress Essential Blocks

WordPress plugin WordPress Essential Blocks scored89%from 54 tests.

About plugin

  • Plugin page: wp-essential-blocks
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 7, 2019
  • Latest release: Feb 28, 2019
  • Number of updates: 11
  • Update frequency: every 1.9 days
  • Top authors: pluginrox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by WordPress Essential Blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.37 ▲2.05
Dashboard /wp-admin3.36 ▲0.0544.53 ▼0.34
Posts /wp-admin/edit.php3.47 ▲0.1145.77 ▼1.55
Add New Post /wp-admin/post-new.php4.87 ▼1.0247.72 ▼42.99
Media Library /wp-admin/upload.php3.28 ▲0.0535.71 ▲1.32

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
RoxBlocks_version
RoxBlocks_installed

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Essential Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.31 ▼0.221.65 ▲0.0144.49 ▼2.43
Dashboard /wp-admin2,192 ▲185.56 ▼0.0299.65 ▲12.4347.42 ▲8.70
Posts /wp-admin/edit.php2,103 ▲62.01 ▼0.1537.89 ▲1.8235.42 ▲3.46
Add New Post /wp-admin/post-new.php6,199 ▲4,67319.03 ▼4.19958.76 ▲284.0057.44 ▲1.67
Media Library /wp-admin/upload.php1,397 ▼34.17 ▼0.0193.06 ▼4.1843.75 ▼1.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • RoxBlocks_version
    • RoxBlocks_installed
    • theysaidso_admin_options
    • widget_recent-posts

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
Everything seems fine, however 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
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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #2, #3 in wp-essential-blocks/assets to your readme.txt
  • Screenshots: Screenshot #5 (Icon Chooser (IcoFont) For Blocks) image not found
The official readme.txt might help

wp-essential-blocks/wp-essential-blocks.php Passed 13 tests

The main PHP script in "WordPress Essential Blocks" version 1.0.2 is automatically included on every request by WordPress
54 characters long description:
Powerful and Feature Rich Blocks for Gutenberg Editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected8,828 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS42,13086,482
SVG1002,105
PHP327175200
Markdown218038
JSON2002
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.67
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods630.00%
▷ Public methods1995.00%
▷ Protected methods00.00%
▷ Private methods15.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin