10% category-coloumn

Code Review | Category Column

WordPress plugin Category Column scored10%from 54 tests.

About plugin

  • Plugin page: category-coloumn
  • Plugin version: 4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.5
  • WordPress version: 6.3.1
  • First release: Jan 3, 2011
  • Latest release: Feb 26, 2016
  • Number of updates: 56
  • Update frequency: every 33.6 days
  • Top authors: tepelstreel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /14,273 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/category-coloumn/class-lib/CC_WidgetClass.php+351
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.83ms] Passed 4 tests

This is a short check of server-side resources used by Category Column
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.30 ▼33.06
Dashboard /wp-admin2.05 ▼1.255.02 ▼42.44
Posts /wp-admin/edit.php2.05 ▼1.315.96 ▼46.31
Add New Post /wp-admin/post-new.php2.05 ▼3.845.29 ▼93.50
Media Library /wp-admin/upload.php2.05 ▼1.185.17 ▼28.83
Category Column /wp-admin/options-general.php?page=category-column-settings2.055.49

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_category_column_widget
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
cc_options

Browser metrics Passed 4 tests

Category Column: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7513.19 ▼1.191.66 ▼0.3942.05 ▼4.30
Dashboard /wp-admin2,228 ▲764.96 ▼0.71109.45 ▼9.4082.35 ▲39.76
Posts /wp-admin/edit.php2,111 ▲221.98 ▲0.0039.07 ▲3.2935.27 ▼2.18
Add New Post /wp-admin/post-new.php1,544 ▲1118.22 ▼5.04677.17 ▼0.7261.58 ▲7.36
Media Library /wp-admin/upload.php1,398 ▲104.13 ▼0.0597.89 ▼7.9978.36 ▲33.17
Category Column /wp-admin/options-general.php?page=category-column-settings1,0414.7049.7557.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/category-coloumn/class-lib/CC_WidgetClass.php+351
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_category_column_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=category-column-settings
    • > Deprecated in wp-content/plugins/category-coloumn/class-lib/CC_WidgetClass.php+351
    Function create_function() is deprecated

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 items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'A5_DynamicFiles' not found in wp-content/plugins/category-coloumn/class-lib/CC_DynamicCSSClass.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/category-coloumn/class-lib/A5_WidgetClass.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'A5_Widget' not found in wp-content/plugins/category-coloumn/class-lib/CC_WidgetClass.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'A5_OptionPage' not found in wp-content/plugins/category-coloumn/class-lib/CC_AdminClass.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=category-column-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/category-coloumn/ta-expander.min.js?ver=3.0:1:2865)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=category-column-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: image, sidebar, widget, newspaper, category...

category-coloumn/category_column.php 77% from 13 tests

The main file in "Category Column" v. 4.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("category-coloumn.php" instead of "category_column.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 540 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,260 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP101,3335161,633
PO File2140146466
JavaScript26516161

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity26.70
▷ Minimum class complexity9.00
▷ Maximum class complexity72.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods88
▷ Static methods3236.36%
▷ Public methods7989.77%
▷ Protected methods00.00%
▷ Private methods910.23%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/a5-icon-11.png0.67KB0.42KB▼ 37.17%
img/a5-icon-34.png1.65KB1.35KB▼ 18.07%