84% jms-rss-feed

Code Review | JMS Rss Feed

WordPress plugin JMS Rss Feed scored84%from 54 tests.

About plugin

  • Plugin page: jms-rss-feed
  • Plugin version: 3.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.0
  • WordPress version: 6.3.1
  • First release: Jan 19, 2015
  • Latest release: Mar 29, 2018
  • Number of updates: 9
  • Update frequency: every 129.4 days
  • Top authors: james.liu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,373 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by JMS Rss Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.74 ▼2.05
Dashboard /wp-admin3.31 ▲0.0152.74 ▼7.36
Posts /wp-admin/edit.php3.36 ▲0.0048.47 ▼1.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.20 ▼7.79
Media Library /wp-admin/upload.php3.23 ▲0.0038.22 ▼0.53

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by JMS Rss Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.65 ▼0.732.01 ▼0.0745.43 ▼2.37
Dashboard /wp-admin2,200 ▲185.81 ▲0.76104.90 ▼2.8942.23 ▲1.24
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0237.32 ▼1.2332.99 ▼4.89
Add New Post /wp-admin/post-new.php1,536 ▼623.17 ▲4.96671.91 ▲6.9863.50 ▲8.42
Media Library /wp-admin/upload.php1,388 ▲64.18 ▼0.0896.95 ▼11.4347.31 ▲5.18

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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)
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jms-rss-feed/jms-rss-feed.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 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
9 plugin tags: the_post_thumbnail, add featured image to rss, post thumbnail, feed, featured image...

jms-rss-feed/jms-rss-feed.php Passed 13 tests

The entry point to "JMS Rss Feed" version 3.5.0 is a PHP file that has certain tags in its header comment area
59 characters long description:
Adds the featured image tag to your posts to the RSS feed.

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
Success! There were no dangerous files found in this plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161912

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin