84% z-featured-image-in-rss-feed

Code Review | Featured Image In RSS Feed

WordPress plugin Featured Image In RSS Feed scored 84% from 54 tests.

About plugin

  • Plugin page: z-featured-image-...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Oct 2, 2012
  • Latest release: Oct 5, 2012
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: FrankPinto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,424 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

This is a short check of server-side resources used by Featured Image In RSS Feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0022.78 ▼2.04
Dashboard /wp-admin3.07 ▲0.0032.50 ▼3.34
Posts /wp-admin/edit.php3.12 ▲0.0131.00 ▲1.97
Add New Post /wp-admin/post-new.php5.43 ▼0.0166.10 ▼591.52
Media Library /wp-admin/upload.php3.01 ▲0.0122.79 ▲0.84
Image In Rss Feed /wp-admin/options-general.php?page=z-featured-image-in-rss-feed/plugin_interface.php2.9621.98

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: 3 new files
Database: no new tables, 1 new option
New WordPress options
fir_rss_image_size

Browser metrics Passed 4 tests

A check of browser resources used by Featured Image In RSS Feed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,671 ▲7015.95 ▲0.004.84 ▼0.2176.69 ▲0.73
Dashboard /wp-admin2,935 ▲406.04 ▼0.14115.77 ▼16.20166.83 ▼8.63
Posts /wp-admin/edit.php2,745 ▲83.36 ▲0.1162.89 ▲0.11138.48 ▼1.86
Add New Post /wp-admin/post-new.php3,725 ▼1018.72 ▼0.26418.60 ▼19.10160.13 ▼0.85
Media Library /wp-admin/upload.php1,757 ▲55.53 ▲0.02147.45 ▲0.78186.97 ▲4.23
Image In Rss Feed /wp-admin/options-general.php?page=z-featured-image-in-rss-feed/plugin_interface.php1,0952.3651.22127.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 1 option in the database
    • fir_rss_image_size

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/z-featured-image-in-rss-feed/z-featured-image-in-rss-feed.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/z-featured-image-in-rss-feed/plugin_interface.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

z-featured-image-in-rss-feed/z-featured-image-in-rss-feed.php Passed 13 tests

The principal PHP file in "Featured Image In RSS Feed" v. 0.3 is loaded by WordPress automatically on each request
63 characters long description:
Add Featured Image to your RSS Feed w/ CSS set to display:none.

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
There were no executable files found in this plugin58 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP29958

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin