84% kintone-form

Code Review | Form data to kintone

WordPress plugin Form data to kintone scored84%from 54 tests.

About plugin

  • Plugin page: kintone-form
  • Plugin version: 2.27.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 2, 2017
  • Latest release: Sep 29, 2023
  • Number of updates: 195
  • Update frequency: every 11.4 days
  • Top authors: tkc49 (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

900+ active /15,691 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼0.09ms] Passed 4 tests

An overview of server-side resources used by Form data to kintone
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2743.19 ▲3.65
Dashboard /wp-admin3.63 ▲0.3248.66 ▼2.76
Posts /wp-admin/edit.php3.68 ▲0.3252.11 ▲5.06
Add New Post /wp-admin/post-new.php6.17 ▲0.2895.13 ▼5.26
Media Library /wp-admin/upload.php3.49 ▲0.2639.86 ▲4.01

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Form data to kintone
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.26 ▼0.031.80 ▲0.2045.87 ▲6.20
Dashboard /wp-admin2,205 ▲285.62 ▲0.1191.41 ▲6.9940.66 ▼0.64
Posts /wp-admin/edit.php2,108 ▲82.02 ▼0.0139.07 ▲1.3035.92 ▲2.00
Add New Post /wp-admin/post-new.php1,536 ▲823.23 ▲0.34588.89 ▼128.2950.34 ▼9.84
Media Library /wp-admin/upload.php1,410 ▲104.17 ▼0.0897.11 ▼1.2543.01 ▼0.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% 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 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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/kintone-form/modules/file.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/kintone-form/kintone-form.php:32

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: kintone, contact form 7, form data to kintone, cybozu, form

kintone-form/kintone-form.php 92% from 13 tests

Analyzing the main PHP file in "Form data to kintone" version 2.27.1
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,777 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP215075481,674
JavaScript2301486
CSS12017

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity14.28
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity4.92
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods61
▷ Static methods3455.74%
▷ Public methods5386.89%
▷ Protected methods00.00%
▷ Private methods813.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected