94% add-image-to-rss-feed

Code Review | Add Image to RSS Feed

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

About plugin

  • Plugin page: add-image-to-rss-...
  • Plugin version: 2017.08.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.8.0
  • WordPress version: 5.9.2
  • First release: Dec 28, 2014
  • Latest release: Jul 13, 2017
  • Number of updates: 4
  • Update frequency: every 232.0 days
  • Top authors: christopherross (75%)horshipsrectors (50%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,036 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Add Image to RSS Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.30 ▲1.19
Dashboard /wp-admin3.42 ▲0.0133.28 ▲0.88
Posts /wp-admin/edit.php3.65 ▲0.0135.57 ▼0.67
Add New Post /wp-admin/post-new.php6.89 ▼0.0990.98 ▼1,193.43
Media Library /wp-admin/upload.php3.30 ▲0.0027.29 ▲3.88

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Add Image to RSS Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2116.01 ▲0.316.75 ▲0.232.35 ▼0.47
Dashboard /wp-admin2,892 ▲316.14 ▼0.07117.21 ▼15.39155.97 ▼6.18
Posts /wp-admin/edit.php2,688 ▼63.24 ▼0.0062.99 ▼0.92140.06 ▼4.12
Add New Post /wp-admin/post-new.php1,752 ▲8421.53 ▲2.93428.31 ▲28.63156.48 ▲5.37
Media Library /wp-admin/upload.php1,698 ▼05.54 ▲0.02141.17 ▲7.10191.11 ▲9.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-image-to-rss-feed/add-image-to-rss-feed.php:24

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

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

Analyzing the main PHP file in "Add Image to RSS Feed" version 2017.08.13
55 characters long description:
Automatically adds the featured image to RSS feed posts

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
Success! There were no dangerous files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16811

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
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
No PNG files were detected