10% rssfeedchecker

Code Review | RSS Feed Checker

WordPress plugin RSS Feed Checker scored10%from 54 tests.

About plugin

  • Plugin page: rssfeedchecker
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.1
  • WordPress version: 6.3.1
  • First release: May 13, 2012
  • Latest release: Feb 26, 2019
  • Number of updates: 40
  • Update frequency: every 80.5 days
  • Top authors: Workshopshed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /7,339 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/rssfeedchecker/RSSFeedCheckerWidget.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; RSSCheckWidget has a deprecated constructor

Server metrics [RAM: ▼1.81MB] [CPU: ▼54.64ms] Passed 4 tests

This is a short check of server-side resources used by RSS Feed Checker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.285.50 ▼33.37
Dashboard /wp-admin2.20 ▼1.116.18 ▼44.77
Posts /wp-admin/edit.php2.20 ▼1.167.20 ▼44.36
Add New Post /wp-admin/post-new.php2.20 ▼3.697.05 ▼96.06
Media Library /wp-admin/upload.php2.20 ▼1.036.82 ▼31.64
All Links /wp-admin/link-manager.php2.226.72
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category2.206.63
Add New /wp-admin/link-add.php2.206.25
RSS Feed Checker /wp-admin/link-manager.php?page=RSSFeedChecker2.228.14

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 8 new options
New tables
wp_links_rss
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_rsscheckwidget
widget_recent-comments
widget_links
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for RSS Feed Checker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.39 ▲0.001.74 ▼0.0941.80 ▼4.06
Dashboard /wp-admin2,230 ▲535.59 ▼0.0583.47 ▼8.4639.53 ▼5.02
Posts /wp-admin/edit.php2,141 ▲412.05 ▼0.0141.49 ▲3.1841.69 ▲1.54
Add New Post /wp-admin/post-new.php1,561 ▲1617.71 ▼5.52708.85 ▲66.4357.55 ▼11.26
Media Library /wp-admin/upload.php1,441 ▲444.20 ▲0.02101.83 ▲0.1240.31 ▼3.96
All Links /wp-admin/link-manager.php1,0781.7127.0532.67
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,3182.3031.1029.96
Add New /wp-admin/link-add.php1,7102.2750.6838.92
RSS Feed Checker /wp-admin/link-manager.php?page=RSSFeedChecker9481.7629.0630.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/rssfeedchecker/RSSFeedCheckerWidget.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; RSSCheckWidget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_links
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_rsscheckwidget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/link-manager.php?page=RSSFeedChecker
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/rssfeedchecker/RSSFeedCheckerWidget.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; RSSCheckWidget has a deprecated constructor
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/link-manager.php?page=RSSFeedChecker
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/rssfeedchecker/RSSFeedCheckerWidget.php+15
    Function create_function() is deprecated
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/link-manager.php?page=RSSFeedChecker
    • > POST request to /wp-admin/admin-ajax.php
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RSSCheckWidget is deprecated since version 4.3.0! Use __construct() instead.
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/link-manager.php?page=RSSFeedChecker
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/rssfeedchecker/RSSFeedCheckerSettings.php+79
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/link-manager.php?page=RSSFeedChecker
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/rssfeedchecker/RSSFeedCheckerUI.php+186
    Undefined variable: message
    • > GET request to /wp-admin/link-manager.php?page=RSSFeedChecker
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/rssfeedchecker/RSSFeedCheckerUI.php+190
    Non-static method RSSCheckerProcessor::get_server_load() should not be called statically
    • > GET request to /wp-admin/link-manager.php?page=RSSFeedChecker
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/rssfeedchecker/RSSFeedCheckerUI.php+193
    Trying to get property 'rss_address' of non-object
    • > GET request to /wp-admin/link-manager.php?page=RSSFeedChecker
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/rssfeedchecker/RSSFeedCheckerUI.php+197
    Undefined variable: workresult

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
Please fix the following items
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/rssfeedchecker/RSSFeedCheckerProcessor.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/rssfeedchecker/uninstall.php:11
    • > PHP Warning
      include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/rssfeedchecker/RSSFeedCheckerProcessor.php on line 17
    • > PHP Warning
      include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/rssfeedchecker/RSSFeedCheckerProcessor.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rssfeedchecker/RSSFeedCheckerWidget.php:13
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/rssfeedchecker/RSSFeedCheckerProcessor.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rssfeedchecker/RSSFeedCheckerWidget.php:13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rssfeedchecker/RSSFeedCheckerProcessor.php on line 17
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rssfeedchecker/RSSFeedCheckerProcessor.php on line 17
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/rssfeedchecker/RSSFeedCheckerProcessor.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: blogroll, rss

rssfeedchecker/RSSFeedChecker.php 92% from 13 tests

The main PHP file in "RSS Feed Checker" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rssfeedchecker.php" instead of "RSSFeedChecker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected856 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8228157809
JavaScript18339
CSS1108

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity11.43
▷ Minimum class complexity3.00
▷ Maximum class complexity24.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods82
▷ Static methods7186.59%
▷ Public methods82100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin