94% add-image-to-feed

Code Review | Add Image to Feed

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

About plugin

  • Plugin page: add-image-to-feed
  • Plugin version: 1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Feb 9, 2022
  • Latest release: Mar 15, 2022
  • Number of updates: 5
  • Update frequency: every 6.8 days
  • Top authors: lesion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 94 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼290.65ms] Passed 4 tests

An overview of server-side resources used by Add Image to Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0252.56 ▲0.90
Dashboard /wp-admin3.42 ▲0.0134.21 ▼0.33
Posts /wp-admin/edit.php3.65 ▲0.0137.23 ▼2.27
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.53 ▼1,158.77
Media Library /wp-admin/upload.php3.30 ▲0.0123.54 ▼1.22

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Add Image to Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.19 ▲0.536.15 ▲0.272.23 ▼0.11
Dashboard /wp-admin2,895 ▲346.12 ▼0.03119.41 ▼20.37155.50 ▼10.98
Posts /wp-admin/edit.php2,688 ▼33.23 ▼0.0165.16 ▼2.19146.17 ▲4.64
Add New Post /wp-admin/post-new.php1,661 ▼2916.42 ▼4.20422.79 ▼9.97155.58 ▼3.77
Media Library /wp-admin/upload.php1,698 ▼05.47 ▼0.09142.68 ▼14.76192.27 ▲8.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/add-image-to-feed/add-img-to-feed.php

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: mediacontent, thumbnail, feed, enclosure

add-image-to-feed/add-img-to-feed.php 92% from 13 tests

The principal PHP file in "Add Image to Feed" v. 1.4 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("add-image-to-feed.php" instead of "add-img-to-feed.php")

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
Everything looks great! No dangerous files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin