90% dragblock

Code Review | DragBlock - Advanced WordPress Gutenberg Full Site Editor

WordPress plugin DragBlock - Advanced WordPress Gutenberg Full Site Editor scored90%from 54 tests.

About plugin

  • Plugin page: dragblock
  • Plugin version: 23.11.19
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2023
  • Latest release: Nov 19, 2023
  • Number of updates: 17
  • Update frequency: every 2.6 days
  • Top authors: dragblock (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /370 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.45MB] [CPU: ▲5.27ms] Passed 4 tests

An overview of server-side resources used by DragBlock - Advanced WordPress Gutenberg Full Site Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.03 ▲0.5627.51 ▼17.96
Dashboard /wp-admin3.96 ▲0.6648.91 ▲1.37
Posts /wp-admin/edit.php4.01 ▲0.6554.67 ▲8.85
Add New Post /wp-admin/post-new.php5.87 ▼0.02637.09 ▲553.41
Media Library /wp-admin/upload.php3.82 ▲0.5959.45 ▲28.81
DragBlock /wp-admin/admin.php?page=dragblockAdminMenu3.7934.70
Form Entries /wp-admin/edit.php?post_type=dragblockformmsg3.9339.13

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

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

Browser metrics Passed 4 tests

A check of browser resources used by DragBlock - Advanced WordPress Gutenberg Full Site Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲4114.68 ▲0.372.49 ▲0.4843.68 ▼7.78
Dashboard /wp-admin2,220 ▲465.56 ▼0.0493.73 ▼8.2679.78 ▲34.67
Posts /wp-admin/edit.php2,122 ▲221.98 ▲0.0039.36 ▼1.7038.46 ▲0.40
Add New Post /wp-admin/post-new.php1,761 ▲23524.18 ▲0.601,040.71 ▲426.6443.62 ▼3.90
Media Library /wp-admin/upload.php1,419 ▲254.21 ▲0.02105.42 ▲9.3372.11 ▲31.24
DragBlock /wp-admin/admin.php?page=dragblockAdminMenu7832.0027.5225.40
Form Entries /wp-admin/edit.php?post_type=dragblockformmsg1,1091.9433.6630.62

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: block, gutenberg blocks, site builder, editor, visual editor...

dragblock/dragblock.php 92% from 13 tests

The main file in "DragBlock - Advanced WordPress Gutenberg Full Site Editor" v. 23.11.19 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,202 lines of code in 186 files:
LanguageFilesBlank linesComment linesLines of code
PHP82591,1093,601
JSON1800478
JavaScript670370
Markdown114031
CSS181622

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity13.17
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods28
▷ Static methods1242.86%
▷ Public methods2796.43%
▷ Protected methods13.57%
▷ Private methods00.00%
Functions89
▷ Named functions8797.75%
▷ Anonymous functions22.25%
Constants24
▷ Global constants2395.83%
▷ Class constants14.17%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/brands/favicon-32x32.png1.07KB0.76KB▼ 29.48%
assets/images/brands/favicon-192x192.png4.29KB2.40KB▼ 44.00%
assets/images/brands/favicon-16x16.png0.62KB0.51KB▼ 17.51%
assets/images/demo/blank.png13.54KB5.71KB▼ 57.82%
assets/images/brands/favicon-20x20.png0.73KB0.56KB▼ 22.61%