84% rss-featured-image

Code Review | RSS Featured Image

WordPress plugin RSS Featured Image scored84%from 54 tests.

About plugin

  • Plugin page: rss-featured-image
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2018
  • Latest release: Oct 12, 2023
  • Number of updates: 15
  • Update frequency: every 138.6 days
  • Top authors: TigrouMeow (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

2,000+ active /15,558 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by RSS Featured Image
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.99 ▼3.05
Dashboard /wp-admin3.32 ▼0.0345.61 ▼10.54
Posts /wp-admin/edit.php3.37 ▲0.0146.08 ▲2.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.90 ▼5.59
Media Library /wp-admin/upload.php3.24 ▲0.0133.28 ▲3.05

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for RSS Featured Image
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.40 ▼0.331.69 ▼0.3244.51 ▼0.23
Dashboard /wp-admin2,192 ▲185.57 ▼0.1580.20 ▼28.5836.09 ▼9.57
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0033.57 ▼4.8234.11 ▼2.48
Add New Post /wp-admin/post-new.php1,526 ▼023.10 ▼0.51683.59 ▲69.9052.90 ▲4.93
Media Library /wp-admin/upload.php1,391 ▼94.15 ▼0.0694.96 ▼2.6348.87 ▲5.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rss-featured-image/core.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: You can take inspiration from this readme.txt

rss-featured-image/rss-featured-image.php 92% from 13 tests

Analyzing the main PHP file in "RSS Featured Image" version 1.0.6
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin42 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2121642

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 were not PNG files found in your plugin