84% kuzi

Code Review | 困ったときの他人任せ

WordPress plugin 困ったときの他人任せ scored84%from 54 tests.

About plugin

  • Plugin page: kuzi
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 29, 2013
  • Latest release: Jul 29, 2013
  • Number of updates: 7
  • Update frequency: every 3.4 days
  • Top authors: hamanaka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /734 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by 困ったときの他人任せ
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.95 ▼0.18
Dashboard /wp-admin3.31 ▼0.0453.34 ▼12.70
Posts /wp-admin/edit.php3.36 ▲0.0047.12 ▼1.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.18 ▼12.79
Media Library /wp-admin/upload.php3.23 ▲0.0039.28 ▲0.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for 困ったときの他人任せ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲13213.38 ▼0.998.23 ▲6.0045.75 ▲6.62
Dashboard /wp-admin2,198 ▲215.59 ▼0.0885.95 ▼5.2436.05 ▼2.93
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0334.72 ▼3.0132.87 ▼5.76
Add New Post /wp-admin/post-new.php1,531 ▲523.09 ▲0.06765.08 ▲66.4559.94 ▲4.54
Media Library /wp-admin/upload.php1,400 ▲34.11 ▼0.0897.14 ▼16.1143.73 ▼7.22

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kuzi/kuzi.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

kuzi/kuzi.php Passed 13 tests

The main PHP file in "困ったときの他人任せ" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
選択するのが面倒なときに他人任せで決定するプラグイン。

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
No dangerous file extensions were detected323 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript243166
PHP2201584
CSS11073

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin