84% columns-plugin

Code Review | Columns Plugin

WordPress plugin Columns Plugin scored84%from 54 tests.

About plugin

  • Plugin page: columns-plugin
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Sep 29, 2013
  • Latest release: Sep 30, 2013
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: wordpresssites (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,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.00MB] [CPU: ▼9.75ms] Passed 4 tests

Analyzing server-side resources used by Columns Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.37 ▼0.76
Dashboard /wp-admin3.31 ▲0.0143.80 ▼6.33
Posts /wp-admin/edit.php3.36 ▲0.0046.85 ▼6.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.51 ▼24.50
Media Library /wp-admin/upload.php3.23 ▲0.0031.07 ▼1.24

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Columns Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.32 ▼1.281.79 ▲0.1742.51 ▼2.92
Dashboard /wp-admin2,206 ▲154.84 ▼0.08110.26 ▲4.5639.38 ▼3.25
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0139.63 ▲2.9835.38 ▼0.28
Add New Post /wp-admin/post-new.php1,514 ▼1917.45 ▼5.73629.44 ▼36.2350.67 ▼6.31
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.1693.97 ▼3.4042.15 ▼0.00

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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
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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/columns-plugin/columns_plugin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tested up to: Invalid version format
The official readme.txt might help

columns-plugin/columns_plugin.php 92% from 13 tests

The main file in "Columns Plugin" v. 1.0.0 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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("columns-plugin.php" instead of "columns_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin49 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS18043
PHP12106

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
examples-of-columns.png159.27KB72.76KB▼ 54.32%