84% columns

Code Review | Columns

WordPress plugin Columns scored84%from 54 tests.

About plugin

  • Plugin page: columns
  • Plugin version: 0.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.6
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: Jul 29, 2016
  • Number of updates: 31
  • Update frequency: every 38.7 days
  • Top authors: kovshenin (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

5,000+ active /88,598 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.00MB] [CPU: ▼4.62ms] Passed 4 tests

This is a short check of server-side resources used by Columns
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.57 ▼1.91
Dashboard /wp-admin3.31 ▲0.0146.40 ▼5.49
Posts /wp-admin/edit.php3.36 ▲0.0048.27 ▼2.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.17 ▼8.88
Media Library /wp-admin/upload.php3.23 ▲0.0038.65 ▼0.00

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Columns
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▼0.211.83 ▼0.0343.38 ▼0.78
Dashboard /wp-admin2,198 ▲215.62 ▲0.0492.24 ▼7.0739.98 ▼2.36
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0440.82 ▲4.3235.65 ▲0.61
Add New Post /wp-admin/post-new.php1,526 ▼223.04 ▲0.10683.20 ▲7.7058.40 ▲3.96
Media Library /wp-admin/upload.php1,400 ▼04.15 ▲0.01105.61 ▼12.8844.76 ▼3.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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
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
Almost there! Just fix the following items
  • 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/columns.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: columns, shortcode

columns/columns.php Passed 13 tests

This is the main PHP file of "Columns" version 0.7.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
65 characters long description:
Use a [column] shortcode inside a [column-group] to create magic.

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
Good job! No executable or dangerous file extensions detected58 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141136
CSS15022

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin