68% elite-notification

Code Review | Elite Notification - Sales Popup, Social Proof, FOMO & WooCommerce Notification

WordPress plugin Elite Notification - Sales Popup, Social Proof, FOMO & WooCommerce Notification scored68%from 54 tests.

About plugin

  • Plugin page: elite-notification
  • Plugin version: 1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Apr 28, 2021
  • Latest release: Apr 11, 2023
  • Number of updates: 42
  • Update frequency: every 17.1 days
  • Top authors: appsbd (66.67%)sarwarcse (35.71%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active /2,442 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.68MB] [CPU: ▲32.65ms] Passed 4 tests

This is a short check of server-side resources used by Elite Notification - Sales Popup, Social Proof, FOMO & WooCommerce Notification
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.19 ▲1.73105.22 ▲65.49
Dashboard /wp-admin5.01 ▲1.6691.70 ▲28.99
Posts /wp-admin/edit.php5.12 ▲1.7696.93 ▲49.46
Add New Post /wp-admin/post-new.php7.61 ▲1.72131.48 ▲33.62
Media Library /wp-admin/upload.php4.85 ▲1.6153.71 ▲18.54

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 298 new files
Database: 1 new table, 9 new options
New tables
wp_apbd_dummy_notification
New WordPress options
_appsbd_slnf_sulog
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
apbd_snlf_nt
widget_recent-posts
can_compress_scripts
db_upgraded
elite-notification_o_APBD_notification_source

Browser metrics Passed 4 tests

An overview of browser requirements for Elite Notification - Sales Popup, Social Proof, FOMO & WooCommerce Notification
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲17913.42 ▼0.989.60 ▲7.9437.13 ▼3.63
Dashboard /wp-admin2,222 ▲425.61 ▼0.0481.89 ▼4.7839.86 ▼3.62
Posts /wp-admin/edit.php2,127 ▲302.01 ▼0.0136.09 ▼1.1735.69 ▲2.39
Add New Post /wp-admin/post-new.php1,552 ▲2422.26 ▼0.97597.26 ▼61.3960.02 ▲3.75
Media Library /wp-admin/upload.php1,430 ▲274.17 ▼0.0297.85 ▲3.4644.77 ▼1.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_apbd_dummy_notification
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-comments
    • elite-notification_o_APBD_notification_source
    • db_upgraded
    • widget_recent-posts
    • apbd_snlf_nt
    • can_compress_scripts
    • widget_theysaidso_widget
    • _appsbd_slnf_sulog
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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 items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/elite-notification/views/apbd_notification_setting/template.php
  • 35× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'APBD_notification_source_base' not found in wp-content/plugins/elite-notification/libs/APBD_notification_easy_digital_downloads.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function APBD_LoadCore() in wp-content/plugins/elite-notification/core/AppsBDModel.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'AppsBDLiteModule' not found in wp-content/plugins/elite-notification/modules/APBD_notification_source.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'APBD_notification_source_base' not found in wp-content/plugins/elite-notification/libs/APBD_notification_envato_source.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'jQGrid' not found in wp-content/plugins/elite-notification/views/apbd_dummy_notification/main.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'APBD_notification_source_base' not found in wp-content/plugins/elite-notification/libs/APBD_notification_elite_licenser_source.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/elite-notification/views/apbd_notification_source/fastspring_web_url.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function APBD_LoadCore() in wp-content/plugins/elite-notification/core/AppsBDKarnelLiteV1.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Apbd_sale_notification_dashboard' not found in wp-content/plugins/elite-notification/views/apbd_sale_notification_dashboard/main.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elite-notification/core/helper_lite.php:450

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: fomo, notification popup, sales notification, woocommerce notification, social proof

elite-notification/elite-notification.php 92% from 13 tests

The main PHP file in "Elite Notification - Sales Popup, Social Proof, FOMO & WooCommerce Notification" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Success! There were no dangerous files found in this plugin101,146 lines of code in 232 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript696,35613,34640,705
CSS475,73844928,995
PHP551,30888910,520
Sass261,2013510,368
SVG333110,101
LESS22817457

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity31.15
▷ Minimum class complexity1.00
▷ Maximum class complexity362.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes40
▷ Abstract classes410.00%
▷ Concrete classes3690.00%
▷ Final classes00.00%
Methods639
▷ Static methods7010.95%
▷ Public methods60995.31%
▷ Protected methods223.44%
▷ Private methods81.25%
Functions94
▷ Named functions7882.98%
▷ Anonymous functions1617.02%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 0.25MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
uilib/grid/css/images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%
uilib/grid/css/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
images/user_img.png5.43KB2.78KB▼ 48.80%
uilib/grid/css/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
uilib/grid/css/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%