68% rssupplement

Code Review | RSSupplement

WordPress plugin RSSupplement scored 68% from 53 tests.

About plugin

  • Plugin page: rssupplement
  • Plugin version: 16.07
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.2
  • WordPress version: 5.8.1
  • First release: May 30, 2008
  • Latest release: Jun 8, 2016
  • Number of updates: 40
  • Update frequency: every 73.3 days
  • Top authors: leftville (100%)

Code review

53 tests

User reviews

1 review

Install metrics

40+ active / 8,300 total downloads

Benchmarks

Plugin footprint 65% 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.89MB] [CPU: ▼386.86ms] Passed 4 tests

Server-side resources used by RSSupplement
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.78 ▲13.30
Dashboard /wp-admin2.75 ▼0.3018.73 ▼23.97
Posts /wp-admin/edit.php2.75 ▼0.3520.38 ▼16.05
Add New Post /wp-admin/post-new.php2.75 ▼2.6818.55 ▼1,488.19
Media Library /wp-admin/upload.php2.75 ▼0.2521.53 ▼19.24
RSSupplement /wp-admin/options-general.php?page=rssupplement/RSSupplement.php2.7623.25

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
rss_settings

Browser metrics Passed 4 tests

An overview of browser requirements for RSSupplement
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲7215.92 ▲0.439.60 ▲0.9546.13 ▼3.17
Dashboard /wp-admin2,935 ▲825.93 ▲0.05138.86 ▲9.39102.35 ▼1.20
Posts /wp-admin/edit.php2,708 ▲22.68 ▲0.0065.66 ▲1.8091.88 ▼1.73
Add New Post /wp-admin/post-new.php1,656 ▲318.70 ▼0.06352.20 ▼7.00111.34 ▲0.30
Media Library /wp-admin/upload.php1,777 ▲55.01 ▲0.01138.56 ▼11.21114.67 ▼0.35
RSSupplement /wp-admin/options-general.php?page=rssupplement/RSSupplement.php1,0772.0955.8563.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 1 option in the database
    • rss_settings

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rssupplement/RSSupplement.php
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just 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/rssupplement/RSSupplement.php:32

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt is a good inspiration

rssupplement/RSSupplement.php 92% from 13 tests

The main file in "RSSupplement" v. 16.07 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rssupplement.php" instead of "RSSupplement.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin120 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11827120

PHP code Passed 2 tests

Analyzing 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.21
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin