78% kanban-shortcodes

Code Review | Kanban: Shortcodes

WordPress plugin Kanban: Shortcodes scored78%from 54 tests.

About plugin

  • Plugin page: kanban-shortcodes
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Oct 6, 2016
  • Latest release: May 10, 2021
  • Number of updates: 19
  • Update frequency: every 89.0 days
  • Top authors: gelform (89.47%)kkoppenhaver (15.79%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.33ms] Passed 4 tests

This is a short check of server-side resources used by Kanban: Shortcodes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.53 ▼0.84
Dashboard /wp-admin3.31 ▲0.0043.29 ▼6.71
Posts /wp-admin/edit.php3.36 ▲0.0041.73 ▼3.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.52 ▼10.02
Media Library /wp-admin/upload.php3.23 ▲0.0032.55 ▼0.77

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kanban: Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.191.73 ▲0.0339.74 ▼2.94
Dashboard /wp-admin2,209 ▲184.86 ▼0.21107.75 ▲3.7641.03 ▼2.92
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0035.66 ▼5.5432.33 ▼3.58
Add New Post /wp-admin/post-new.php1,542 ▲418.16 ▼5.12607.89 ▼39.9552.78 ▼7.04
Media Library /wp-admin/upload.php1,379 ▼124.24 ▲0.0397.25 ▼1.6440.97 ▼4.61

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
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/kanban-shortcodes/templates/board-iframe.php
    • > /wp-content/plugins/kanban-shortcodes/templates/board-link.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/kanban-shortcodes/templates/board-iframe.php on line 9
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/kanban-shortcodes/templates/board-link.php on line 1
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/kanban-shortcodes/templates/board-iframe.php on line 9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/kanban-shortcodes/templates/board-link.php on line 1
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/kanban-shortcodes/templates/board-link.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/kanban-shortcodes/templates/board-iframe.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Kanban_Utils' not found in wp-content/plugins/kanban-shortcodes/templates/list-board.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/kanban-shortcodes/templates/board-iframe.php on line 1
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/kanban-shortcodes/templates/board-iframe.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/kanban-shortcodes/templates/board-iframe.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
3 plugin tags: embed, kanban, shortcode

kanban-shortcodes/kanban-shortcodes.php 92% from 13 tests

The main PHP file in "Kanban: Shortcodes" ver. 0.0.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected254 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP415546254

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin