62% rss-desktop-notifications

Code Review | RSS Desktop Notifications

WordPress plugin RSS Desktop Notificationsscored62%from 54 tests.

About plugin

  • Plugin page: rss-desktop-notif...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.7.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2013
  • Latest release: Jan 2, 2014
  • Number of updates: 8
  • Update frequency: every 3.1 days
  • Top authors: medaveanderson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,196 total downloads

Benchmarks

Plugin footprint 65% from 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.94MB] [CPU: ▼30.48ms] Passed 4 tests

Server-side resources used by RSS Desktop Notifications
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.09 ▼6.02
Dashboard /wp-admin3.00 ▼0.3124.38 ▼24.82
Posts /wp-admin/edit.php3.00 ▼0.3627.12 ▼21.33
Add New Post /wp-admin/post-new.php3.00 ▼2.8930.49 ▼62.79
Media Library /wp-admin/upload.php3.00 ▼0.2322.72 ▼12.98
RSS Desktop Notifications /wp-admin/options-general.php?page=rss-desktop-notifications3.0023.35

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

RSS Desktop Notifications: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.21 ▼1.174.88 ▲3.1043.62 ▼2.29
Dashboard /wp-admin2,210 ▲194.81 ▼0.07106.71 ▲2.6546.68 ▲1.45
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0439.25 ▲1.1535.54 ▲1.40
Add New Post /wp-admin/post-new.php1,545 ▲1218.32 ▼4.84584.69 ▼52.7955.72 ▼7.57
Media Library /wp-admin/upload.php1,386 ▼54.19 ▲0.0396.77 ▲2.0443.12 ▲1.39
RSS Desktop Notifications /wp-admin/options-general.php?page=rss-desktop-notifications8511.9022.5327.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rss-desktop-notifications
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=rss-desktop-notifications
    • > Notice in wp-content/plugins/rss-desktop-notifications/rss-desktop-notifications-admin.php+2
    Undefined index: rssdn_hidden

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rss-desktop-notifications/rss-desktop-notifications-admin.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rss-desktop-notifications/rss-desktop-notifications.php:21
    • > PHP Notice
      Undefined index: rssdn_hidden in wp-content/plugins/rss-desktop-notifications/rss-desktop-notifications-admin.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=rss-desktop-notifications
    • > Network (severe)
    http://grabthatfeed.com/static/css/base.css - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === RSS Desktop Notifications=== )
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

rss-desktop-notifications/rss-desktop-notifications.php 92% from 13 tests

Analyzing the main PHP file in "RSS Desktop Notifications" version 2.0
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 457 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
Good job! No executable or dangerous file extensions detected93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2151293

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin