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 scored 68% from 54 tests.

About plugin

  • Plugin page: elite-notification
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Apr 28, 2021
  • Latest release: Nov 15, 2021
  • Number of updates: 29
  • Update frequency: every 7.2 days
  • Top authors: appsbd (89.66%)sarwarcse (13.79%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 503 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.69MB] [CPU: ▼98.75ms] 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 /4.53 ▲1.69100.71 ▲65.60
Dashboard /wp-admin4.75 ▲1.70105.91 ▲61.22
Posts /wp-admin/edit.php4.87 ▲1.76107.34 ▲63.08
Add New Post /wp-admin/post-new.php7.10 ▲1.67155.65 ▼537.19
Media Library /wp-admin/upload.php4.69 ▲1.6857.43 ▲17.89

Server storage [IO: ▲10.58MB] [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, 3 new options
New tables
wp_apbd_dummy_notification
New WordPress options
_appsbd_slnf_sulog
apbd_snlf_nt
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 /3,845 ▲24916.28 ▲0.3114.44 ▲2.2847.70 ▲1.65
Dashboard /wp-admin3,001 ▲705.91 ▼0.21163.28 ▲17.23108.63 ▼5.93
Posts /wp-admin/edit.php2,770 ▲312.71 ▼0.0179.21 ▲11.4092.64 ▼1.52
Add New Post /wp-admin/post-new.php1,639 ▲5821.30 ▲3.37292.95 ▼175.65105.25 ▼20.53
Media Library /wp-admin/upload.php1,838 ▲225.03 ▲0.02162.26 ▼27.40116.26 ▼10.36

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: 3 options
    • _appsbd_slnf_sulog
    • apbd_snlf_nt
    • elite-notification_o_APBD_notification_source

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: Using $this when not in object context in wp-content/plugins/elite-notification/views/apbd_sale_video_tutorial/main.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'APBD_notification_source_base' not found in wp-content/plugins/elite-notification/libs/APBD_notification_wordpress_download_stats.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 'APBD_notification_source_base' not found in wp-content/plugins/elite-notification/libs/APBD_notification_woocommerce_source.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Mapbd_dummy_notification' not found in wp-content/plugins/elite-notification/views/apbd_dummy_notification/add.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'APBD_notification_source_base' not found in wp-content/plugins/elite-notification/libs/APBD_notification_fastspring.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'AppsBDModel' not found in wp-content/plugins/elite-notification/models/database/Mapbd_dummy_notification.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function APBD_LoadCore() in wp-content/plugins/elite-notification/appcore/APBD_Sales_Notification.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function APBD_LoadCore() in wp-content/plugins/elite-notification/core/AppsBDKarnelLiteV1.php:7
    • > PHP Notice
      Undefined variable: output in wp-content/plugins/elite-notification/template/main.php on line 2

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: sales notification, woocommerce notification, notification popup, social proof, fomo

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.1 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,133 lines of code in 232 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript696,35613,34640,705
CSS475,73644928,993
PHP551,30888910,509
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.05
▷ 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 methods60895.15%
▷ Protected methods223.44%
▷ Private methods91.41%
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.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/positions/lt.png2.46KB1.38KB▼ 44.10%
images/notification-styles/apbd-snf-style4.png6.94KB4.21KB▼ 39.40%
images/positions/rt.png2.45KB1.40KB▼ 42.96%
uilib/grid/css/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
uilib/grid/css/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%