84% add-image-to-rss-feed

Code Review | Add Image to RSS Feed

WordPress plugin Add Image to RSS Feed scored84%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: 6.3.1
  • 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

30+ active /2,246 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Add Image to RSS Feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.61 ▼2.35
Dashboard /wp-admin3.31 ▲0.0150.21 ▼4.00
Posts /wp-admin/edit.php3.36 ▲0.0050.92 ▼2.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.15 ▼30.04
Media Library /wp-admin/upload.php3.23 ▲0.0037.26 ▼0.21

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

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 /2,789 ▲2814.81 ▲0.442.04 ▲0.4544.15 ▲4.72
Dashboard /wp-admin2,198 ▲185.62 ▼0.0892.81 ▲1.5643.60 ▼1.69
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0239.81 ▼1.5136.77 ▼0.82
Add New Post /wp-admin/post-new.php1,526 ▼017.72 ▲0.24685.29 ▲21.2957.08 ▲6.10
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.0398.05 ▼6.8544.02 ▼1.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

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

"Add Image to RSS Feed" version 2017.08.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16811

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected