88% convertifier-browser-push-notification

Code Review | Browser Push Notification By Convertifier

WordPress plugin Browser Push Notification By Convertifier scored 88% from 54 tests.

About plugin

  • Plugin page: convertifier-brow...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 5.8.1
  • First release: Nov 21, 2016
  • Latest release: Dec 1, 2016
  • Number of updates: 21
  • Update frequency: every 0.2 days
  • Top authors: manashsonowal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 534 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.56MB] [CPU: ▼157.62ms] Passed 4 tests

Server-side resources used by Browser Push Notification By Convertifier
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1833.36 ▲8.55
Dashboard /wp-admin3.09 ▲0.0441.72 ▼5.02
Posts /wp-admin/edit.php3.21 ▲0.1047.73 ▼0.27
Add New Post /wp-admin/post-new.php2.97 ▼2.4627.75 ▼625.71
Media Library /wp-admin/upload.php3.07 ▲0.0736.72 ▲0.52

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Browser Push Notification By Convertifier
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,971 ▲37516.33 ▲1.049.19 ▲0.0650.34 ▲2.05
Dashboard /wp-admin3,247 ▲3137.05 ▲0.91158.85 ▼2.77141.77 ▲27.08
Posts /wp-admin/edit.php2,783 ▲442.69 ▲0.0070.41 ▲0.5891.48 ▲4.53
Add New Post /wp-admin/post-new.php1,581 ▼10216.87 ▼2.07361.40 ▼41.90120.27 ▲2.38
Media Library /wp-admin/upload.php1,851 ▲415.01 ▲0.01165.88 ▲14.96129.37 ▲11.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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
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 fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/convertifier-browser-push-notification/manifest.json.php
    • > /wp-content/plugins/convertifier-browser-push-notification/sdk/ConvertifierSDKWorker.js.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function getUserIP() in wp-content/plugins/convertifier-browser-push-notification/integrate/_ini.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% 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
6 plugin tags: push notification, browser push notification, browser push, convertifier, push notifications...

convertifier-browser-push-notification/convertifier-push.php 85% from 13 tests

"Browser Push Notification By Convertifier" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("convertifier-browser-push-notification.php" instead of "convertifier-push.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 294 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin722 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2596.15%
▷ Anonymous functions13.85%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.32MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icn-stats.png0.29KB0.25KB▼ 14.53%
images/notification-preveiw-5.png18.25KB8.11KB▼ 55.55%
images/notification-preveiw-3.png24.24KB13.42KB▼ 44.65%
images/notification-preveiw-2.png40.80KB21.02KB▼ 48.48%
images/notification-preveiw-6.png46.61KB21.35KB▼ 54.18%