90% reusable-blocks-extended

Code Review | Reusable Blocks Extended

WordPress plugin Reusable Blocks Extended scored90%from 54 tests.

About plugin

  • Plugin page: reusable-blocks-e...
  • Plugin version: 0.9.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 17, 2019
  • Latest release: Mar 8, 2023
  • Number of updates: 41
  • Update frequency: every 30.9 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

10,000+ active /71,170 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.10MB] [CPU: ▼3.65ms] Passed 4 tests

Server-side resources used by Reusable Blocks Extended
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1138.69 ▼1.15
Dashboard /wp-admin3.40 ▲0.1047.82 ▼0.46
Posts /wp-admin/edit.php3.46 ▲0.1048.83 ▲3.91
Add New Post /wp-admin/post-new.php6.00 ▲0.1182.80 ▼12.13
Media Library /wp-admin/upload.php3.33 ▲0.1037.28 ▼0.87
All Patterns /wp-admin/edit.php?post_type=wp_block3.3836.91
Add New /wp-admin/post-new.php?post_type=wp_block5.9981.02

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_reblex-widget

Browser metrics Passed 4 tests

Checking browser requirements for Reusable Blocks Extended
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.51 ▼0.921.75 ▼0.0542.48 ▼2.55
Dashboard /wp-admin2,236 ▲625.16 ▲0.26101.10 ▼16.0641.99 ▼11.58
Posts /wp-admin/edit.php2,124 ▲532.34 ▲0.3338.53 ▼1.3533.91 ▼4.92
Add New Post /wp-admin/post-new.php1,553 ▲2023.28 ▲0.20685.13 ▲11.6254.42 ▼2.00
Media Library /wp-admin/upload.php1,417 ▲324.44 ▲0.26103.51 ▼1.3641.85 ▼4.39
All Patterns /wp-admin/edit.php?post_type=wp_block1,1546.80151.1227.37
Add New /wp-admin/post-new.php?post_type=wp_block6,27622.72789.0439.43

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
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_reblex-widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

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
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

reusable-blocks-extended/reusable-blocks-extended.php Passed 13 tests

The main file in "Reusable Blocks Extended" v. 0.9.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
108 characters long description:
Extend Gutenberg Reusable Blocks feature with a complete admin panel, widgets, shortcodes and PHP functions.

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
Good job! No executable or dangerous file extensions detected486 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP244114387
JavaScript16250
CSS10049

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity3.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
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
No PNG images were found in this plugin