77% wp-notification

Code Review | WP-Notification

WordPress plugin WP-Notification scored77%from 54 tests.

About plugin

  • Plugin page: wp-notification
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 29, 2017
  • Latest release: Dec 17, 2017
  • Number of updates: 8
  • Update frequency: every 29.1 days
  • Top authors: tomek00 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /788 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.19MB] [CPU: ▼8.03ms] Passed 4 tests

An overview of server-side resources used by WP-Notification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1845.69 ▼2.01
Dashboard /wp-admin3.49 ▲0.1949.89 ▼2.38
Posts /wp-admin/edit.php3.55 ▲0.1948.17 ▼5.71
Add New Post /wp-admin/post-new.php6.08 ▲0.1985.14 ▼22.02
Media Library /wp-admin/upload.php3.42 ▲0.1937.47 ▲0.27
WP-Notification /wp-admin/themes.php?page=wp_notification_settings3.3634.59

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 37 new options
New WordPress options
editor_notices_location
contributor_notices_notification_type
author_notices_notification_type
widget_theysaidso_widget
administrator_notices_notification_type
administrator_notices_hide
custom_notices_admin_bar
editor_notices_text
contributor_notices_location
contributor_notices_hide
...

Browser metrics Passed 4 tests

A check of browser resources used by WP-Notification
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.34 ▲0.081.83 ▲0.0844.05 ▼0.79
Dashboard /wp-admin2,204 ▲305.53 ▼0.0586.81 ▼7.2238.29 ▼4.83
Posts /wp-admin/edit.php2,115 ▲121.99 ▼0.0134.83 ▼6.7833.04 ▼4.99
Add New Post /wp-admin/post-new.php1,533 ▲723.62 ▲0.56621.75 ▼41.6154.35 ▲6.00
Media Library /wp-admin/upload.php1,418 ▲214.17 ▼0.0096.31 ▼9.5143.63 ▲0.14
WP-Notification /wp-admin/themes.php?page=wp_notification_settings1,7726.50133.0270.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/themes.php?page=wp_notification_settings
    • > Notice in wp-content/plugins/wp-notification/wp-notification.php+113
    Undefined index: settings-updated

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-notification/wp-notification.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 75% 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:
  • Screenshots: A description for screenshot #0 is missing in wp-notification/assets to your readme.txt
  • Screenshots: Add an image for screenshot #1 (screenshot-1.png)
  • Tags: There are too many tags (19 tag instead of maximum 10)
  • Contributors: Contributors not specified
The official readme.txt might help

wp-notification/wp-notification.php Passed 13 tests

This is the main PHP file of "WP-Notification" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Show custom notifications on the dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin661 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11710530
PO File158136131

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions15
▷ Named functions15100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png17.27KB9.38KB▼ 45.65%