10% advanced-category-column

Code Review | Advanced Category Column

WordPress plugin Advanced Category Column scored10%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: 6.3.1
  • 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

50+ active /14,868 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/advanced-category-column/class-lib/ACC_WidgetClass.php+404
    Function create_function() is deprecated

Server metrics [RAM: ▼1.43MB] [CPU: ▼46.81ms] Passed 4 tests

Server-side resources used by Advanced Category Column
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.56 ▼0.918.33 ▼30.34
Dashboard /wp-admin2.58 ▼0.7310.17 ▼37.29
Posts /wp-admin/edit.php2.58 ▼0.789.34 ▼37.53
Add New Post /wp-admin/post-new.php2.58 ▼3.319.36 ▼82.06
Media Library /wp-admin/upload.php2.58 ▼0.6512.28 ▼21.09
Advanced Category Column /wp-admin/options-general.php?page=advanced-cc-settings2.589.59

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
acc_options
widget_advanced_category_column_widget
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Category Column
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.24 ▼1.131.71 ▼0.3344.08 ▲0.63
Dashboard /wp-admin2,228 ▲405.85 ▲0.98101.10 ▼2.5963.15 ▲17.19
Posts /wp-admin/edit.php2,114 ▲252.02 ▲0.0138.89 ▲1.9333.67 ▲1.34
Add New Post /wp-admin/post-new.php1,685 ▲17122.34 ▲4.78765.04 ▲55.6664.21 ▲11.43
Media Library /wp-admin/upload.php1,407 ▲194.23 ▼0.08114.02 ▲9.2544.48 ▲1.98
Advanced Category Column /wp-admin/options-general.php?page=advanced-cc-settings1,0934.7954.6255.07

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
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/advanced-category-column/class-lib/ACC_WidgetClass.php+404
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_advanced_category_column_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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_Widget' not found in wp-content/plugins/advanced-category-column/class-lib/ACC_WidgetClass.php:12
    • > 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 | A shallow check that no browser errors were triggered
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=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/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=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=advanced-cc-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

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: sidebar, newspaper, multi widget, category, image...

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

The principal PHP file in "Advanced Category Column" v. 3.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-category-column.php" instead of "advanced-cc.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 382 characters long)

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
Everything looks great! No dangerous files found in this plugin2,681 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP101,3555171,708
PO File3241269799
JavaScript26919174

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.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%