90% add-featured-image-to-rss-feed

Code Review | Add Featured Image to RSS Feed

WordPress plugin Add Featured Image to RSS Feed scored90%from 54 tests.

About plugin

  • Plugin page: add-featured-imag...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.2.0
  • WordPress version: 6.3.1
  • First release: Feb 17, 2013
  • Latest release: May 11, 2023
  • Number of updates: 9
  • Update frequency: every 415.0 days
  • Top authors: salzano (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active /31,562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Add Featured Image to RSS Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.40 ▼4.70
Dashboard /wp-admin3.31 ▲0.0049.15 ▼1.97
Posts /wp-admin/edit.php3.36 ▲0.0047.46 ▼6.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.33 ▼12.06
Media Library /wp-admin/upload.php3.23 ▲0.0033.93 ▼3.92

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Add Featured Image to RSS Feed: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.011.78 ▲0.1144.48 ▲4.24
Dashboard /wp-admin2,195 ▲215.62 ▲0.0394.58 ▲1.3442.88 ▲2.10
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0137.24 ▼2.1334.85 ▲1.35
Add New Post /wp-admin/post-new.php1,526 ▼222.94 ▼0.29669.34 ▼2.0956.93 ▲7.77
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.0099.47 ▼10.0242.93 ▲0.56

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
6 plugin tags: feed, the_post_thumbnail, featured image, add featured image to rss, post thumbnail...

add-featured-image-to-rss-feed/add-featured-image-to-rss-feed.php Passed 13 tests

"Add Featured Image to RSS Feed" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Adds the featured image attached to your posts to the RSS feed.

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
Everything looks great! No dangerous files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin