74% ultimate-push-notifications

Code Review | Ultimate Push Notifications ( Mobile / Desktop ), Receive Notification From WooCommerce, BuddyPress, WordPress Default Events & Many More

WordPress plugin Ultimate Push Notifications ( Mobile / Desktop ), Receive Notification From WooCommerce, BuddyPress, WordPress Default Events & Many More scored74%from 54 tests.

About plugin

  • Plugin page: ultimate-push-not...
  • Plugin version: 1.1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 19, 2020
  • Latest release: Sep 8, 2023
  • Number of updates: 38
  • Update frequency: every 29.3 days
  • Top authors: m.tuhin (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,499 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 gracefully, with no errors

Server metrics [RAM: ▲0.35MB] [CPU: ▲3.90ms] Passed 4 tests

A check of server-side resources used by Ultimate Push Notifications ( Mobile / Desktop ), Receive Notification From WooCommerce, BuddyPress, WordPress Default Events & Many More
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3845.76 ▲5.44
Dashboard /wp-admin3.68 ▲0.3749.83 ▼0.06
Posts /wp-admin/edit.php3.74 ▲0.3953.71 ▲6.57
Add New Post /wp-admin/post-new.php6.22 ▲0.3398.68 ▲3.66
Media Library /wp-admin/upload.php3.54 ▲0.3140.35 ▲7.03
Set Notifications /wp-admin/admin.php?page=cs-upn-set-notifications3.8340.08
Register My Device /wp-admin/admin.php?page=cs-upn-register-my-device3.6642.94
All Registered Devices /wp-admin/admin.php?page=cs-upn-all-registered-devices3.6335.06
App Config /wp-admin/admin.php?page=cs-upn-app-configuration3.6536.01

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 62 new files
Database: 2 new tables, 9 new options
New tables
wp_upn_notifications
wp_upn_user_devices
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
upn_plugin_version
widget_recent-comments
widget_recent-posts
upn_plugin_install_date
db_upgraded
upn_db_version

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Push Notifications ( Mobile / Desktop ), Receive Notification From WooCommerce, BuddyPress, WordPress Default Events & Many More
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲5814.26 ▲0.101.63 ▼0.7442.29 ▼4.43
Dashboard /wp-admin2,235 ▲585.62 ▼0.0386.53 ▼5.7986.14 ▲44.44
Posts /wp-admin/edit.php2,156 ▲562.03 ▲0.0137.68 ▲2.4235.84 ▼2.67
Add New Post /wp-admin/post-new.php1,582 ▲5617.92 ▼5.16681.78 ▼3.1257.00 ▼12.94
Media Library /wp-admin/upload.php1,455 ▲554.17 ▼0.04102.38 ▼0.0081.84 ▲37.68
Set Notifications /wp-admin/admin.php?page=cs-upn-set-notifications1,3641.9327.4047.64
Register My Device /wp-admin/admin.php?page=cs-upn-register-my-device1,0261.9126.2433.34
All Registered Devices /wp-admin/admin.php?page=cs-upn-all-registered-devices9971.8023.3844.33
App Config /wp-admin/admin.php?page=cs-upn-app-configuration1,0291.9422.8847.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_upn_user_devices
    • wp_upn_notifications
  • The uninstall procedure has failed, leaving 9 options in the database
    • upn_plugin_install_date
    • widget_recent-comments
    • upn_db_version
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • upn_plugin_version

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=cs-upn-all-registered-devices
    • > Notice in wp-content/plugins/ultimate-push-notifications/core/admin/options/pages/AllRegisteredDevices.php+68
    Undefined index: well

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 uses markdown syntax to describe your plugin to the world
8 plugin tags: woocommerce, buddypress, push notification, cloud push notification, dokan...

ultimate-push-notifications/ultimate-push-notifications.php 92% from 13 tests

The main file in "Ultimate Push Notifications ( Mobile / Desktop ), Receive Notification From WooCommerce, BuddyPress, WordPress Default Events & Many More" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 189 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected17,168 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
JSON40012,808
PHP391,0061,4894,241
JavaScript103272
CSS41347

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.89
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces14
Interfaces0
Traits0
Classes35
▷ Abstract classes00.00%
▷ Concrete classes35100.00%
▷ Final classes00.00%
Methods209
▷ Static methods6631.58%
▷ Public methods16377.99%
▷ Protected methods00.00%
▷ Private methods4622.01%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
6 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-order-status.png3.99KB2.23KB▼ 44.03%
assets/img/icon-product-added-to-cart.png4.21KB2.37KB▼ 43.72%
assets/img/icon-push.png1.83KB1.97KB0.00%
assets/img/icon-24x24.png1.26KB1.02KB▼ 19.01%
assets/img/icon-new-user.png1.01KB1.01KB0.00%