73% mw-wp-form-kintone

Code Review | MW WP Form kintone

WordPress plugin MW WP Form kintone scored73%from 54 tests.

About plugin

  • Plugin page: mw-wp-form-kintone
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 1, 2015
  • Latest release: Dec 1, 2015
  • Number of updates: 14
  • Update frequency: N/A
  • Top authors: kanakogi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,613 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.17MB] [CPU: ▼44.96ms] Passed 4 tests

Analyzing server-side resources used by MW WP Form kintone
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.81 ▼0.6613.85 ▼35.81
Dashboard /wp-admin2.85 ▼0.4616.80 ▼32.17
Posts /wp-admin/edit.php2.85 ▼0.5117.60 ▼31.80
Add New Post /wp-admin/post-new.php2.85 ▼3.0416.21 ▼80.04
Media Library /wp-admin/upload.php2.85 ▼0.3917.82 ▼15.72

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for MW WP Form kintone
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.62 ▼0.941.63 ▼0.4542.79 ▼0.92
Dashboard /wp-admin2,209 ▲244.86 ▼1.04104.59 ▼11.2441.64 ▼6.55
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0432.70 ▼2.2135.22 ▼3.77
Add New Post /wp-admin/post-new.php1,542 ▲918.17 ▼5.00628.08 ▼23.3155.62 ▲2.95
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.1397.02 ▲3.1843.49 ▲2.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/mw-wp-form-kintone/classes/class.api.php+22
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mw-wp-form-kintone/classes/class.admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mw-wp-form-kintone/classes/class.api.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mw-wp-form-kintone/mw-wp-form-kintone.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #2, #3 in mw-wp-form-kintone/assets to your readme.txt
  • Requires at least: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

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

The primary PHP file in "MW WP Form kintone" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin285 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35070272
Markdown111013

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.23
Average class complexity7.33
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.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
3 PNG files occupy 0.30MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/03.png163.24KB68.99KB▼ 57.74%
images/02.png51.16KB24.07KB▼ 52.95%
images/01.png96.95KB39.35KB▼ 59.42%