10% wp-auto-columns

Code Review | WP Auto Columns

WordPress plugin WP Auto Columns scored10%from 54 tests.

About plugin

  • Plugin page: wp-auto-columns
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Mar 5, 2012
  • Latest release: Aug 2, 2012
  • Number of updates: 23
  • Update frequency: every 6.8 days
  • Top authors: spectraweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,133 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User error in wp-content/plugins/wp-auto-columns/wp-auto-columns.php+284
    This plugin requires Tidy (more info)

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.70ms] Passed 4 tests

A check of server-side resources used by WP Auto Columns
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.79 ▼5.39
Dashboard /wp-admin3.39 ▲0.0548.80 ▼17.26
Posts /wp-admin/edit.php3.51 ▲0.1548.16 ▲1.50
Add New Post /wp-admin/post-new.php5.97 ▲0.0992.43 ▼9.92
Media Library /wp-admin/upload.php3.31 ▲0.0937.53 ▼2.21

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Auto Columns
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.66 ▲0.021.87 ▼0.1446.71 ▼1.15
Dashboard /wp-admin2,202 ▲255.56 ▼0.1290.06 ▲0.3141.47 ▲4.77
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0136.27 ▲2.2038.31 ▲0.68
Add New Post /wp-admin/post-new.php1,532 ▲423.21 ▲0.09662.40 ▲7.9851.99 ▼6.11
Media Library /wp-admin/upload.php1,407 ▲44.19 ▼0.0597.40 ▼16.9245.93 ▼2.75
Auto Columns /wp-admin/wp-auto-columns.php260.420.0714.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-auto-columns/wp-auto-columns.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/wp-auto-columns.php
    • > Network (severe)
    wp-admin/wp-auto-columns.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Example of splitted text), #2 (Example of shortcode markup)
You can take inspiration from this readme.txt

wp-auto-columns/wp-auto-columns.php Passed 13 tests

The main PHP script in "WP Auto Columns" version 1.0.6 is automatically included on every request by WordPress
80 characters long description:
Wrap block of text with shortcode. It will be split into columns. Automagically.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin764 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP3116178603
PO File23938113
JavaScript21042
CSS1106

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity37.00
▷ Minimum class complexity30.00
▷ Maximum class complexity44.00
Average method complexity4.13
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods1565.22%
▷ Public methods1773.91%
▷ Protected methods417.39%
▷ Private methods28.70%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png55.47KB22.11KB▼ 60.14%
screenshot-1.png137.81KB51.14KB▼ 62.89%