79% rss-filter

Code Review | RSS Filter

WordPress plugin RSS Filter scored79%from 54 tests.

About plugin

  • Plugin page: rss-filter
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.1.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2013
  • Latest release: Mar 30, 2019
  • Number of updates: 14
  • Update frequency: every 139.4 days
  • Top authors: shambhu patnaik (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /9,264 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼50.85ms] Passed 4 tests

This is a short check of server-side resources used by RSS Filter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.16 ▼32.31
Dashboard /wp-admin3.32 ▼0.0343.52 ▼72.81
Posts /wp-admin/edit.php3.37 ▲0.0143.95 ▼40.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.14 ▼58.08
Media Library /wp-admin/upload.php3.24 ▲0.0136.47 ▼2.37
Help /wp-admin/admin.php?page=rss_filter_help3.2035.65
RSS Filter /wp-admin/admin.php?page=rss-filter/rss-filter.php3.2029.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
rss_filter_setting
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for RSS Filter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11613.57 ▼0.761.98 ▼1.3544.69 ▼29.76
Dashboard /wp-admin2,233 ▲454.86 ▼0.02106.65 ▼80.8640.97 ▼46.79
Posts /wp-admin/edit.php2,116 ▲272.04 ▼0.0033.96 ▼34.0334.85 ▼49.60
Add New Post /wp-admin/post-new.php1,564 ▲15823.30 ▲5.62672.44 ▼234.9556.78 ▼26.35
Media Library /wp-admin/upload.php1,415 ▲274.24 ▲0.13103.31 ▼20.4546.95 ▲0.16
Help /wp-admin/admin.php?page=rss_filter_help8472.0126.9226.85
RSS Filter /wp-admin/admin.php?page=rss-filter/rss-filter.php8992.0323.7136.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/rss-filter/index.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rss-filter/rss-filter.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
9 plugin tags: sticky, rss, filter rss, exclude category rss, sticky rss...

rss-filter/rss-filter.php Passed 13 tests

The primary PHP file in "RSS Filter" version 1.2 is used by WordPress to initiate all plugin functionality
82 characters long description:
RSS Filter plugin .You have option to customization your WordPress RSS feed items.

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 plugin164 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21916156
CSS1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png24.16KB13.37KB▼ 44.67%