79% kboard-widget

Code Review | KBoard 위젯 - 워드프레스 게시판

WordPress plugin KBoard 위젯 - 워드프레스 게시판 scored79%from 54 tests.

About plugin

  • Plugin page: kboard-widget
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.2
  • WordPress version: 6.3.1
  • First release: Oct 3, 2017
  • Latest release: Dec 2, 2021
  • Number of updates: 22
  • Update frequency: every 69.2 days
  • Top authors: cosmosfarm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /28,047 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.50ms] Passed 4 tests

This is a short check of server-side resources used by KBoard 위젯 - 워드프레스 게시판
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.89 ▲1.88
Dashboard /wp-admin3.31 ▲0.0150.52 ▼1.26
Posts /wp-admin/edit.php3.36 ▲0.0051.99 ▲0.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.22 ▼10.78
Media Library /wp-admin/upload.php3.23 ▲0.0039.38 ▲2.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

KBoard 위젯 - 워드프레스 게시판: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.72 ▲0.561.77 ▼0.0143.33 ▼5.06
Dashboard /wp-admin2,204 ▲245.62 ▼0.0392.74 ▲3.4545.71 ▲1.61
Posts /wp-admin/edit.php2,109 ▲92.01 ▲0.0239.54 ▲3.2443.43 ▲7.52
Add New Post /wp-admin/post-new.php1,532 ▲423.33 ▲0.29682.09 ▲46.3874.34 ▲25.83
Media Library /wp-admin/upload.php1,406 ▲64.19 ▲0.0095.71 ▼8.5647.56 ▲4.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/kboard-widget/skin/default/list.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/kboard-widget/admin/setting.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kboard-widget/class/KBoardWidget.class.php:7
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/kboard-widget/skin/default/list.php on line 13
    • > PHP Notice
      Undefined variable: tab_sep in wp-content/plugins/kboard-widget/skin/default/list.php on line 4
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/kboard-widget/skin/default/list.php on line 4
    • > PHP Notice
      Undefined variable: tab_sep in wp-content/plugins/kboard-widget/skin/default/list.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: widget, board, kboard, cosmosfarm

kboard-widget/kboard-widget.php Passed 13 tests

"KBoard 위젯 - 워드프레스 게시판" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
최다 사용자 무료 워드프레스 게시판 KBoard 위젯 입니다.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin539 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP65132341
JavaScript213695
PO File235969875
CSS24628

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity26.00
▷ Minimum class complexity23.00
▷ Maximum class complexity29.00
Average method complexity11.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
skin/default/images/icon-lock.png0.52KB0.46KB▼ 12.52%