89% rss-feed-widget

Code Review | RSS Feed Widget

WordPress plugin RSS Feed Widget scored89%from 54 tests.

About plugin

  • Plugin page: rss-feed-widget
  • Plugin version: 2.9.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2014
  • Latest release: Jul 10, 2023
  • Number of updates: 132
  • Update frequency: every 26.1 days
  • Top authors: fahadmahmood (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

4,000+ active /211,668 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.01ms] Passed 4 tests

Analyzing server-side resources used by RSS Feed Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1839.24 ▼5.83
Dashboard /wp-admin3.34 ▲0.0450.32 ▼2.02
Posts /wp-admin/edit.php3.46 ▲0.1054.05 ▲2.25
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.62 ▼13.35
Media Library /wp-admin/upload.php3.27 ▲0.0437.81 ▼2.82
RSS Feed Widget /wp-admin/options-general.php?page=rfw_options3.4441.16

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options
rsfw_options
widget_rfw_dock
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for RSS Feed Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲12713.53 ▼0.798.09 ▲6.3238.59 ▼6.20
Dashboard /wp-admin2,203 ▲265.54 ▼0.1288.32 ▼4.0538.69 ▲0.28
Posts /wp-admin/edit.php2,111 ▲112.01 ▲0.0636.60 ▼4.3732.47 ▼3.44
Add New Post /wp-admin/post-new.php1,536 ▲1023.66 ▲0.46663.76 ▼8.1871.11 ▲23.42
Media Library /wp-admin/upload.php1,408 ▲114.25 ▲0.14104.91 ▼3.5944.48 ▼1.89
RSS Feed Widget /wp-admin/options-general.php?page=rfw_options1,9041.9837.1363.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_rfw_dock
    • widget_recent-posts
    • rsfw_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: chameleon, social feed, custom feed, rss, feed widget

rss-feed-widget/index.php 85% from 13 tests

"RSS Feed Widget" version 2.9.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rss-feed-widget.php" instead of "index.php")
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,610 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP38791391,797
JavaScript62785771,270
CSS48225543

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity203.00
▷ Minimum class complexity203.00
▷ Maximum class complexity203.00
Average method complexity14.47
▷ Minimum method complexity1.00
▷ Maximum method complexity97.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1066.67%
▷ Protected methods00.00%
▷ Private methods533.33%
Functions20
▷ Named functions20100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrows.png2.72KB0.39KB▼ 85.52%
images/controls.png2.74KB1.42KB▼ 48.29%