71% push-notification-by-feedify

Code Review | Feedify - Web Push Notifications

WordPress plugin Feedify - Web Push Notifications scored71%from 54 tests.

About plugin

  • Plugin page: push-notification...
  • Plugin version: 2.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2016
  • Latest release: Oct 4, 2023
  • Number of updates: 80
  • Update frequency: every 31.3 days
  • Top authors: feedify (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /6,510 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼1.82ms] Passed 4 tests

A check of server-side resources used by Feedify - Web Push Notifications
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1537.66 ▼7.13
Dashboard /wp-admin3.43 ▲0.1349.15 ▼9.16
Posts /wp-admin/edit.php3.55 ▲0.1952.55 ▲7.30
Add New Post /wp-admin/post-new.php6.05 ▲0.161,015.44 ▲919.97
Media Library /wp-admin/upload.php3.36 ▲0.1337.02 ▲1.71
Settings /wp-admin/admin.php?page=feedify-settings3.3436.63

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 12 new options
New WordPress options
feedify_domain_key
widget_theysaidso_widget
feedify_permalinks_flushed
widget_recent-comments
feedify_public_key
db_upgraded
feedify_enable_ssl
can_compress_scripts
feedify_licence_key
feedify_plugin_status
...

Browser metrics Passed 4 tests

A check of browser resources used by Feedify - Web Push Notifications
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,090 ▲32914.23 ▼0.3615.46 ▲13.3044.89 ▲1.42
Dashboard /wp-admin2,231 ▲285.04 ▲0.18107.97 ▼14.3874.75 ▲27.22
Posts /wp-admin/edit.php2,128 ▲282.03 ▲0.0238.73 ▲1.3934.04 ▼0.83
Add New Post /wp-admin/post-new.php6,245 ▲4,70526.20 ▲8.03994.81 ▲376.0753.49 ▲3.62
Media Library /wp-admin/upload.php1,422 ▲224.26 ▲0.03100.00 ▼9.3282.47 ▲35.75
Settings /wp-admin/admin.php?page=feedify-settings8822.1829.3931.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 12 options
    • feedify_licence_key
    • theysaidso_admin_options
    • feedify_enable_ssl
    • feedify_permalinks_flushed
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • feedify_plugin_status
    • can_compress_scripts
    • feedify_domain_key
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/push-notification-by-feedify/views/push-settings.php
    • > /wp-content/plugins/push-notification-by-feedify/views/update-plan.php
    • > /wp-content/plugins/push-notification-by-feedify/views/desktop-settings.php
    • > /wp-content/plugins/push-notification-by-feedify/feedify.php
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/push-notification-by-feedify/views/push-settings.php:234
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/push-notification-by-feedify/includes/settings.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/push-notification-by-feedify/includes/admin-menu.php:76
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/push-notification-by-feedify/views/manage-push.php on line 3
    • > PHP Warning
      require_once(FEEDIFY_PATHincludes/FeedifySW.class.php): failed to open stream: No such file or directory in wp-content/plugins/push-notification-by-feedify/init.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'FEEDIFY_PATHincludes/FeedifySW.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/push-notification-by-feedify/init.php on line 3
    • > PHP Warning
      Use of undefined constant FEEDIFY_PATH - assumed 'FEEDIFY_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/push-notification-by-feedify/init.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/push-notification-by-feedify/views/settings.php:136
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/push-notification-by-feedify/views/manage-push.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/push-notification-by-feedify/includes/base.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=feedify-settings
    • > Network (severe)
    https://sftextures.com/texture/2748/0/2743/corner-pattern-background-light-grey-color-squared-90-degrees-lines-seamless-wallpaper-texture.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Tags: There are too many tags (29 tag instead of maximum 10)
Please take inspiration from this readme.txt

push-notification-by-feedify/feedify.php 85% from 13 tests

The main file in "Feedify - Web Push Notifications" v. 2.3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("push-notification-by-feedify.php" instead of "feedify.php")
  • Description: The description should be shorter than 140 characters (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,552 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP15322441,518
JavaScript25434

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.33
Average class complexity8.67
▷ Minimum class complexity3.00
▷ Maximum class complexity12.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.52MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
views/no-image-icon.png2.68KB1.62KB▼ 39.55%
Screenshot-3.png155.71KB98.91KB▼ 36.48%
Screenshot-1.png256.56KB79.36KB▼ 69.07%
assets/img/feedify-grey-logo-20x20.png1.29KB0.60KB▼ 53.36%
Screenshot-4.png105.33KB34.59KB▼ 67.16%