74% wp-user-notifier

Code Review | WP User Notifier

WordPress plugin WP User Notifier scored74%from 54 tests.

About plugin

  • Plugin page: wp-user-notifier
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Nov 9, 2015
  • Latest release: Dec 2, 2015
  • Number of updates: 10
  • Update frequency: every 2.3 days
  • Top authors: MLWebDevelopment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /795 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼38.65ms] Passed 4 tests

This is a short check of server-side resources used by WP User Notifier
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.28 ▲1.19
Dashboard /wp-admin3.05 ▼0.2924.84 ▼40.49
Posts /wp-admin/edit.php3.06 ▼0.3028.23 ▼24.45
Add New Post /wp-admin/post-new.php3.05 ▼2.8326.88 ▼79.70
Media Library /wp-admin/upload.php3.06 ▼0.1726.72 ▼9.97
User Notifier /wp-admin/options-general.php?page=wp-user-notifier-settings3.0628.88

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 12 new options
New WordPress options
wp_user_notifier_comment_need_pending
can_compress_scripts
widget_recent-comments
wp_user_notifier
db_upgraded
wp_user_notifier_enabled_cf7
wp_user_notifier_enable
wp_user_notifier_message
widget_recent-posts
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP User Notifier
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.001.77 ▲0.0843.97 ▼0.01
Dashboard /wp-admin2,196 ▲195.56 ▼0.0884.01 ▼11.4639.53 ▼1.26
Posts /wp-admin/edit.php2,086 ▼142.00 ▲0.0235.66 ▼4.8735.98 ▼0.76
Add New Post /wp-admin/post-new.php1,529 ▲323.13 ▲0.32688.36 ▲10.8359.48 ▲7.97
Media Library /wp-admin/upload.php1,404 ▲44.13 ▼0.01114.02 ▲6.4847.54 ▲1.52
User Notifier /wp-admin/options-general.php?page=wp-user-notifier-settings1,6436.88137.9371.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options detected upon uninstall: 12 options
    • theysaidso_admin_options
    • wp_user_notifier_enabled_cf7
    • widget_recent-posts
    • wp_user_notifier_message
    • wp_user_notifier_comment_need_pending
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • wp_user_notifier
    • widget_recent-comments
    • ...

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-user-notifier-settings
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-user-notifier/wp-user-notifier.php Passed 13 tests

"WP User Notifier" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Notify a user about when he sent comment or form via Contact Form 7

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected281 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP395146280
JavaScript1011
CSS1010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods642.86%
▷ Protected methods00.00%
▷ Private methods857.14%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png38.29KB22.45KB▼ 41.36%