84% variable-column-block

Code Review | Variable Column Block

WordPress plugin Variable Column Block scored84%from 54 tests.

About plugin

  • Plugin page: variable-column-b...
  • Plugin version: 1.2.3
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 1, 2018
  • Latest release: Jan 2, 2023
  • Number of updates: 13
  • Update frequency: every 117.2 days
  • Top authors: ramizmanked (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /9,244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.29ms] Passed 4 tests

Server-side resources used by Variable Column Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.52 ▼0.32
Dashboard /wp-admin3.31 ▼0.0442.57 ▼12.33
Posts /wp-admin/edit.php3.36 ▲0.0044.77 ▼2.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.39 ▼9.95
Media Library /wp-admin/upload.php3.23 ▲0.0032.26 ▼0.16

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Variable Column Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.58 ▼0.791.70 ▼0.1540.91 ▲1.09
Dashboard /wp-admin2,203 ▲115.78 ▲0.8599.38 ▼6.0538.12 ▼0.78
Posts /wp-admin/edit.php2,089 ▲32.03 ▲0.0239.81 ▲4.5034.95 ▼1.17
Add New Post /wp-admin/post-new.php1,514 ▼317.62 ▲0.02602.07 ▼60.1854.95 ▲4.86
Media Library /wp-admin/upload.php1,388 ▲34.29 ▲0.0593.39 ▼2.3241.01 ▼1.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • 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 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/variable-column-block/variable-column-block.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
1 plugin tags: block

variable-column-block/variable-column-block.php 92% from 13 tests

Analyzing the main PHP file in "Variable Column Block" version 1.2.3
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected27,966 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON40027,581
JavaScript467250359
Sass20012
CSS2288
PHP21216

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin