84% rss-with-images

Code Review | RSS with Images

WordPress plugin RSS with Images scored84%from 54 tests.

About plugin

  • Plugin page: rss-with-images
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.4.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2014
  • Latest release: Jul 24, 2020
  • Number of updates: 57
  • Update frequency: every 41.0 days
  • Top authors: ENDif Media (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active /19,485 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▲0.91ms] Passed 4 tests

An overview of server-side resources used by RSS with Images
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.79 ▼1.35
Dashboard /wp-admin3.35 ▲0.0549.77 ▲0.12
Posts /wp-admin/edit.php3.40 ▲0.0446.96 ▲1.05
Add New Post /wp-admin/post-new.php5.95 ▲0.0697.28 ▲5.68
Media Library /wp-admin/upload.php3.27 ▲0.0437.82 ▲3.81
RSS with Images /wp-admin/options-general.php?page=rss-with-images3.2430.28

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
rwi_encoding
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for RSS with Images
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.43 ▼0.941.73 ▲0.1340.21 ▼0.85
Dashboard /wp-admin2,229 ▲375.81 ▲0.8599.16 ▼12.2439.67 ▼3.03
Posts /wp-admin/edit.php2,115 ▲232.03 ▼0.0338.15 ▼1.5436.66 ▲4.00
Add New Post /wp-admin/post-new.php1,558 ▲2418.42 ▼4.75603.48 ▼73.9771.49 ▲11.06
Media Library /wp-admin/upload.php1,411 ▲234.31 ▲0.1395.22 ▼4.2840.66 ▼7.30
RSS with Images /wp-admin/options-general.php?page=rss-with-images9112.2024.8144.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • rwi_encoding
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/rss-with-images/feeds/mailchimp-feed-rss2-v2.0.php:9

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 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can look at the official readme.txt

rss-with-images/rss-with-images.php Passed 13 tests

The main PHP file in "RSS with Images" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Seamlessly add featured images to your Mailchimp RSS to Email campaigns.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin321 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP255141266
CSS11144
JavaScript16011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions12
▷ Named functions12100.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