10% rss-image-feed

Code Review | RSS Image Feed

WordPress plugin RSS Image Feed scored10%from 54 tests.

About plugin

  • Plugin page: rss-image-feed
  • Plugin version: 4.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.5
  • WordPress version: 6.3.1
  • First release: Feb 5, 2011
  • Latest release: Apr 10, 2016
  • Number of updates: 48
  • Update frequency: every 39.4 days
  • Top authors: tepelstreel (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

4,000+ active /125,206 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/rss-image-feed/image-rss.php+133
    Trying to access array offset on value of type null

Server metrics [RAM: ▲0.33MB] [CPU: ▼11.10ms] Passed 4 tests

A check of server-side resources used by RSS Image Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3235.32 ▼7.19
Dashboard /wp-admin3.70 ▲0.3548.92 ▼11.03
Posts /wp-admin/edit.php3.75 ▲0.3953.51 ▼0.69
Add New Post /wp-admin/post-new.php6.22 ▲0.3383.37 ▼25.50
Media Library /wp-admin/upload.php3.56 ▲0.3339.80 ▲2.99
RSS Image Feed /wp-admin/plugins.php?page=rss-image-feed3.5035.17

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
rss_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for RSS Image Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11213.26 ▼1.011.98 ▲0.1740.80 ▼3.59
Dashboard /wp-admin2,228 ▲405.79 ▼0.1198.51 ▼5.5576.89 ▲35.01
Posts /wp-admin/edit.php2,114 ▲222.01 ▼0.0036.17 ▼8.1734.89 ▼4.62
Add New Post /wp-admin/post-new.php1,526 ▲717.69 ▼5.39749.20 ▲118.5362.98 ▲4.19
Media Library /wp-admin/upload.php1,401 ▲104.06 ▼0.14102.70 ▲5.3773.93 ▲29.11
RSS Image Feed /wp-admin/plugins.php?page=rss-image-feed1,0874.6146.5451.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/plugins.php?page=rss-image-feed
    • > Notice in wp-content/plugins/rss-image-feed/class-lib/RIF_AdminClass.php+84
    Undefined index: action

SRP 50% 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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'A5_OptionPage' not found in wp-content/plugins/rss-image-feed/class-lib/RIF_AdminClass.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: image, content, custom, enclosure, feed...

rss-image-feed/image-rss.php 85% from 13 tests

The principal PHP file in "RSS Image Feed" v. 4.2.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 215 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rss-image-feed.php" instead of "image-rss.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,502 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP61,1904401,371
PO File14444131

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity40.33
▷ Minimum class complexity22.00
▷ Maximum class complexity76.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods67
▷ Static methods3349.25%
▷ Public methods6191.04%
▷ Protected methods00.00%
▷ Private methods68.96%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/a5-icon-11.png0.67KB0.42KB▼ 37.17%
img/a5-icon-16.png0.77KB0.57KB▼ 25.99%
img/a5-icon-34.png1.65KB1.35KB▼ 18.07%