83% notify-events

Code Review | Notify.Events - Ultimate notifications

WordPress plugin Notify.Events - Ultimate notifications scored83%from 54 tests.

About plugin

  • Plugin page: notify-events
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2.1
  • WordPress version: 6.3.1
  • First release: Sep 16, 2020
  • Latest release: Jun 1, 2023
  • Number of updates: 38
  • Update frequency: every 26.0 days
  • Top authors: notifyevents (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /1,956 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.48MB] [CPU: ▼5.36ms] Passed 4 tests

A check of server-side resources used by Notify.Events - Ultimate notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4242.73 ▲7.10
Dashboard /wp-admin3.81 ▲0.5139.50 ▼5.21
Posts /wp-admin/edit.php3.85 ▲0.4949.33 ▲1.27
Add New Post /wp-admin/post-new.php6.53 ▲0.6472.49 ▼14.55
Media Library /wp-admin/upload.php3.74 ▲0.5234.07 ▼2.95
Notify.Events /wp-admin/options-general.php?page=notify-events3.7932.55

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 102 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Notify.Events - Ultimate notifications: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.72 ▲0.361.98 ▲0.3643.81 ▲0.12
Dashboard /wp-admin2,199 ▲195.65 ▼0.0390.11 ▲4.7644.11 ▲1.45
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0538.38 ▲3.8335.13 ▼2.94
Add New Post /wp-admin/post-new.php1,540 ▲1418.06 ▼4.85586.93 ▼106.2867.00 ▲11.04
Media Library /wp-admin/upload.php1,401 ▲14.11 ▼0.1294.39 ▼19.9640.19 ▼5.85
Notify.Events /wp-admin/options-general.php?page=notify-events8992.0527.6531.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 83× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/notify-events/modules/woocommerce/views/event/order_status_change.php:18
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/notify-events/models/ChannelList.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'notify_events\\models\\Model' not found in wp-content/plugins/notify-events/models/Test.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'notify_events\\modules\\woocommerce\\models\\Event' not found in wp-content/plugins/notify-events/modules/woocommerce/models/events/product/LowStock.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/notify-events/modules/ninja_forms/views/event/form_submit.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/notify-events/views/about/index.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'notify_events\\models\\Event' not found in wp-content/plugins/notify-events/modules/wpforms/models/Event.php:9
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/notify-events/models/ChannelList.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function has_error() on null in wp-content/plugins/notify-events/views/event/form/_select.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'notify_events\\modules\\wordpress\\models\\Event' not found in wp-content/plugins/notify-events/modules/wordpress/models/events/post/PostCustom.php:24

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 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in notify-events/assets to your readme.txt
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

notify-events/notify-events.php 92% from 13 tests

This is the main PHP file of "Notify.Events - Ultimate notifications" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 210 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected5,297 lines of code in 98 files:
LanguageFilesBlank linesComment linesLines of code
PHP971,1851,8585,295
Markdown1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.91
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces23
Interfaces4
Traits0
Classes66
▷ Abstract classes1015.15%
▷ Concrete classes5684.85%
▷ Final classes00.00%
Methods387
▷ Static methods22056.85%
▷ Public methods35792.25%
▷ Protected methods307.75%
▷ Private methods00.00%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants26
▷ Global constants00.00%
▷ Class constants26100.00%
▷ Public constants26100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected