73% kento-fancy-comments

Code Review | Kento Fancy Comments

WordPress plugin Kento Fancy Comments scored73%from 54 tests.

About plugin

  • Plugin page: kento-fancy-comments
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2014
  • Latest release: Jun 9, 2015
  • Number of updates: 7
  • Update frequency: every 72.1 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /899 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.94MB] [CPU: ▼56.62ms] Passed 4 tests

A check of server-side resources used by Kento Fancy Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.20 ▼33.74
Dashboard /wp-admin2.08 ▼1.265.03 ▼55.17
Posts /wp-admin/edit.php2.08 ▼1.287.00 ▼42.81
Add New Post /wp-admin/post-new.php2.08 ▼3.816.11 ▼94.76
Media Library /wp-admin/upload.php2.08 ▼1.155.41 ▼31.94

Server storage [IO: ▲0.25MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Kento Fancy Comments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.62 ▼1.005.11 ▲3.5640.78 ▲0.79
Dashboard /wp-admin2,223 ▲405.85 ▼0.01104.61 ▼4.0239.11 ▼7.17
Posts /wp-admin/edit.php2,115 ▲292.02 ▲0.0340.80 ▲3.7833.82 ▼2.77
Add New Post /wp-admin/post-new.php1,534 ▲1523.17 ▲0.11666.14 ▼11.9255.77 ▼8.01
Media Library /wp-admin/upload.php1,405 ▲174.15 ▼0.12101.64 ▲6.8141.92 ▲0.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined index: kfc_hidden in wp-content/plugins/kento-fancy-comments/fancy-comment-admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/kento-fancy-comments/index.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kento-fancy-comments/fancy-comment-admin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Get CSS Class.), #2 (Fix position for mouse hover.), #3 (Admin Settings.), #4 (Plugin Preview.)
  • Donate link: Invalid url: ""
You can look at the official readme.txt

kento-fancy-comments/index.php 92% from 13 tests

"Kento Fancy Comments" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kento-fancy-comments.php" instead of "index.php")

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 detected214 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2551394
CSS117482
JavaScript124038

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
4 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png62.10KB23.99KB▼ 61.37%
screenshot-3.png46.20KB17.28KB▼ 62.59%
screenshot-4.png92.77KB35.82KB▼ 61.39%
screenshot-2.png46.66KB21.58KB▼ 53.74%