10% kanpress

Code Review | Kanpress

WordPress plugin Kanpress scored 10% from 53 tests.

About plugin

  • Plugin page: kanpress
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.5.1
  • WordPress version: 5.8.1
  • First release: Mar 5, 2012
  • Latest release: Sep 4, 2013
  • Number of updates: 114
  • Update frequency: every 5.0 days
  • Top authors: isra00 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

30+ active / 3,034 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/kanpress/kanpress.php+18
    Undefined variable: wpdb

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

Analyzing server-side resources used by Kanpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.11 ▲18.49
Dashboard /wp-admin3.07 ▲0.0249.04 ▲3.92
Posts /wp-admin/edit.php3.12 ▲0.0242.80 ▼4.99
Add New Post /wp-admin/post-new.php5.43 ▲0.0187.98 ▼1,056.40
Media Library /wp-admin/upload.php3.01 ▲0.0131.81 ▼6.43

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 39 new files
Database: 1 new table, no new options
New tables
wp_kanpress_task

Browser metrics Passed 4 tests

Checking browser requirements for Kanpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,669 ▲6315.86 ▲0.247.73 ▲0.6448.74 ▲2.02
Dashboard /wp-admin2,947 ▲976.06 ▲0.26147.71 ▲11.13113.17 ▲10.66
Posts /wp-admin/edit.php2,726 ▲202.69 ▲0.0268.82 ▲0.4189.40 ▼6.62
Add New Post /wp-admin/post-new.php1,494 ▼9418.49 ▼2.95356.85 ▲75.78110.81 ▼0.07
Media Library /wp-admin/upload.php1,792 ▲205.06 ▲0.05151.23 ▲7.32107.31 ▼9.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_kanpress_task

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 no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/kanpress/ajax_move_task.php
    • > /wp-content/plugins/kanpress/ajax_link_task.php
    • > /wp-content/plugins/kanpress/ajax_remove_task.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/kanpress/page_board.php:72
    • > PHP Warning
      Use of undefined constant TABLE_TASK - assumed 'TABLE_TASK' (this will throw an Error in a future version of PHP) in wp-content/plugins/kanpress/page_board.php on line 67
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/kanpress/page_board.php on line 68
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/kanpress/page_board.php on line 68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/kanpress/kanpress.php:17
    • > PHP Warning
      Use of undefined constant TABLE_TASK - assumed 'TABLE_TASK' (this will throw an Error in a future version of PHP) in wp-content/plugins/kanpress/page_board.php on line 68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/kanpress/page_board.view.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/kanpress/page_config.view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/kanpress/page_config.view.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (The Kanban board in action), #2 (Task details: descriptions, assigned author, linked post...)
You can look at the official readme.txt

kanpress/kanpress.php Passed 13 tests

Analyzing the main PHP file in "Kanpress" version 1.1
57 characters long description:
Kanban board for managing the creation of Wordpress posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,896 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PO File7259259642
PHP13125178558
CSS12013316
JavaScript19771225
SVG111155

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
static/kanpress.png1.71KB1.39KB▼ 18.58%
static/pr_high.png3.38KB1.02KB▼ 69.84%
screenshot-1.png37.79KB13.06KB▼ 65.45%
static/pr_medium.png3.45KB1.18KB▼ 65.68%
static/pr_low.png3.36KB1.04KB▼ 69.14%