78% columns-bws

Code Review | Columns by BestWebSoft - Additional Columns Plugin for Posts Pages and Widgets

WordPress plugin Columns by BestWebSoft - Additional Columns Plugin for Posts Pages and Widgets scored78%from 54 tests.

About plugin

  • Plugin page: columns-bws
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 13, 2020
  • Latest release: Aug 15, 2023
  • Number of updates: 14
  • Update frequency: every 91.9 days
  • Top authors: bestwebsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,617 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 gracefully, with no errors

Server metrics [RAM: ▲0.97MB] [CPU: ▼6.01ms] Passed 4 tests

An overview of server-side resources used by Columns by BestWebSoft - Additional Columns Plugin for Posts Pages and Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.48 ▲1.0248.98 ▲6.77
Dashboard /wp-admin4.31 ▲0.9759.73 ▼15.81
Posts /wp-admin/edit.php4.37 ▲1.0156.61 ▼3.39
Add New Post /wp-admin/post-new.php6.85 ▲0.9697.41 ▼11.61
Media Library /wp-admin/upload.php4.17 ▲0.9451.07 ▲10.31

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 120 new files
Database: 2 new tables, 8 new options
New tables
wp_clmns_columns
wp_clmns_column
New WordPress options
widget_recent-posts
bstwbsftwppdtplgns_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
clmns_options
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Columns by BestWebSoft - Additional Columns Plugin for Posts Pages and Widgets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,003 ▲25713.61 ▼0.7512.47 ▲10.3938.84 ▼1.14
Dashboard /wp-admin2,294 ▲1145.83 ▲0.1792.51 ▲0.2946.65 ▲1.64
Posts /wp-admin/edit.php2,206 ▲1062.34 ▲0.3835.24 ▼3.4532.12 ▼3.36
Add New Post /wp-admin/post-new.php1,629 ▲10123.29 ▲0.29683.60 ▲1.4452.73 ▼16.71
Media Library /wp-admin/upload.php1,502 ▲1024.36 ▲0.22103.03 ▼10.3647.04 ▼4.83
BWS Panel /wp-admin/columns.php?page=clmns-bws-panel260.420.0714.74
Columns /wp-admin/columns.php260.420.085.56
Add New /wp-admin/column-new.php260.420.108.37
Settings /wp-admin/columns-settings.php260.420.095.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/columns-bws/bws_menu/product_list.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/columns-bws/includes/class-clmns-settings.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/columns-bws/includes/class-clmns-add-new.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/columns-bws/bws_menu/class-bws-settings.php:1452
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/columns-bws/columns-bws.php on line 283
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/columns-bws/columns-bws.php on line 283
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/columns-bws/columns-bws.php on line 283

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/columns.php?page=clmns-bws-panel
    • > Network (severe)
    wp-admin/columns.php?page=clmns-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/columns.php
    • > Network (severe)
    wp-admin/columns.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/column-new.php
    • > Network (severe)
    wp-admin/column-new.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/columns-settings.php
    • > Network (severe)
    wp-admin/columns-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Columns display.), #2 (Columns List.), #3 (Edit columns page.), #4 (Edit columns settings page.), #5 (Plugin Settings.), #6 (Adding Columns Shortcode.)
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

columns-bws/columns-bws.php Passed 13 tests

The entry point to "Columns by BestWebSoft - Additional Columns Plugin for Posts Pages and Widgets" version 1.0.3 is a PHP file that has certain tags in its header comment area
80 characters long description:
Add columns with custom content to WordPress website pages, posts, widgets, etc.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin19,573 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PO File103,6235,4017,860
CSS121892805,604
PHP105467435,348
JavaScript946118690
SVG10071

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity67.40
▷ Minimum class complexity2.00
▷ Maximum class complexity210.00
Average method complexity9.51
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods3282.05%
▷ Protected methods00.00%
▷ Private methods717.95%
Functions74
▷ Named functions74100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
62 PNG files occupy 2.28MB with 1.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_75_dadada_1x400.png0.31KB0.18KB▼ 39.81%
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.32KB0.18KB▼ 44.00%
screenshot-5.png84.15KB28.45KB▼ 66.20%
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-icons_888888_256x240.png6.88KB4.20KB▼ 38.90%