10% wp-kuchikomi

Code Review | WP Kuchikomi

WordPress plugin WP Kuchikomi scored10%from 54 tests.

About plugin

  • Plugin page: wp-kuchikomi
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2016
  • Latest release: Jan 16, 2017
  • Number of updates: 10
  • Update frequency: every 3.4 days
  • Top authors: superside7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /912 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-kuchikomi/inc/widgets/WP_KckmWidget_TopRated.class.php+280
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.48ms] Passed 4 tests

An overview of server-side resources used by WP Kuchikomi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.13 ▼36.08
Dashboard /wp-admin2.05 ▼1.267.07 ▼44.98
Posts /wp-admin/edit.php2.05 ▼1.319.56 ▼38.29
Add New Post /wp-admin/post-new.php2.05 ▼3.845.74 ▼90.55
Media Library /wp-admin/upload.php2.05 ▼1.185.11 ▼27.00
Settings /wp-admin/admin.php?page=wp-kuchikomi2.056.33
Item Setting /wp-admin/admin.php?page=wp-kuchikomi-item2.054.95
Help /wp-admin/admin.php?page=wp-kuchikomi-help2.057.56

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_widget-kuchikomi-recent-ratings
widget_widget-kuchikomi-top-rated
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

WP Kuchikomi: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲11514.48 ▼0.062.29 ▲0.4735.67 ▼8.65
Dashboard /wp-admin2,234 ▲555.87 ▲0.9499.22 ▼13.7071.93 ▲23.61
Posts /wp-admin/edit.php2,138 ▲522.02 ▼0.0439.44 ▲4.6436.21 ▲5.94
Add New Post /wp-admin/post-new.php1,702 ▲17421.97 ▲3.51703.94 ▲99.2664.37 ▲11.19
Media Library /wp-admin/upload.php1,422 ▲314.24 ▲0.01101.86 ▲2.8482.32 ▲38.39
Settings /wp-admin/admin.php?page=wp-kuchikomi9741.9326.6926.12
Item Setting /wp-admin/admin.php?page=wp-kuchikomi-item8841.8325.3123.64
Help /wp-admin/admin.php?page=wp-kuchikomi-help1,0361.8223.7199.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-kuchikomi/inc/widgets/WP_KckmWidget_TopRated.class.php+280
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_widget-kuchikomi-top-rated
    • widget_widget-kuchikomi-recent-ratings
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-kuchikomi-help
    • > Deprecated in wp-content/plugins/wp-kuchikomi/inc/widgets/WP_KckmWidget_RecentRatings.class.php+174
    Function create_function() is deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-kuchikomi
    • > Notice in wp-content/plugins/wp-kuchikomi/inc/admin/WP_KckmAdmin.class.php+233
    Trying to access array offset on value of type bool

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
Please fix the following
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_create_date_visible() in wp-content/plugins/wp-kuchikomi/inc/shortcodes/templates/top_rated_posts_default.php:17
    • > PHP Notice
      Undefined variable: permalink in wp-content/plugins/wp-kuchikomi/inc/shortcodes/templates/top_rated_posts_default.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-kuchikomi/inc/widgets/WP_KckmWidget_TopRated.class.php:6
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/wp-kuchikomi/inc/shortcodes/templates/top_rated_posts_default.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-kuchikomi/inc/widgets/WP_KckmWidget_RecentRatings.class.php:6
    • > PHP Notice
      Undefined variable: rank in wp-content/plugins/wp-kuchikomi/inc/shortcodes/templates/top_rated_posts_default.php on line 13

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

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
You can look at the official readme.txt

wp-kuchikomi/wp-kuchikomi.php Passed 13 tests

The main file in "WP Kuchikomi" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
WordPressに口コミ機能を付与するプラグイン

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
There were no executable files found in this plugin2,274 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP103443841,439
CSS41230706
PO File135084
JavaScript27944
Markdown1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity32.43
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity5.58
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods510.42%
▷ Public methods4797.92%
▷ Protected methods00.00%
▷ Private methods12.08%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png9.39KB3.60KB▼ 61.62%
assets/img/footer_logo.png9.64KB3.02KB▼ 68.70%
assets/img/menu_logo.png0.30KB0.24KB▼ 22.01%
screenshot-1.png24.88KB12.88KB▼ 48.21%