84% blocksify

Code Review | Blocksify - Gutenberg blocks by PressMaximum

WordPress plugin Blocksify - Gutenberg blocks by PressMaximum scored84%from 54 tests.

About plugin

  • Plugin page: blocksify
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2022
  • Latest release: Aug 18, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: pressmaximum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.43ms] Passed 4 tests

Analyzing server-side resources used by Blocksify - Gutenberg blocks by PressMaximum
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.05 ▼1.17
Dashboard /wp-admin3.37 ▲0.0246.80 ▼12.88
Posts /wp-admin/edit.php3.42 ▲0.0651.80 ▲4.39
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.82 ▼5.42
Media Library /wp-admin/upload.php3.29 ▲0.0636.69 ▲1.75

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blocksify - Gutenberg blocks by PressMaximum
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.35 ▼0.001.56 ▲0.0743.62 ▲4.36
Dashboard /wp-admin2,197 ▲205.52 ▼0.1280.06 ▼15.5837.01 ▼0.22
Posts /wp-admin/edit.php2,102 ▲22.00 ▲0.0034.96 ▼0.3031.68 ▼3.56
Add New Post /wp-admin/post-new.php1,671 ▲13423.43 ▲5.21653.10 ▲23.5737.98 ▼20.58
Media Library /wp-admin/upload.php1,396 ▼74.21 ▼0.0495.13 ▼1.2145.22 ▲1.36

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/blocksify/blocksify.php:19

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Section clock), #2 (Column clock)
Please take inspiration from this readme.txt

blocksify/blocksify.php 92% from 13 tests

The entry point to "Blocksify - Gutenberg blocks by PressMaximum" version 0.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin159 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JSON30090
PHP5133852
CSS101013
JavaScript4004

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin