84% jbx-category-columns

Code Review | JBX Category Columns

WordPress plugin JBX Category Columns scored84%from 54 tests.

About plugin

  • Plugin page: jbx-category-columns
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.1
  • WordPress version: 6.3.1
  • First release: Apr 25, 2014
  • Latest release: Jan 23, 2015
  • Number of updates: 15
  • Update frequency: every 18.2 days
  • Top authors: thejaybuddy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.70ms] Passed 4 tests

An overview of server-side resources used by JBX Category Columns
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0231.87 ▼11.27
Dashboard /wp-admin3.32 ▼0.0248.18 ▼14.45
Posts /wp-admin/edit.php3.37 ▲0.0248.11 ▼3.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.81 ▼21.65
Media Library /wp-admin/upload.php3.24 ▲0.0234.53 ▲0.50

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

JBX Category Columns: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8113.27 ▼1.172.44 ▲0.5844.41 ▲1.82
Dashboard /wp-admin2,224 ▲185.86 ▼0.0498.60 ▼20.2238.13 ▼7.77
Posts /wp-admin/edit.php2,100 ▼32.04 ▼0.0241.54 ▼0.4135.26 ▲3.24
Add New Post /wp-admin/post-new.php1,545 ▲1923.11 ▲5.53610.17 ▼74.1052.23 ▼7.43
Media Library /wp-admin/upload.php1,397 ▼04.24 ▼0.0397.09 ▼7.3142.29 ▼7.76

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jbx-category-columns/jbxCatColumns.php:28

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: category, post columns, thejaybuddy, category columns, columns...

jbx-category-columns/jbxCatColumns.php 92% from 13 tests

"JBX Category Columns" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jbx-category-columns.php" instead of "jbxCatColumns.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin140 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS119074
PHP1202466

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png64.79KB22.79KB▼ 64.82%