78% pushengage

Code Review | Web Push Notifications by PushEngage: WordPress Push Notifications to Supercharge Your Engagement

WordPress plugin Web Push Notifications by PushEngage: WordPress Push Notifications to Supercharge Your Engagement scored78%from 54 tests.

About plugin

  • Plugin page: pushengage
  • Plugin version: 4.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.5-6.3
  • WordPress version: 6.3.1
  • First release: Jan 9, 2016
  • Latest release: Oct 27, 2023
  • Number of updates: 234
  • Update frequency: every 12.2 days
  • Top authors: PushEngage (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

10,000+ active /166,786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.88ms] Passed 4 tests

Server-side resources used by Web Push Notifications by PushEngage: WordPress Push Notifications to Supercharge Your Engagement
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.24 ▼0.90
Dashboard /wp-admin3.42 ▲0.1145.18 ▼3.09
Posts /wp-admin/edit.php3.46 ▲0.1046.07 ▲0.34
Add New Post /wp-admin/post-new.php5.99 ▲0.1091.84 ▲0.14
Media Library /wp-admin/upload.php3.33 ▲0.1037.17 ▲4.46

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 131 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
pushengage_settings
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Web Push Notifications by PushEngage: WordPress Push Notifications to Supercharge Your Engagement
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,315 ▲55421.78 ▲7.427.12 ▲5.4729.47 ▼10.30
Dashboard /wp-admin2,678 ▲50113.08 ▲7.43350.64 ▲259.5752.12 ▲7.39
Posts /wp-admin/edit.php2,288 ▲1882.15 ▲0.1436.11 ▲1.4937.71 ▲2.63
Add New Post /wp-admin/post-new.php1,645 ▲11922.97 ▼0.56602.79 ▼91.3955.38 ▲1.29
Media Library /wp-admin/upload.php1,588 ▲1884.28 ▼0.04103.90 ▼4.7946.69 ▼0.10
Drip /wp-admin/admin.php?page=pushengage#/automation/drip1,1678.99220.50120.62
Audience /wp-admin/admin.php?page=pushengage#/audience/subscribers1,4429.60263.32104.83
About Us /wp-admin/admin.php?page=pushengage#/about-us1,3749.29219.2387.50
Dashboard /wp-admin/admin.php?page=pushengage#1,3928.75194.40110.20
Analytics /wp-admin/admin.php?page=pushengage#/analytics1,4979.77258.5989.47
Design /wp-admin/admin.php?page=pushengage#/design1,73111.47261.1691.64
Settings /wp-admin/admin.php?page=pushengage#/settings/site-details1,2639.36245.0599.03
Campaigns /wp-admin/admin.php?page=pushengage#/campaigns/notifications1,2199.43232.2281.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please take a closer look at the following
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pushengage/packages/service-worker.js.php
    • > /wp-content/plugins/pushengage/views/dashboard-widget.php
    • > /wp-content/plugins/pushengage/views/wp-admin-bar-menu.php
    • > /wp-content/plugins/pushengage/views/admin.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pushengage/views/site-not-connected.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/pushengage/languages/pushengage.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/pushengage/views/review-notice.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/pushengage/views/service-worker-error.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pushengage/views/post-editor-metabox.php:7

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 40 tag instead of maximum 10
Please take inspiration from this readme.txt

pushengage/main.php 92% from 13 tests

The main PHP script in "Web Push Notifications by PushEngage: WordPress Push Notifications to Supercharge Your Engagement" version 4.0.6 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pushengage.php" instead of "main.php")

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 detected6,607 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
PHP461,9503,6834,678
SVG21101,575
Markdown11270179
CSS311287
JavaScript931546
JSON20042

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity19.66
▷ Minimum class complexity1.00
▷ Maximum class complexity147.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes13.45%
Methods201
▷ Static methods7135.32%
▷ Public methods19597.01%
▷ Protected methods00.00%
▷ Private methods62.99%
Functions10
▷ Named functions110.00%
▷ Anonymous functions990.00%
Constants28
▷ Global constants932.14%
▷ Class constants1967.86%
▷ Public constants19100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.51MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/plugin-om.png47.11KB13.82KB▼ 70.66%
assets/img/plugin-seedprod.png46.64KB15.15KB▼ 67.51%
assets/img/pe-chrome.png3.59KB2.17KB▼ 39.72%
assets/img/phone-preview.png12.67KB5.05KB▼ 60.11%
assets/img/plugin-all-in-one-seo.png7.42KB3.31KB▼ 55.43%