10% kento-notify

Code Review | Kento Notify

WordPress plugin Kento Notify scored10%from 54 tests.

About plugin

  • Plugin page: kento-notify
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2013
  • Latest release: Jun 9, 2015
  • Number of updates: 7
  • Update frequency: every 76.1 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,900 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-includes/plugin.php+1001
    Undefined offset: 0

Server metrics [RAM: ▼1.90MB] [CPU: ▼55.00ms] Passed 4 tests

A check of server-side resources used by Kento Notify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.70 ▼37.54
Dashboard /wp-admin2.11 ▼1.196.53 ▼46.10
Posts /wp-admin/edit.php2.12 ▼1.256.45 ▼43.90
Add New Post /wp-admin/post-new.php2.11 ▼3.786.41 ▼92.46
Media Library /wp-admin/upload.php2.11 ▼1.126.61 ▼30.05

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 6 new options
New tables
wp_kento_notify
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Kento Notify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17113.96 ▼0.399.93 ▲8.0041.97 ▼3.39
Dashboard /wp-admin2,208 ▲285.61 ▼0.0091.05 ▲0.4942.96 ▼1.35
Posts /wp-admin/edit.php2,116 ▲162.18 ▲0.1836.70 ▼0.2032.61 ▼3.76
Add New Post /wp-admin/post-new.php1,539 ▲1323.04 ▲0.04644.85 ▼13.6057.09 ▲8.32
Media Library /wp-admin/upload.php1,413 ▲134.23 ▲0.05100.41 ▼39.1847.39 ▼11.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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 inkthemes handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie tables were found after uninstall: 1 table
    • wp_kento_notify
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kento-notify/index.php:18

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 90% 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
Please fix the following attributes:
  • Donate link: Invalid URI ("")
  • Screenshots: Add images for these screenshots: #1 (Comments on hover.), #2 (Notification bubble.), #3 (Zero notification.), #4 (Unread Marker.), #5 (Scroll Notification.), #6 (Read Marker.)
The official readme.txt is a good inspiration

kento-notify/index.php 92% from 13 tests

"Kento Notify" 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: Please rename the main PHP file in this plugin to the plugin slug ("kento-notify.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
Everything looks great! No dangerous files found in this plugin1,069 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript317749631
CSS2661271
PHP116013167

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions9
▷ Named functions9100.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
9 PNG files occupy 0.39MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png64.89KB25.92KB▼ 60.05%
css/comments.png3.48KB0.82KB▼ 76.40%
screenshot-1.png76.62KB26.97KB▼ 64.81%
screenshot-2.png73.32KB25.84KB▼ 64.76%
screenshot-5.png60.56KB23.49KB▼ 61.21%