83% import-kintone

Code Review | Publish kintone data

WordPress plugin Publish kintone data scored83%from 54 tests.

About plugin

  • Plugin page: import-kintone
  • Plugin version: 1.13.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 16, 2017
  • Latest release: Sep 28, 2023
  • Number of updates: 93
  • Update frequency: every 24.0 days
  • Top authors: tkc49 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,457 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼7.19ms] Passed 4 tests

A check of server-side resources used by Publish kintone data
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1941.15 ▼3.84
Dashboard /wp-admin3.49 ▲0.1951.27 ▼4.79
Posts /wp-admin/edit.php3.60 ▲0.2549.80 ▼5.58
Add New Post /wp-admin/post-new.php6.07 ▲0.1995.26 ▼14.56
Media Library /wp-admin/upload.php3.41 ▲0.1941.20 ▲1.83
Publish kintone data /wp-admin/options-general.php?page=publish-kintone-data-setting3.3835.43

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Publish kintone data
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.55 ▼0.824.51 ▲2.2139.35 ▼2.04
Dashboard /wp-admin2,210 ▲255.86 ▲0.01106.08 ▲5.5041.30 ▼10.72
Posts /wp-admin/edit.php2,096 ▲72.04 ▼0.0138.87 ▼1.9433.94 ▼6.63
Add New Post /wp-admin/post-new.php1,536 ▼623.29 ▲5.11633.59 ▼37.2150.19 ▼7.55
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0097.29 ▼19.3843.79 ▼4.65
Publish kintone data /wp-admin/options-general.php?page=publish-kintone-data-setting8302.0328.2430.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/import-kintone/inc/class-shortcode.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function publish_kintone_data\\plugins_url() in wp-content/plugins/import-kintone/publish-kintone-data.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: cybozu, database, custom field, crm, kintone

import-kintone/publish-kintone-data.php 77% from 13 tests

"Publish kintone data" version 1.13.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("import-kintone.php" instead of "publish-kintone-data.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin921 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6306227921

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity41.75
▷ Minimum class complexity6.00
▷ Maximum class complexity78.00
Average method complexity5.94
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods33
▷ Static methods39.09%
▷ Public methods1133.33%
▷ Protected methods00.00%
▷ Private methods2266.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin