79% update-notification

Code Review | Update Notification

WordPress plugin Update Notification scored79%from 54 tests.

About plugin

  • Plugin page: update-notification
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.1-6.0
  • WordPress version: 6.3.1
  • First release: Apr 8, 2019
  • Latest release: May 31, 2022
  • Number of updates: 29
  • Update frequency: every 39.7 days
  • Top authors: grooveline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,143 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.32ms] Passed 4 tests

An overview of server-side resources used by Update Notification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1240.17 ▼10.80
Dashboard /wp-admin3.42 ▲0.1244.20 ▼5.12
Posts /wp-admin/edit.php3.47 ▲0.1247.13 ▼2.05
Add New Post /wp-admin/post-new.php6.00 ▲0.12107.15 ▲16.86
Media Library /wp-admin/upload.php3.34 ▲0.1235.71 ▲0.70
更新通知設定 /wp-admin/options-general.php?page=update-notification/inx-update-notification.php3.3132.55

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: 1 new table, 7 new options
New tables
wp_inx_notification
New WordPress options
db_upgraded
inx_notification_version
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Update Notification
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.34 ▼0.961.98 ▲0.2041.53 ▼6.99
Dashboard /wp-admin2,210 ▲254.79 ▼1.08108.55 ▲6.1249.98 ▲8.16
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0739.65 ▲1.1740.79 ▲6.48
Add New Post /wp-admin/post-new.php1,545 ▲1618.31 ▼0.24602.71 ▼7.4551.93 ▼11.10
Media Library /wp-admin/upload.php1,392 ▲14.25 ▲0.0396.60 ▼1.9146.27 ▲4.47
更新通知設定 /wp-admin/options-general.php?page=update-notification/inx-update-notification.php1,0992.0423.7989.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_inx_notification
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • inx_notification_version
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: notification, update, guilded, google, slack...

update-notification/inx-update-notification.php 77% from 13 tests

The main PHP script in "Update Notification" version 1.2.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("update-notification.php" instead of "inx-update-notification.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin916 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111360916

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity75.00
▷ Minimum class complexity75.00
▷ Maximum class complexity75.00
Average method complexity15.80
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin