84% hello-kushimoto

Code Review | Hello Kushimoto

WordPress plugin Hello Kushimoto scored84%from 54 tests.

About plugin

  • Plugin page: hello-kushimoto
  • Plugin version: 2.10.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Dec 9, 2016
  • Number of updates: 42
  • Update frequency: every 27.1 days
  • Top authors: Toro_Unit (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /1,732 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.17ms] Passed 4 tests

Analyzing server-side resources used by Hello Kushimoto
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.32 ▼0.25
Dashboard /wp-admin3.37 ▲0.0748.78 ▼1.21
Posts /wp-admin/edit.php3.48 ▲0.1244.64 ▼7.29
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.57 ▼11.92
Media Library /wp-admin/upload.php3.29 ▲0.0640.97 ▲6.34
Hello Kushimoto /wp-admin/options-general.php?page=hello_kushimoto3.2634.47

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Hello Kushimoto
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲22613.19 ▼1.241.93 ▲0.2741.86 ▼7.04
Dashboard /wp-admin2,362 ▲1715.88 ▼0.0099.22 ▼8.8685.05 ▲39.76
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0634.42 ▼2.0847.44 ▲12.59
Add New Post /wp-admin/post-new.php1,594 ▲7522.64 ▼0.68679.44 ▼26.3284.02 ▲32.92
Media Library /wp-admin/upload.php1,399 ▲114.29 ▲0.10104.66 ▲2.2843.90 ▼0.77
Hello Kushimoto /wp-admin/options-general.php?page=hello_kushimoto8342.0227.6649.97

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Hello_Kushimoto_Speaker' not found in wp-content/plugins/hello-kushimoto/src/speaker/concrete/class-louis-armstrong.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Hello_Kushimoto_Random_Speaker' not found in wp-content/plugins/hello-kushimoto/src/speaker/concrete/class-bash-wapuu.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/hello-kushimoto/hello-kushimoto.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Hello_Kushimoto_Speaker' not found in wp-content/plugins/hello-kushimoto/src/speaker/abstract/class-hello-kushimoto-random-speaker.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/hello-kushimoto/src/class-hello-kushimoto-cli.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Hello_Kushimoto_Random_Speaker' not found in wp-content/plugins/hello-kushimoto/src/speaker/concrete/class-miyasan.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


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
4 plugin tags: wctokyo, kushimoto, joke, sample

hello-kushimoto/hello-kushimoto.php 92% from 13 tests

The main PHP script in "Hello Kushimoto" version 2.10.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected688 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PO File24446125

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.80
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.24
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes00.00%
▷ Static methods23.92%
▷ Public methods4282.35%
▷ Protected methods11.96%
▷ Private methods815.69%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png42.98KB11.86KB▼ 72.41%