73% featured-images-for-rss-feeds

Code Review | Featured Images in RSS for Mailchimp & More

WordPress plugin Featured Images in RSS for Mailchimp & More scored73%from 54 tests.

About plugin

  • Plugin page: featured-images-f...
  • Plugin version: 1.6.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-6.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2013
  • Latest release: Jul 5, 2023
  • Number of updates: 145
  • Update frequency: every 24.9 days
  • Top authors: downtownrob (42.07%)presswizards (39.31%)5starplugins (20%)

Code review

54 tests

User reviews

103 reviews

Install metrics

30,000+ active /547,071 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲5.04MB] [CPU: ▲19.22ms] 75% from 4 tests

An overview of server-side resources used by Featured Images in RSS for Mailchimp & More
Please take the time to fix the following items
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.04MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.94 ▲5.4862.74 ▲19.23
Dashboard /wp-admin8.96 ▲5.6669.81 ▲18.96
Posts /wp-admin/edit.php8.96 ▲5.6166.80 ▲22.36
Add New Post /wp-admin/post-new.php9.30 ▲3.42105.13 ▲16.34
Media Library /wp-admin/upload.php8.96 ▲5.7364.68 ▲31.31
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.9655.17

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 182 new files
Database: no new tables, 9 new options
New WordPress options
fs_accounts
widget_theysaidso_widget
fs_active_plugins
widget_recent-posts
fs_debug_mode
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Featured Images in RSS for Mailchimp & More
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.31 ▼1.074.32 ▲2.2528.41 ▼19.23
Dashboard /wp-admin2,243 ▲555.86 ▲0.00104.80 ▼6.0044.48 ▲4.51
Posts /wp-admin/edit.php2,129 ▲432.04 ▼0.0235.70 ▼1.5536.29 ▲1.03
Add New Post /wp-admin/post-new.php1,535 ▲523.10 ▲4.59683.73 ▲39.6253.75 ▲3.12
Media Library /wp-admin/upload.php1,422 ▲344.29 ▲0.06101.45 ▲2.4844.92 ▲1.80
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0791.7226.0226.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/featured-images-for-rss-feeds/includes/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 9 options in the database
    • fs_debug_mode
    • fs_active_plugins
    • fs_accounts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/featured-images-for-rss-feeds/featured_images_in_rss.php:14

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

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
  • Screenshots: Please add descriptions for these screenshots #5, #6 in featured-images-for-rss-feeds/assets to your readme.txt
The official readme.txt might help

featured-images-for-rss-feeds/featured_images_in_rss.php 92% from 13 tests

The principal PHP file in "Featured Images in RSS for Mailchimp & More" v. 1.6.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("featured-images-for-rss-feeds.php" instead of "featured_images_in_rss.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin34,119 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PHP1188,02717,29333,591
Markdown1680214
JavaScript33459194
PO File12832107
CSS130013

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity93.06
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes48
▷ Abstract classes24.17%
▷ Concrete classes4695.83%
▷ Final classes00.00%
Methods1,259
▷ Static methods19715.65%
▷ Public methods87069.10%
▷ Protected methods171.35%
▷ Private methods37229.55%
Functions118
▷ Named functions118100.00%
▷ Anonymous functions00.00%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includes/images/5StarPlugins_Logo80x80.png2.08KB1.07KB▼ 48.52%
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%