10% better-rss-widget

Code Review | Better RSS Widget

WordPress plugin Better RSS Widget scored 10% from 54 tests.

About plugin

  • Plugin page: better-rss-widget
  • Plugin version: 2.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.4.1
  • WordPress version: 5.8.1
  • First release: Oct 14, 2009
  • Latest release: Jan 11, 2016
  • Number of updates: 62
  • Update frequency: every 36.8 days
  • Top authors: grandslambert (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active / 72,746 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/better-rss-widget/better-rss-widget.php+649
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼184.35ms] Passed 4 tests

Server-side resources used by Better RSS Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼1.094.26 ▼26.88
Dashboard /wp-admin1.76 ▼1.296.76 ▼37.37
Posts /wp-admin/edit.php1.76 ▼1.344.90 ▼36.50
Add New Post /wp-admin/post-new.php1.76 ▼3.675.50 ▼636.64
Media Library /wp-admin/upload.php1.76 ▼1.245.91 ▼26.31
Better RSS Widget /wp-admin/options-general.php?page=better-rss-widget-settings1.765.26

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options
widget_better_rss_widget

Browser metrics Passed 4 tests

Checking browser requirements for Better RSS Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.81 ▲0.248.59 ▼1.7545.79 ▲0.10
Dashboard /wp-admin2,972 ▲355.90 ▼0.01137.34 ▼15.32111.90 ▲1.91
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0266.00 ▼3.3985.25 ▼5.64
Add New Post /wp-admin/post-new.php1,503 ▼18018.60 ▼0.21380.54 ▲24.80103.96 ▼9.72
Media Library /wp-admin/upload.php1,812 ▲25.02 ▲0.02154.04 ▲11.36110.61 ▼10.88
Better RSS Widget /wp-admin/options-general.php?page=better-rss-widget-settings1,5222.3052.53104.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/better-rss-widget/better-rss-widget.php+649
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_better_rss_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=better-rss-widget-settings
    • > Deprecated in wp-content/plugins/better-rss-widget/better-rss-widget.php+649
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=better-rss-widget-settings
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in better_rss_widget is deprecated since version 4.3.0! Use __construct() instead.

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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/better-rss-widget/includes/settings.php
    • > /wp-content/plugins/better-rss-widget/includes/widget-form.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/better-rss-widget/better-rss-widget.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: list, shortcode, feed, link, posts...

better-rss-widget/better-rss-widget.php Passed 13 tests

The principal PHP file in "Better RSS Widget" v. 2.7.1 is loaded by WordPress automatically on each request
116 characters long description:
Replacement for the built in RSS widget that adds an optional link target, shortcode_handler, and page conditionals.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,646 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File4400468856
PHP3117148696
CSS1151069
JavaScript141625

PHP code Passed 2 tests

A brief analysis 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.21
Average class complexity75.00
▷ Minimum class complexity75.00
▷ Maximum class complexity75.00
Average method complexity4.70
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin