10% kento-like-post

Code Review | Kento Like Post

WordPress plugin Kento Like Post scored10%from 54 tests.

About plugin

  • Plugin page: kento-like-post
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: Dec 25, 2013
  • Latest release: Jun 9, 2015
  • Number of updates: 16
  • Update frequency: every 33.3 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,480 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-includes/plugin.php+1001
    Undefined offset: 0

Server metrics [RAM: ▼1.91MB] [CPU: ▼53.13ms] Passed 4 tests

A check of server-side resources used by Kento Like Post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.00 ▼37.36
Dashboard /wp-admin2.10 ▼1.216.05 ▼45.51
Posts /wp-admin/edit.php2.10 ▼1.265.27 ▼47.43
Add New Post /wp-admin/post-new.php2.10 ▼3.795.34 ▼82.22
Media Library /wp-admin/upload.php2.10 ▼1.135.40 ▼32.73

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 6 new options
New tables
wp_kento_like_post_info
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kento Like Post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲12513.51 ▼0.828.56 ▲6.4842.46 ▼1.53
Dashboard /wp-admin2,205 ▲285.59 ▼0.1883.24 ▼20.4235.66 ▼7.73
Posts /wp-admin/edit.php2,107 ▲72.01 ▼0.0238.19 ▲1.9134.19 ▼2.28
Add New Post /wp-admin/post-new.php1,535 ▲922.88 ▼0.09638.20 ▼33.5956.18 ▲3.06
Media Library /wp-admin/upload.php1,401 ▲74.25 ▼0.0099.14 ▼8.7342.89 ▼4.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught 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 kento_like_post_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_kento_like_post_info
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kento-like-post/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Normal View.), #2 (One Like with thumbnail.), #3 (Mouse Hover on unlike.), #4 (Pop-Up login Box.)
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

kento-like-post/index.php 92% from 13 tests

The principal PHP file in "Kento Like Post" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kento-like-post.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin296 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP110214159
CSS120191
JavaScript116046

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.13
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png47.95KB16.74KB▼ 65.10%
screenshot-3.png46.61KB16.65KB▼ 64.27%
screenshot-5.png77.72KB28.40KB▼ 63.46%
screenshot-2.png43.42KB15.50KB▼ 64.31%
css/vote.png3.63KB0.80KB▼ 78.03%