94% jps-get-rss-feed

Code Review | JP's Get RSS Feed

WordPress plugin JP's Get RSS Feed scored 94% from 54 tests.

About plugin

  • Plugin page: jps-get-rss-feed
  • Plugin version: 1.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 5.8.1
  • First release: Dec 31, 2009
  • Latest release: Aug 16, 2014
  • Number of updates: 75
  • Update frequency: every 22.5 days
  • Top authors: jp2112 (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

600+ active / 36,638 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼139.36ms] Passed 4 tests

Analyzing server-side resources used by JP's Get RSS Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.05 ▲0.2236.62 ▲2.15
Dashboard /wp-admin3.28 ▲0.2245.87 ▲7.70
Posts /wp-admin/edit.php3.39 ▲0.2843.41 ▲1.34
Add New Post /wp-admin/post-new.php5.63 ▲0.2087.99 ▼559.89
Media Library /wp-admin/upload.php3.22 ▲0.2232.45 ▼1.04
JP's Get RSS Feed /wp-admin/options-general.php?page=jps-get-rss-feed3.1830.68

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options
jp_get_rss_feed

Browser metrics Passed 4 tests

This is an overview of browser requirements for JP's Get RSS Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8715.77 ▲0.2210.13 ▲0.0043.81 ▼3.13
Dashboard /wp-admin2,994 ▲606.14 ▲0.21135.48 ▼7.31106.84 ▼6.16
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0062.81 ▲2.6093.96 ▲1.16
Add New Post /wp-admin/post-new.php1,877 ▲26219.31 ▼2.64391.18 ▲112.98114.90 ▲9.36
Media Library /wp-admin/upload.php1,812 ▲55.03 ▲0.01148.45 ▲2.50124.31 ▲2.16
JP's Get RSS Feed /wp-admin/options-general.php?page=jps-get-rss-feed1,5452.2256.28101.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/jps-get-rss-feed/jp_get_rss_feed_items.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: xml, feed, fetch, display, list...

jps-get-rss-feed/jp_get_rss_feed_items.php 92% from 13 tests

The primary PHP file in "JP's Get RSS Feed" version 1.6.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jps-get-rss-feed.php" instead of "jp_get_rss_feed_items.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected741 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33576733
CSS1005
JavaScript1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants45
▷ Global constants45100.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
5 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/examples.png3.78KB2.24KB▼ 40.82%
images/parameters.png3.48KB2.94KB▼ 15.45%
images/settings.png2.11KB2.31KB0.00%
images/support.png5.03KB2.79KB▼ 44.54%
images/rss.png2.89KB2.32KB▼ 19.81%