68% notificationx

Code Review | NotificationX - Best FOMO, Social Proof, WooCommerce Sales Popup & Notification Bar Plugin With Elementor

WordPress plugin NotificationX - Best FOMO, Social Proof, WooCommerce Sales Popup & Notification Bar Plugin With Elementor scored68%from 54 tests.

About plugin

  • Plugin page: notificationx
  • Plugin version: 2.7.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 19, 2019
  • Latest release: Nov 23, 2023
  • Number of updates: 161
  • Update frequency: every 11.1 days
  • Top authors: re_enter_rupok (34.16%)wpdevteam (29.19%)Asif2BD (29.19%)priyomukul (9.32%)

Code review

54 tests

User reviews

167 reviews

Install metrics

30,000+ active /935,232 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.86MB] [CPU: ▲35.01ms] 75% from 4 tests

Analyzing server-side resources used by NotificationX - Best FOMO, Social Proof, WooCommerce Sales Popup & Notification Bar Plugin With Elementor
Please take the time to fix the following items
  • RAM: The total memory usage must be kept under 10MB (currently 10.01MB on /wp-admin/admin.php?page=nx-analytics)
PageMemory (MB)CPU Time (ms)
Home /8.37 ▲4.9071.50 ▲30.74
Dashboard /wp-admin8.28 ▲4.9780.85 ▲28.40
Posts /wp-admin/edit.php8.21 ▲4.8585.34 ▲39.69
Add New Post /wp-admin/post-new.php10.73 ▲4.83138.62 ▲41.21
Media Library /wp-admin/upload.php8.08 ▲4.8585.80 ▲49.90
All NotificationX /wp-admin/admin.php?page=nx-admin10.0185.80
Add New /wp-admin/admin.php?page=nx-edit10.0187.16
Quick Builder /wp-admin/admin.php?page=nx-builder10.0188.10
Settings /wp-admin/admin.php?page=nx-settings10.0182.49
Analytics /wp-admin/admin.php?page=nx-analytics10.0181.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 483 new files
Database: 3 new tables, 9 new options
New tables
wp_nx_entries
wp_nx_stats
wp_nx_posts
New WordPress options
widget_recent-posts
nx_db_version
widget_theysaidso_widget
widget_recent-comments
nx_free_version
theysaidso_admin_options
notificationx_2x_upgraded
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for NotificationX - Best FOMO, Social Proof, WooCommerce Sales Popup & Notification Bar Plugin With Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲18614.34 ▲0.171.71 ▲0.1336.84 ▼8.62
Dashboard /wp-admin2,429 ▲2495.60 ▼0.0598.17 ▼3.0695.15 ▲42.45
Posts /wp-admin/edit.php2,242 ▲1422.13 ▲0.1739.71 ▼0.5038.26 ▲6.52
Add New Post /wp-admin/post-new.php6,414 ▲4,88829.19 ▲5.97979.89 ▲323.6173.50 ▲22.41
Media Library /wp-admin/upload.php1,542 ▲1424.21 ▲0.0499.46 ▼5.6270.01 ▲23.17
All NotificationX /wp-admin/admin.php?page=nx-admin1,42213.85408.7665.72
Add New /wp-admin/admin.php?page=nx-edit1,76211.89439.48129.48
Quick Builder /wp-admin/admin.php?page=nx-builder1,87114.26328.40120.50
Settings /wp-admin/admin.php?page=nx-settings1,99116.25240.7588.19
Analytics /wp-admin/admin.php?page=nx-analytics1,25712.22131.26101.48

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
  • Zombie tables were found after uninstall: 3 tables
    • wp_nx_posts
    • wp_nx_stats
    • wp_nx_entries
  • Zombie WordPress options detected upon uninstall: 9 options
    • theysaidso_admin_options
    • notificationx_2x_upgraded
    • widget_recent-comments
    • nx_db_version
    • db_upgraded
    • can_compress_scripts
    • nx_free_version
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 99× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Trait 'NotificationX\\GetInstance' not found in wp-content/plugins/notificationx/includes/ThirdParty/WPML.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'NotificationX\\Extensions\\Extension' not found in wp-content/plugins/notificationx/includes/Extensions/Zapier/ZapierEmailSubscription.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'NotificationX\\Extensions\\Extension' not found in wp-content/plugins/notificationx/includes/Extensions/Zapier/ZapierConversions.php:17
    • > PHP Fatal error
      Trait 'NotificationX\\GetInstance' not found in wp-content/plugins/notificationx/includes/Features/ShortcodeInline.php on line 14
    • > PHP Fatal error
      Trait 'NotificationX\\GetInstance' not found in wp-content/plugins/notificationx/includes/Core/PostType.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'NotificationX\\Extensions\\Extension' not found in wp-content/plugins/notificationx/includes/Extensions/WPF/WPForms.php:22
    • > PHP Fatal error
      Trait 'NotificationX\\GetInstance' not found in wp-content/plugins/notificationx/includes/Types/TypesFactory.php on line 15
    • > PHP Fatal error
      Trait 'NotificationX\\GetInstance' not found in wp-content/plugins/notificationx/includes/Features/Inline.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'NotificationX\\Extensions\\Extension' not found in wp-content/plugins/notificationx/includes/Extensions/Google/YouTube.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'NotificationX\\Types\\Types' not found in wp-content/plugins/notificationx/includes/Types/Reviews.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=nx-analytics
    • > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
    wp.date.__experimentalGetSettings is deprecated since version 6.1. Please use wp.date.getSettings instead.
    • > GET request to /wp-admin/admin.php?page=nx-edit
    • > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
    `position` prop in wp.components.Dropdown is deprecated since version 6.2. Please use `popoverProps.placement` prop instead. Note: Note that the `position` prop will override any values passed through the `popoverProps.placement` prop.

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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 30 tag instead of maximum 10
The official readme.txt is a good inspiration

notificationx/notificationx.php Passed 13 tests

The primary PHP file in "NotificationX - Best FOMO, Social Proof, WooCommerce Sales Popup & Notification Bar Plugin With Elementor" version 2.7.9 is used by WordPress to initiate all plugin functionality
115 characters long description:
Social Proof & Recent Sales Popup, Comment Notification, Subscription Notification, Notification Bar and many more.

Code Analysis 97% from 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 detected24,736 lines of code in 322 files:
LanguageFilesBlank linesComment linesLines of code
PHP1403,5676,94922,640
JSON6001,269
JavaScript1453018361
CSS82216311
SVG2211141
XML12014

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 152)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity24.77
▷ Minimum class complexity1.00
▷ Maximum class complexity308.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity152.00
Code structure
Namespaces43
Interfaces0
Traits6
Classes121
▷ Abstract classes32.48%
▷ Concrete classes11897.52%
▷ Final classes21.69%
Methods1,096
▷ Static methods16014.60%
▷ Public methods1,02793.70%
▷ Protected methods353.19%
▷ Private methods343.10%
Functions31
▷ Named functions412.90%
▷ Anonymous functions2787.10%
Constants28
▷ Global constants1657.14%
▷ Class constants1242.86%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
100 compressed PNG files occupy 1.36MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/public/image/reports/youtube.png0.34KB0.35KB0.00%
assets/admin/images/extensions/sources/wistia.png8.80KB10.55KB0.00%
assets/admin/images/extensions/sources/freemius.png3.10KB3.21KB0.00%
assets/admin/images/extensions/themes/elearning/elearning-theme-5.png5.64KB6.22KB0.00%
assets/admin/images/usa.png56.27KB21.31KB▼ 62.13%