10% advanced-category-column

Code Review | Advanced Category Column

WordPress plugin Advanced Category Column scored 10% from 54 tests.

About plugin

  • Plugin page: advanced-category...
  • Plugin version: 3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.5
  • WordPress version: 5.9.2
  • First release: Mar 3, 2011
  • Latest release: Feb 26, 2016
  • Number of updates: 73
  • Update frequency: every 25.0 days
  • Top authors: tepelstreel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 14,563 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/advanced-category-column/class-lib/ACC_WidgetClass.php+404
    Function create_function() is deprecated

Server metrics [RAM: ▼1.94MB] [CPU: ▼344.88ms] Passed 4 tests

A check of server-side resources used by Advanced Category Column
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.46 ▼1.097.31 ▼41.97
Dashboard /wp-admin2.48 ▼0.966.79 ▼25.72
Posts /wp-admin/edit.php2.48 ▼1.196.64 ▼29.52
Add New Post /wp-admin/post-new.php2.48 ▼4.526.64 ▼1,282.29
Media Library /wp-admin/upload.php2.48 ▼0.856.36 ▼16.61
Advanced Category Column /wp-admin/options-general.php?page=advanced-cc-settings2.486.27

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 2 new options
New WordPress options
acc_options
widget_advanced_category_column_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Category Column
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,821 ▲6716.13 ▲0.466.38 ▼0.252.17 ▼0.99
Dashboard /wp-admin2,914 ▲536.19 ▲0.08122.00 ▼10.92173.13 ▲10.74
Posts /wp-admin/edit.php2,712 ▲213.25 ▲0.0062.39 ▼1.66143.55 ▼0.26
Add New Post /wp-admin/post-new.php1,723 ▲5520.83 ▲1.23421.41 ▲16.96154.41 ▼3.54
Media Library /wp-admin/upload.php1,721 ▲235.54 ▲0.03134.36 ▼2.62207.22 ▲23.12
Advanced Category Column /wp-admin/options-general.php?page=advanced-cc-settings1,4324.5781.40142.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/advanced-category-column/class-lib/ACC_WidgetClass.php+404
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_advanced_category_column_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=advanced-cc-settings
    • > Deprecated in wp-content/plugins/advanced-category-column/class-lib/ACC_WidgetClass.php+404
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=advanced-cc-settings
    • > Notice in wp-content/plugins/advanced-category-column/class-lib/ACC_AdminClass.php+135
    Undefined index: link
    • > GET request to /wp-admin/options-general.php?page=advanced-cc-settings
    • > Notice in wp-content/plugins/advanced-category-column/class-lib/ACC_AdminClass.php+141
    Undefined index: hover

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
Almost there! Just fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'A5_Widget' not found in wp-content/plugins/advanced-category-column/class-lib/ACC_WidgetClass.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-category-column/class-lib/A5_WidgetClass.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'A5_DynamicFiles' not found in wp-content/plugins/advanced-category-column/class-lib/ACC_DynamicCSSClass.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'A5_OptionPage' not found in wp-content/plugins/advanced-category-column/class-lib/ACC_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=advanced-cc-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/advanced-category-column/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=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
    • > GET request to /wp-admin/options-general.php?page=advanced-cc-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: image, column, newspaper, sidebar, widget...

advanced-category-column/advanced-cc.php 77% from 13 tests

The main file in "Advanced Category Column" v. 3.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 382 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-category-column.php" instead of "advanced-cc.php")

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
No dangerous file extensions were detected2,681 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP101,3555171,708
PO File3241269799
JavaScript26919174

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity27.10
▷ Minimum class complexity10.00
▷ Maximum class complexity72.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods90
▷ Static methods3235.56%
▷ Public methods8190.00%
▷ Protected methods00.00%
▷ Private methods910.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
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-34.png1.65KB1.35KB▼ 18.07%
img/a5-icon-11.png0.67KB0.42KB▼ 37.17%