73% rss-control

Code Review | RSS Control

WordPress plugin RSS Control scored73%from 54 tests.

About plugin

  • Plugin page: rss-control
  • Plugin version: 3.0.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 24, 2019
  • Latest release: Jul 5, 2023
  • Number of updates: 23
  • Update frequency: every 60.0 days
  • Top authors: mattpramschufer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,096 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.04MB] [CPU: ▲19.63ms] 75% from 4 tests

Server-side resources used by RSS Control
Please fix the following
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.04MB on /wp-admin/options-general.php?page=rss-control)
PageMemory (MB)CPU Time (ms)
Home /8.93 ▲5.4767.84 ▲14.08
Dashboard /wp-admin8.95 ▲5.6079.19 ▲14.06
Posts /wp-admin/edit.php8.95 ▲5.5983.66 ▲32.67
Add New Post /wp-admin/post-new.php9.39 ▲3.50113.22 ▲17.70
Media Library /wp-admin/upload.php8.95 ▲5.7273.28 ▲34.04
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.9563.19
RSS Control /wp-admin/options-general.php?page=rss-control8.9571.53

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 241 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
fs_debug_mode
widget_recent-posts
fs_active_plugins
can_compress_scripts
fs_accounts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for RSS Control
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.34 ▲0.081.47 ▼0.3831.18 ▼6.63
Dashboard /wp-admin2,216 ▲395.59 ▲0.0493.85 ▼1.0141.17 ▼3.99
Posts /wp-admin/edit.php2,125 ▲221.98 ▲0.0239.67 ▼2.8837.84 ▼0.19
Add New Post /wp-admin/post-new.php1,542 ▲1424.42 ▲1.25653.03 ▼6.7465.48 ▲15.91
Media Library /wp-admin/upload.php1,421 ▲274.20 ▼0.0897.23 ▼4.2345.81 ▼3.35
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0891.6526.0627.50
RSS Control /wp-admin/options-general.php?page=rss-control9811.6724.9566.40

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
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/rss-control/vendor/freemius/wordpress-sdk/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-comments
    • fs_active_plugins
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • fs_accounts
    • widget_recent-posts
    • theysaidso_admin_options
    • fs_debug_mode

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 33× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant RSS_CONTROL_URL - assumed 'RSS_CONTROL_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/rss-control/admin/partials/base.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rss-control/admin/partials/form/taxonomy_term.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rss-control/admin/partials/form/image_styles.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rss-control/admin/partials/form/include_title_in_description.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rss-control/admin/partials/form/button_text.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rss-control/admin/partials/form/excerpt_length.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rss-control/admin/partials/form/excerpt_more_text.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rss-control/admin/partials/form/orderby.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rss-control/admin/partials/form/tag_not_in.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rss-control/admin/partials/form/button_text_styles.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in rss-control/assets to your readme.txt
You can take inspiration from this readme.txt

rss-control/rss-control.php 92% from 13 tests

The principal PHP file in "RSS Control" v. 3.0.8 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin36,267 lines of code in 188 files:
LanguageFilesBlank linesComment linesLines of code
PHP1658,18917,60034,345
PO File2204216961
JavaScript5118158604
CSS14758322
JSON20035

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity79.34
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.49
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes58
▷ Abstract classes23.45%
▷ Concrete classes5696.55%
▷ Final classes00.00%
Methods1,331
▷ Static methods21616.23%
▷ Public methods92869.72%
▷ Protected methods241.80%
▷ Private methods37928.47%
Functions103
▷ Named functions10198.06%
▷ Anonymous functions21.94%
Constants153
▷ Global constants10266.67%
▷ Class constants5133.33%
▷ Public constants51100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon.png14.27KB13.93KB▼ 2.35%
vendor/freemius/wordpress-sdk/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
vendor/freemius/wordpress-sdk/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%