10% wiser-notify

Code Review | WiserNotify Social Proof & FOMO Notification, WooCommerce Sales Popup, Review Popups, Notification Bars & Urgency Widgets

WordPress plugin WiserNotify Social Proof & FOMO Notification, WooCommerce Sales Popup, Review Popups, Notification Bars & Urgency Widgets scored10%from 54 tests.

About plugin

  • Plugin page: wiser-notify
  • Plugin version: 2.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 26, 2019
  • Latest release: Sep 8, 2023
  • Number of updates: 68
  • Update frequency: every 19.9 days
  • Top authors: wisernotify (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

1,000+ active /11,281 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wiser-notify/Wiser.php+606
    Undefined index: HTTP_X_FORWARDED

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.80ms] Passed 4 tests

A check of server-side resources used by WiserNotify Social Proof & FOMO Notification, WooCommerce Sales Popup, Review Popups, Notification Bars & Urgency Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.66 ▲3.03
Dashboard /wp-admin3.33 ▲0.0247.36 ▲2.29
Posts /wp-admin/edit.php3.38 ▲0.0248.89 ▲2.89
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.50 ▼5.62
Media Library /wp-admin/upload.php3.25 ▲0.0232.85 ▼2.76

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WiserNotify Social Proof & FOMO Notification, WooCommerce Sales Popup, Review Popups, Notification Bars & Urgency Widgets: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲19313.62 ▼0.765.96 ▲4.2948.00 ▲7.83
Dashboard /wp-admin2,215 ▲305.86 ▼0.19100.26 ▼3.29102.89 ▲61.44
Posts /wp-admin/edit.php2,113 ▲242.03 ▼0.0335.20 ▼2.6352.26 ▲20.43
Add New Post /wp-admin/post-new.php1,691 ▲15922.33 ▼0.73675.21 ▲15.4752.37 ▼0.79
Media Library /wp-admin/upload.php1,415 ▲244.23 ▲0.06103.31 ▲7.3788.86 ▲42.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wiser-notify/Wiser.php+606
    Undefined index: HTTP_X_FORWARDED
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wiser-notify/Wiser.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
6 plugin tags: urgency popup, notification, fomo, recent sales, sales popup...

wiser-notify/Wiser.php 85% from 13 tests

"WiserNotify Social Proof & FOMO Notification, WooCommerce Sales Popup, Review Popups, Notification Bars & Urgency Widgets" version 2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 341 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wiser-notify.php" instead of "Wiser.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,125 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP14229719
CSS2724360
JavaScript241246

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wiser-notifly1.png7.02KB4.86KB▼ 30.73%
assets/images/wiser-notifly.png7.10KB3.35KB▼ 52.87%
assets/images/wiser-notifly-favi1.png0.67KB0.62KB▼ 7.16%
assets/images/wiser-notifly-favi.png0.45KB0.36KB▼ 20.13%