68% indigitall-web-push-notifications

Code Review | IURNY by INDIGITALL – WhatsApp Chat, Web Push Notifications (FREE)

WordPress plugin IURNY by INDIGITALL – WhatsApp Chat, Web Push Notifications (FREE) scored68%from 54 tests.

About plugin

  • Plugin page: indigitall-web-pu...
  • Plugin version: 3.2.4
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 24, 2018
  • Latest release: Nov 8, 2023
  • Number of updates: 100
  • Update frequency: every 18.7 days
  • Top authors: sdkindigitall (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

200+ active /9,700 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.56MB] [CPU: ▲2.98ms] Passed 4 tests

Server-side resources used by IURNY by INDIGITALL – WhatsApp Chat, Web Push Notifications (FREE)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5444.06 ▲1.66
Dashboard /wp-admin3.87 ▲0.5751.76 ▲3.51
Posts /wp-admin/edit.php3.93 ▲0.5758.81 ▲17.01
Add New Post /wp-admin/post-new.php6.47 ▲0.5888.30 ▼6.61
Media Library /wp-admin/upload.php3.78 ▲0.5545.13 ▲13.37

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 439 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
iwp_retroactive_info
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
iwp_do_activation_redirect
iwp_custom_event_aTraceId

Browser metrics Passed 4 tests

A check of browser resources used by IURNY by INDIGITALL – WhatsApp Chat, Web Push Notifications (FREE)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲23214.55 ▲0.211.85 ▼0.1543.15 ▲0.01
Dashboard /wp-admin2,345 ▲1656.17 ▲0.51115.34 ▲21.8395.62 ▲52.02
Posts /wp-admin/edit.php2,291 ▲1913.36 ▲1.3947.73 ▲12.2852.54 ▲18.44
Add New Post /wp-admin/post-new.php1,706 ▲18022.17 ▼0.76627.32 ▲26.9734.78 ▼14.51
Media Library /wp-admin/upload.php1,422 ▲254.07 ▼0.2081.78 ▼17.0378.91 ▲37.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/indigitall-web-push-notifications/uninstall.php+2
    Constant IWP_PLUGIN_PATH already defined
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • iwp_custom_event_aTraceId
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/indigitall-web-push-notifications/admin/views/admin/iwpAdminView.php
    • > /wp-content/plugins/indigitall-web-push-notifications/admin/views/webPush/partials/iwpWebPushMenu.php
    • > /wp-content/plugins/indigitall-web-push-notifications/indigitall-web-push.php
    • > /wp-content/plugins/indigitall-web-push-notifications/admin/views/webPush/partials/iwpWebPushConfig.php
    • > /wp-content/plugins/indigitall-web-push-notifications/admin/views/admin/partials/iwpLoader.php
    • > /wp-content/plugins/indigitall-web-push-notifications/admin/views/login/iwpModalLoginView.php
  • 150× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'IWP_PLUGIN_PATHadmin/includes/iwpCustomEvents.php' (include_path='.:/usr/share/php') in wp-content/plugins/indigitall-web-push-notifications/includes/iwpCurlManager.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'IWP_ADMIN_PATHincludes/iwpApiManager.php' (include_path='.:/usr/share/php') in wp-content/plugins/indigitall-web-push-notifications/admin/models/iwpApplicationsModel.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'IWP_PLUGIN_PATHadmin/includes/iwpAdminUtils.php' (include_path='.:/usr/share/php') in wp-content/plugins/indigitall-web-push-notifications/public/views/webPush/iwpPublicWebPushView.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/indigitall-web-push-notifications/admin/views/header/partials/iwpSubHeader.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'IWP_PLUGIN_PATHincludes/iwpPluginOptions.php' (include_path='.:/usr/share/php') in wp-content/plugins/indigitall-web-push-notifications/admin/controllers/iwpOnBoardingController.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/indigitall-web-push-notifications/admin/views/onBoarding/partials/iwp2FaModal.php:11
    • > PHP Fatal error
      require_once(): Failed opening required 'IWP_PLUGIN_PATHincludes/iwpPluginOptions.php' (include_path='.:/usr/share/php') in wp-content/plugins/indigitall-web-push-notifications/public/controllers/iwpPublicWhatsAppChatController.php on line 2
    • > PHP Warning
      require_once(IWP_PLUGIN_PATHincludes/iwpPluginOptions.php): failed to open stream: No such file or directory in wp-content/plugins/indigitall-web-push-notifications/includes/iwp-plugin-row-meta.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/indigitall-web-push-notifications/admin/views/login/partials/iwp2faView.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'IWP_PLUGIN_PATHincludes/iwpPluginOptions.php' (include_path='.:/usr/share/php') in wp-content/plugins/indigitall-web-push-notifications/admin/includes/iwpLoginUtils.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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: You can look at the official readme.txt

indigitall-web-push-notifications/indigitall-web-push.php 92% from 13 tests

"IURNY by INDIGITALL – WhatsApp Chat, Web Push Notifications (FREE)" version 3.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("indigitall-web-push-notifications.php" instead of "indigitall-web-push.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin26,995 lines of code in 413 files:
LanguageFilesBlank linesComment linesLines of code
PHP778481,7468,713
JavaScript264884944,452
SVG283004,197
PO File41,6251,6343,466
CSS2192593,269
JSON1002,708
Markdown11000190

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity11.58
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes38
▷ Abstract classes12.63%
▷ Concrete classes3797.37%
▷ Final classes00.00%
Methods287
▷ Static methods12242.51%
▷ Public methods22277.35%
▷ Protected methods00.00%
▷ Private methods6522.65%
Functions34
▷ Named functions3397.06%
▷ Anonymous functions12.94%
Constants201
▷ Global constants2210.95%
▷ Class constants17989.05%
▷ Public constants179100.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
7 PNG files occupy 0.12MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/tick-icon.png14.76KB1.23KB▼ 91.69%
admin/images/webPush-icon.png24.74KB1.21KB▼ 95.13%
public/views/webPush/images/tick-icon.png14.76KB1.23KB▼ 91.69%
admin/images/whatsApp-icon.png29.99KB2.60KB▼ 91.33%
admin/views/webPush/images/mobile-background-image.png31.19KB1.90KB▼ 93.90%