10% kanban-gravity-forms

Code Review | Kanban + Gravity Forms

WordPress plugin Kanban + Gravity Forms scored10%from 54 tests.

About plugin

  • Plugin page: kanban-gravity-forms
  • Plugin version: 0.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2016
  • Latest release: May 10, 2021
  • Number of updates: 20
  • Update frequency: every 83.9 days
  • Top authors: gelform (85%)kkoppenhaver (20%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,209 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/kanban-gravity-forms/kanban-gravity-forms.php+553
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

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

Server-side resources used by Kanban + Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.91 ▼0.55
Dashboard /wp-admin3.31 ▲0.0054.73 ▲5.00
Posts /wp-admin/edit.php3.36 ▲0.0050.23 ▼1.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.98 ▼8.75
Media Library /wp-admin/upload.php3.23 ▲0.0040.82 ▼0.79

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Kanban + Gravity Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.23 ▼0.581.73 ▼0.5841.37 ▼1.19
Dashboard /wp-admin2,218 ▲155.84 ▲0.9799.56 ▼6.2239.04 ▼2.44
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0136.98 ▲0.2934.01 ▲1.17
Add New Post /wp-admin/post-new.php1,545 ▲523.23 ▼0.08645.56 ▼66.0072.63 ▲6.15
Media Library /wp-admin/upload.php1,403 ▲64.22 ▼0.00115.97 ▲2.2450.10 ▲0.68

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/kanban-gravity-forms/templates/inc/choose-board.php
    • > /wp-content/plugins/kanban-gravity-forms/templates/inc/choose-form.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/kanban-gravity-forms/kanban-gravity-forms.php on line 553
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/kanban-gravity-forms/templates/admin-page.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/kanban-gravity-forms/templates/inc/map-fields.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/kanban-gravity-forms/templates/inc/map-fields.php on line 1
    • > PHP Notice
      Undefined variable: form in wp-content/plugins/kanban-gravity-forms/templates/inc/map-fields.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: integration, adapter, kanban, gravity forms

kanban-gravity-forms/kanban-gravity-forms.php 85% from 13 tests

The main PHP script in "Kanban + Gravity Forms" version 0.0.7 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin681 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP529385681

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.78
Average class complexity80.00
▷ Minimum class complexity80.00
▷ Maximum class complexity80.00
Average method complexity8.18
▷ Minimum method complexity1.00
▷ Maximum method complexity36.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin