84% columnify

Code Review | Columnify

WordPress plugin Columnify scored 84% from 54 tests.

About plugin

  • Plugin page: columnify
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9
  • WordPress version: 5.8.1
  • First release: Jul 16, 2014
  • Latest release: Jul 16, 2014
  • Number of updates: 20
  • Update frequency: every 0.1 days
  • Top authors: markotom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 672 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼135.52ms] Passed 4 tests

A check of server-side resources used by Columnify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1534.85 ▲14.14
Dashboard /wp-admin3.09 ▲0.0348.89 ▲4.09
Posts /wp-admin/edit.php3.14 ▲0.0345.01 ▲12.21
Add New Post /wp-admin/post-new.php5.45 ▲0.0189.89 ▼559.43
Media Library /wp-admin/upload.php3.03 ▲0.0332.93 ▲1.06

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
widget_column_divider

Browser metrics Passed 4 tests

This is an overview of browser requirements for Columnify
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7315.83 ▼0.148.86 ▼0.3145.69 ▼2.45
Dashboard /wp-admin2,973 ▲425.92 ▼0.08138.21 ▼4.74110.76 ▼7.70
Posts /wp-admin/edit.php2,739 ▲32.72 ▼0.0167.78 ▲1.7691.98 ▼3.09
Add New Post /wp-admin/post-new.php1,672 ▲17418.87 ▲0.09378.52 ▲4.11111.71 ▼5.36
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.02144.89 ▼24.24117.65 ▼6.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_column_divider

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/columnify/includes/widgets/divider.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/columnify/includes/widgets/divider.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: columns, widget, bootstrap, sidebar

columnify/columnify.php Passed 13 tests

The main PHP file in "Columnify" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Creates columns with widgets quickly and painless.

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
Everything looks great! No dangerous files found in this plugin183 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4382891
CSS11026
JavaScript15123
Markdown110022
JSON10021

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.20
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin