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

Code Review | Add Featured Image to RSS Feed

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

About plugin

  • Plugin page: add-featured-imag...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-5.8.3
  • WordPress version: 5.9.2
  • First release: Feb 17, 2013
  • Latest release: Jan 24, 2022
  • Number of updates: 7
  • Update frequency: every 466.1 days
  • Top authors: salzano (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active / 24,496 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼302.93ms] Passed 4 tests

An overview of server-side resources used by Add Featured Image to RSS Feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0163.79 ▲3.04
Dashboard /wp-admin3.41 ▲0.0136.80 ▲1.48
Posts /wp-admin/edit.php3.65 ▲0.0143.53 ▲5.51
Add New Post /wp-admin/post-new.php6.88 ▼0.0897.50 ▼1,215.27
Media Library /wp-admin/upload.php3.30 ▲0.0126.16 ▼0.98

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add Featured Image to RSS Feed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.13 ▲0.486.46 ▼0.823.10 ▼0.12
Dashboard /wp-admin2,888 ▲276.27 ▲0.13135.40 ▲3.51152.60 ▼6.91
Posts /wp-admin/edit.php2,694 ▼03.23 ▲0.0163.06 ▼1.02137.03 ▼9.08
Add New Post /wp-admin/post-new.php1,760 ▲9922.94 ▲6.75410.30 ▼27.50151.11 ▼7.96
Media Library /wp-admin/upload.php1,695 ▼65.47 ▼0.06143.41 ▲6.92187.18 ▲8.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: feed, featured image, the_post_thumbnail, post thumbnail, add featured image to rss...

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

The main PHP script in "Add Featured Image to RSS Feed" version 1.1.1 is automatically included on every request by WordPress
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 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121011

PHP code Passed 2 tests

Analyzing 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin