68% blockify

Code Review | Blockify - Lightweight Full Site Editing Block Toolkit

WordPress plugin Blockify - Lightweight Full Site Editing Block Toolkit scored68%from 54 tests.

About plugin

  • Plugin page: blockify
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Jun 20, 2022
  • Latest release: Nov 8, 2023
  • Number of updates: 34
  • Update frequency: every 17.5 days
  • Top authors: blockify (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /3,764 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.04MB] [CPU: ▼35.86ms] Passed 4 tests

An overview of server-side resources used by Blockify - Lightweight Full Site Editing Block Toolkit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4623.02 ▼21.14
Dashboard /wp-admin3.97 ▲0.6724.00 ▼26.51
Posts /wp-admin/edit.php3.97 ▲0.6228.79 ▼19.54
Add New Post /wp-admin/post-new.php3.97 ▼1.9124.53 ▼76.25
Media Library /wp-admin/upload.php3.97 ▲0.7423.82 ▼8.29

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 646 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
recovery_mode_email_last_sent
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Blockify - Lightweight Full Site Editing Block Toolkit: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6614.34 ▼0.371.65 ▼0.2247.07 ▲3.93
Dashboard /wp-admin2,192 ▲125.68 ▲0.0492.53 ▼3.9239.56 ▼3.56
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0338.85 ▲2.6835.80 ▼1.03
Add New Post /wp-admin/post-new.php45 ▼1,4810.41 ▼22.650.08 ▼687.899.25 ▼52.79
Media Library /wp-admin/upload.php1,394 ▼34.27 ▲0.09115.86 ▲0.9582.00 ▲35.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-includes/class-wp-list-util.php+170
    Undefined index: slug
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 67× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/blockify/vendor/blockify/theme/patterns/contact/form-boxed.php
    • > /wp-content/plugins/blockify/vendor/blockify/theme/patterns/utility/search-toggle.php
    • > /wp-content/plugins/blockify/vendor/blockify/theme/patterns/blog/grid-boxed.php
    • > /wp-content/plugins/blockify/vendor/blockify/theme/patterns/testimonial/three-column.php
    • > /wp-content/plugins/blockify/vendor/blockify/theme/patterns/page/landing.php
    • > /wp-content/plugins/blockify/vendor/blockify/theme/patterns/blog/three-column.php
    • > /wp-content/plugins/blockify/vendor/blockify/theme/patterns/footer/default.php
    • > /wp-content/plugins/blockify/vendor/blockify/theme/patterns/header/default.php
    • > /wp-content/plugins/blockify/vendor/blockify/theme/patterns/hero/image-below.php
    • > /wp-content/plugins/blockify/vendor/blockify/theme/patterns/contact/map.php
  • 54× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blockify/vendor/blockify/theme/includes/blocks/tag-cloud.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blockify/vendor/blockify/theme/includes/common/scripts.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blockify/vendor/blockify/theme/includes/extensions/counter.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/blockify/vendor/blockify/theme/includes/blocks/table-of-contents.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blockify/vendor/blockify/theme/includes/extensions/dark-mode.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blockify/vendor/blockify/theme/includes/extensions/inline-color.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blockify/vendor/blockify/theme/includes/api/block-extensions.php:399
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blockify/vendor/blockify/theme/includes/blocks/image.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blockify/vendor/blockify/theme/includes/blocks/list.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blockify/vendor/blockify/theme/includes/blocks/paragraph.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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: Add a description for screenshot #9 in blockify/assets to your readme.txt
The official readme.txt is a good inspiration

blockify/blockify.php Passed 13 tests

The main PHP script in "Blockify - Lightweight Full Site Editing Block Toolkit" version 1.3.1 is automatically included on every request by WordPress
41 characters long description:
Blockify full site editing theme toolkit.

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
There were no executable files found in this plugin12,101 lines of code in 623 files:
LanguageFilesBlank linesComment linesLines of code
PHP1471,7822,34410,198
JSON3001,370
SVG33100352
CSS120016119
HTML186912158
JavaScript4004

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.40
Average class complexity23.75
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods41
▷ Static methods1946.34%
▷ Public methods3892.68%
▷ Protected methods00.00%
▷ Private methods37.32%
Functions141
▷ Named functions13797.16%
▷ Anonymous functions42.84%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.04MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vendor/blockify/theme/screenshot.png36.99KB40.73KB0.00%