62% kanban

Code Review | Kanban Boards for WordPress

WordPress plugin Kanban Boards for WordPress scored62%from 54 tests.

About plugin

  • Plugin page: kanban
  • Plugin version: 2.5.21
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 14, 2015
  • Latest release: Sep 19, 2023
  • Number of updates: 275
  • Update frequency: every 10.6 days
  • Top authors: gelform (97.82%)kkoppenhaver (2.55%)

Code review

54 tests

User reviews

23 reviews

Install metrics

1,000+ active /73,332 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.50ms] Passed 4 tests

This is a short check of server-side resources used by Kanban Boards for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.21 ▼2.87
Dashboard /wp-admin3.44 ▲0.1345.61 ▼5.33
Posts /wp-admin/edit.php3.49 ▲0.1349.69 ▲5.22
Add New Post /wp-admin/post-new.php5.96 ▲0.0796.18 ▼0.00
Media Library /wp-admin/upload.php3.30 ▲0.0734.12 ▼1.81
Settings /wp-admin/admin.php?page=kanban_settings3.4535.99
Contact Us /wp-admin/admin.php?page=kanban_contact3.3133.22
Welcome /wp-admin/admin.php?page=kanban3.3531.57
Version 3 /wp-admin/admin.php?page=kanban_v33.3033.81
Import /wp-admin/admin.php?page=kanban_import3.2430.85
Kanban Pro /wp-admin/admin.php?page=kanban_pro3.3133.47

Server storage [IO: ▲3.03MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 273 new files
Database: 10 new tables, 7 new options
New tables
wp_kanban_log_status_changes
wp_kanban_taskmeta
wp_kanban_task_hours
wp_kanban_boards
wp_kanban_tasks
wp_kanban_log_comments
wp_kanban_projects
wp_kanban_options
wp_kanban_statuses
wp_kanban_estimates
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
kanban_db_version

Browser metrics Passed 4 tests

A check of browser resources used by Kanban Boards for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲14414.49 ▼0.071.70 ▲0.1741.06 ▲3.97
Dashboard /wp-admin2,279 ▲915.89 ▲1.05105.80 ▼8.1940.39 ▼3.03
Posts /wp-admin/edit.php2,165 ▲762.02 ▲0.0139.78 ▲4.8233.14 ▲3.09
Add New Post /wp-admin/post-new.php1,573 ▲4018.03 ▼5.20606.25 ▼50.3557.00 ▼11.95
Media Library /wp-admin/upload.php1,461 ▲734.22 ▲0.0294.69 ▼4.3442.70 ▼0.17
Settings /wp-admin/admin.php?page=kanban_settings1,5982.4846.0232.58
Contact Us /wp-admin/admin.php?page=kanban_contact9952.1531.3624.78
Welcome /wp-admin/admin.php?page=kanban1,6866.5564.4459.72
Version 3 /wp-admin/admin.php?page=kanban_v39922.1430.4038.54
Import /wp-admin/admin.php?page=kanban_import7141.366.7314.66
Kanban Pro /wp-admin/admin.php?page=kanban_pro9062.1029.6827.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 tables were found after uninstall: 10 tables
    • wp_kanban_boards
    • wp_kanban_log_comments
    • wp_kanban_projects
    • wp_kanban_estimates
    • wp_kanban_options
    • wp_kanban_statuses
    • wp_kanban_taskmeta
    • wp_kanban_tasks
    • wp_kanban_log_status_changes
    • wp_kanban_task_hours
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=kanban_import
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP 0% 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
  • 27× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/kanban/templates/board/col-status.php
    • > /wp-content/plugins/kanban/v3/board/templates/field/title.php
    • > /wp-content/plugins/kanban/v3/board/templates/field/text.php
    • > /wp-content/plugins/kanban/templates/board/col-tasks.php
    • > /wp-content/plugins/kanban/v3/board/templates/board/modal/user-find-dropdown.php
    • > /wp-content/plugins/kanban/v3/board/inc/emojis.php
    • > /wp-content/plugins/kanban/templates/board/t-option-project.php
    • > /wp-content/plugins/kanban/v3/board/templates/field/todo.php
    • > /wp-content/plugins/kanban/v3/board/templates/app/modal/user-find-dropdown.php
    • > /wp-content/plugins/kanban/v3/board/inc/colors.php
  • 148× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Kanban_Field' not found in wp-content/plugins/kanban/v3/src/Kanban/Field/Time.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/kanban/v3/board/templates/filter/text.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/kanban/templates/board/t-task.php:4
    • > PHP Notice
      Undefined variable: status_id in wp-content/plugins/kanban/templates/board/col-tasks.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/kanban/v3/board/templates/field/img/attachment.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/kanban/templates/admin/kanbanpro.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Kanban_Abstract' not found in wp-content/plugins/kanban/v3/src/Kanban/Fieldvalue/Log.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/kanban/v3/board/templates/footer/menu.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/kanban/v3/board/templates/header/board-tab.php:9
    • > PHP Notice
      Undefined variable: status_id in wp-content/plugins/kanban/templates/board/col-status.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

kanban/kanban.php Passed 13 tests

The main file in "Kanban Boards for WordPress" v. 2.5.21 serves as a complement to information provided in readme.txt and as the entry point to the plugin
103 characters long description:
Add Kanban boards to your WordPress sites and get organized! Project management, CRM, sales tracking...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin32,853 lines of code in 247 files:
LanguageFilesBlank linesComment linesLines of code
PHP1794,7852,66815,008
JavaScript452,5171,1307,800
CSS850397,494
Sass419912959
PO File5376429930
SVG600662

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.45
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes60
▷ Abstract classes23.33%
▷ Concrete classes5896.67%
▷ Final classes11.72%
Methods505
▷ Static methods18837.23%
▷ Public methods46992.87%
▷ Protected methods91.78%
▷ Private methods275.35%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
5 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
v3/img/bird 2-500.png12.68KB12.71KB0.00%
img/notify-favicon-250.png2.47KB2.38KB▼ 3.44%
v3/img/bird 2-250.png6.15KB6.14KB0.11%
v3/img/bird 2-125.png3.33KB3.32KB0.23%
v3/img/notify-favicon-250.png2.47KB2.38KB▼ 3.44%