83% live-comment-notification-toaster

Code Review | Live Comment Notification Toaster

WordPress plugin Live Comment Notification Toaster scored83%from 54 tests.

About plugin

  • Plugin page: live-comment-noti...
  • Plugin version: 4.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.5
  • WordPress version: 6.3.1
  • First release: Jan 13, 2015
  • Latest release: Sep 9, 2020
  • Number of updates: 29
  • Update frequency: every 71.3 days
  • Top authors: biztechc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,436 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.03MB] [CPU: ▼7.53ms] Passed 4 tests

A check of server-side resources used by Live Comment Notification Toaster
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.14 ▼3.05
Dashboard /wp-admin3.33 ▲0.0347.60 ▼4.20
Posts /wp-admin/edit.php3.38 ▲0.0347.67 ▼6.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.38 ▼16.19
Media Library /wp-admin/upload.php3.26 ▲0.0339.18 ▲1.16

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Live Comment Notification Toaster: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.68 ▲0.351.83 ▼0.1043.72 ▼0.72
Dashboard /wp-admin2,214 ▲375.65 ▲0.0283.53 ▼15.3440.40 ▼4.88
Posts /wp-admin/edit.php2,116 ▲132.01 ▼0.1234.49 ▼4.5837.15 ▲3.71
Add New Post /wp-admin/post-new.php1,539 ▲823.08 ▼0.07679.70 ▲9.3366.44 ▲15.59
Media Library /wp-admin/upload.php1,416 ▲194.14 ▼0.10120.15 ▲5.8749.57 ▲1.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× 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/live-comment-notification-toaster/live-comment-notification.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/live-comment-notification-toaster/notification_settings.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
Please take inspiration from this readme.txt

live-comment-notification-toaster/live-comment-notification.php 85% from 13 tests

The primary PHP file in "Live Comment Notification Toaster" version 4.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("live-comment-notification-toaster.php" instead of "live-comment-notification.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin752 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript26316386
PHP22718196
CSS11623170

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png82.24KB37.99KB▼ 53.80%
screenshot-2.png52.39KB19.81KB▼ 62.19%
screenshot-1.png54.49KB26.52KB▼ 51.34%