10% column-posts

Code Review | Column Posts

WordPress plugin Column Posts scored 10% from 54 tests.

About plugin

  • Plugin page: column-posts
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.4
  • WordPress version: 5.8.1
  • First release: Oct 23, 2012
  • Latest release: Jan 4, 2016
  • Number of updates: 98
  • Update frequency: every 11.9 days
  • Top authors: lebasca (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active / 23,951 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/column-posts/includes/widget.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; ColumnPost_Widget has a deprecated constructor

Server metrics [RAM: ▼1.77MB] [CPU: ▼216.48ms] Passed 4 tests

An overview of server-side resources used by Column Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼0.978.24 ▼18.83
Dashboard /wp-admin1.89 ▼1.1814.96 ▼28.64
Posts /wp-admin/edit.php1.89 ▼1.224.16 ▼30.46
Add New Post /wp-admin/post-new.php1.89 ▼3.553.92 ▼785.31
Media Library /wp-admin/upload.php1.89 ▼1.124.04 ▼21.50
Column Posts /wp-admin/options-general.php?page=column-posts1.894.52

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 2 new options
New WordPress options
widget_column posts
cp_options

Browser metrics Passed 4 tests

Checking browser requirements for Column Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,673 ▲7215.73 ▲0.096.06 ▲0.7093.16 ▲17.40
Dashboard /wp-admin2,935 ▲406.10 ▼0.06117.27 ▼11.03164.54 ▼7.07
Posts /wp-admin/edit.php2,745 ▲23.23 ▼0.0161.41 ▼5.61136.10 ▼4.07
Add New Post /wp-admin/post-new.php3,816 ▲118.86 ▼0.33414.43 ▼32.01164.76 ▲1.24
Media Library /wp-admin/upload.php1,757 ▲85.48 ▼0.01138.35 ▼16.82188.59 ▲2.74
Column Posts /wp-admin/options-general.php?page=column-posts1,6022.9061.60165.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/column-posts/includes/widget.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; ColumnPost_Widget has a deprecated constructor
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_column posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=column-posts
    • > Deprecated in wp-content/plugins/column-posts/includes/widget.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; ColumnPost_Widget has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=column-posts
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method ColumnPost_Widget::register_widget() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=column-posts
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in ColumnPost_Widget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=column-posts
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=column-posts
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=column-posts
    • > Notice in wp-content/plugins/column-posts/includes/admin.php+208
    Undefined property: ColumnPost_Admin::$base

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: posts, column posts, category, categories, excerpt...

column-posts/column-posts.php 92% from 13 tests

"Column Posts" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin862 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3128130590
PO File16263176
CSS171156
JavaScript23040

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity21.67
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods56
▷ Static methods00.00%
▷ Public methods5292.86%
▷ Protected methods00.00%
▷ Private methods47.14%
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

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/color.png0.87KB1.07KB0.00%