84% column-shortcodes

Code Review | Column Shortcodes

WordPress plugin Column Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: column-shortcodes
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0.2
  • WordPress version: 6.3.1
  • First release: Aug 2, 2012
  • Latest release: Oct 11, 2022
  • Number of updates: 34
  • Update frequency: every 109.8 days
  • Top authors: tschutter (100%)

Code review

54 tests

User reviews

135 reviews

Install metrics

100,000+ active /860,875 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.16ms] Passed 4 tests

A check of server-side resources used by Column Shortcodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1040.33 ▲1.42
Dashboard /wp-admin3.40 ▲0.0647.33 ▼10.33
Posts /wp-admin/edit.php3.51 ▲0.1646.45 ▼1.88
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.54 ▼5.54
Media Library /wp-admin/upload.php3.33 ▲0.1034.89 ▲1.12

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Column Shortcodes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,074 ▲32814.21 ▼0.521.71 ▲0.0247.11 ▲5.93
Dashboard /wp-admin2,481 ▲3035.52 ▼0.2284.42 ▼20.3764.08 ▲26.72
Posts /wp-admin/edit.php2,383 ▲2832.03 ▼0.0037.87 ▼3.5036.42 ▼0.38
Add New Post /wp-admin/post-new.php1,822 ▲28718.14 ▼0.30721.34 ▲133.8639.41 ▼30.88
Media Library /wp-admin/upload.php1,680 ▲2774.06 ▼0.2698.34 ▲0.4164.56 ▲21.17

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/column-shortcodes/column-shortcodes.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can look at the official readme.txt

column-shortcodes/column-shortcodes.php Passed 13 tests

"Column Shortcodes" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Adds shortcodes to easily create columns in your posts or pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,863 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS491216675
PO File11198220629
PHP1102173378
JavaScript36138169
SVG10112

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods1350.00%
▷ Protected methods00.00%
▷ Private methods1350.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/columns-rtl.png4.97KB2.40KB▼ 51.71%
assets/images/columns.png4.77KB2.36KB▼ 50.52%
assets/images/shortcode.png1.03KB0.25KB▼ 75.33%