68% sb-rss-feed-plus

Code Review | SB RSS feed plus

WordPress plugin SB RSS feed plus scored 68% from 54 tests.

About plugin

  • Plugin page: sb-rss-feed-plus
  • Plugin version: 1.4.20
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Jan 14, 2013
  • Latest release: Aug 26, 2017
  • Number of updates: 53
  • Update frequency: every 31.8 days
  • Top authors: ladislav.soukup@gmail.com (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active / 119,370 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.55MB] [CPU: ▼44.68ms] Passed 4 tests

Analyzing server-side resources used by SB RSS feed plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.41 ▼1.058.88 ▼33.11
Dashboard /wp-admin2.47 ▼0.8313.45 ▼35.56
Posts /wp-admin/edit.php2.47 ▼0.8915.60 ▼29.53
Add New Post /wp-admin/post-new.php2.47 ▼3.4212.06 ▼80.52
Media Library /wp-admin/upload.php2.47 ▼0.7612.34 ▼22.17
SB RSS feed + /wp-admin/options-general.php?page=sbrss_feed_plus2.4713.88

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for SB RSS feed plus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.66 ▼0.911.48 ▼0.2541.01 ▼2.86
Dashboard /wp-admin2,210 ▲225.83 ▼0.0398.03 ▼16.4940.50 ▼7.28
Posts /wp-admin/edit.php2,110 ▲212.25 ▲0.2240.43 ▲4.5434.71 ▲1.50
Add New Post /wp-admin/post-new.php1,533 ▲1923.34 ▲5.82668.66 ▲33.5856.39 ▲4.49
Media Library /wp-admin/upload.php1,405 ▲204.26 ▲0.0897.47 ▲1.6442.17 ▼2.34
SB RSS feed + /wp-admin/options-general.php?page=sbrss_feed_plus1,2321.9127.4253.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/sb-rss-feed-plus/settings/sbrssfeed-cfg.php+87
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=sbrss_feed_plus
    • > Notice in wp-content/plugins/sb-rss-feed-plus/settings/sbrssfeed-cfg.php+87
    Trying to access array offset on value of type bool
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sbrss_feed_plus
    • > Warning in wp-content/plugins/sb-rss-feed-plus/SB-RSS_feed-plus.php+420
    ksort() expects parameter 1 to be array, object given

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpsf_get_settings() in wp-content/plugins/sb-rss-feed-plus/settings/sbrssfeed-cfg.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sb-rss-feed-plus/SB-RSS_feed-plus.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: There are too many tags (19 tag instead of maximum 10)
The official readme.txt is a good inspiration

sb-rss-feed-plus/SB-RSS_feed-plus.php 92% from 13 tests

"SB RSS feed plus" version 1.4.20's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sb-rss-feed-plus.php" instead of "SB-RSS_feed-plus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin865 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3123160730
PO File158115135

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity53.50
▷ Minimum class complexity48.00
▷ Maximum class complexity59.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin