10% wp-filter-combine-rss-feeds

Code Review | WP Filter & Combine RSS Feeds

WordPress plugin WP Filter & Combine RSS Feeds scored10%from 54 tests.

About plugin

  • Plugin page: wp-filter-combine...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2
  • WordPress version: 6.3.1
  • First release: Jan 13, 2018
  • Latest release: May 9, 2019
  • Number of updates: 14
  • Update frequency: every 34.4 days
  • Top authors: Evigeo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,545 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-cron.php+8
    Use of undefined constant wpfcrf - assumed 'wpfcrf' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼0.26MB] [CPU: ▼12.30ms] Passed 4 tests

Analyzing server-side resources used by WP Filter & Combine RSS Feeds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4342.37 ▲0.85
Dashboard /wp-admin3.72 ▲0.4257.05 ▲4.34
Posts /wp-admin/edit.php3.84 ▲0.4855.99 ▲3.29
Add New Post /wp-admin/post-new.php3.57 ▼2.3242.52 ▼56.73
Media Library /wp-admin/upload.php3.64 ▲0.4138.74 ▲3.39
Feeds items /wp-admin/edit.php?post_type=wpfcrf_feeds3.5435.15
Add a feed source /wp-admin/post-new.php?post_type=wpfcrf_sources3.5738.34
Settings /wp-admin/edit.php?post_type=wpfcrf_sources&page=wpfcrf-settings3.5938.81
Feeds sources /wp-admin/edit.php?post_type=wpfcrf_sources3.6940.35

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Filter & Combine RSS Feeds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲15013.49 ▼0.808.27 ▲6.3842.01 ▼4.37
Dashboard /wp-admin2,219 ▲395.58 ▼0.0886.85 ▼3.7481.46 ▲36.62
Posts /wp-admin/edit.php2,142 ▲422.01 ▲0.0238.08 ▲3.0734.55 ▼3.11
Add New Post /wp-admin/post-new.php1,561 ▲3522.99 ▼0.03647.79 ▼59.85145.62 ▲90.39
Media Library /wp-admin/upload.php1,439 ▲394.21 ▼0.01109.82 ▲0.3179.03 ▲31.28
Feeds items /wp-admin/edit.php?post_type=wpfcrf_feeds1,1981.9635.4230.02
Add a feed source /wp-admin/post-new.php?post_type=wpfcrf_sources1,4872.5147.9361.79
Settings /wp-admin/edit.php?post_type=wpfcrf_sources&page=wpfcrf-settings1,6142.0523.8545.28
Feeds sources /wp-admin/edit.php?post_type=wpfcrf_sources1,1261.9536.0129.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wpfcrf_feeds
    • > Notice in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-manage-menus-and-actions.php+198
    Undefined index: wpfcrf_source_filter
    • > GET request to /wp-admin/post-new.php?post_type=wpfcrf_sources
    • > Notice in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-metaboxes.php+76
    Undefined index: wpfcrf_feed_item_metabox_nonce
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wpfcrf_sources
    • > Notice in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-metaboxes.php+132
    Trying to get property 'ID' of non-object
    • > GET request to /wp-admin/post-new.php?post_type=wpfcrf_sources
    • > Notice in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-metaboxes.php+131
    Undefined index: wpfcrf_feed_url_source_metabox_nonce
    • > GET request to /wp-admin/edit.php?post_type=wpfcrf_sources&page=wpfcrf-settings
    • > Notice in wp-content/plugins/wp-filter-combine-rss-feeds/wp-filter-combine-rss-feeds-options.php+248
    date_default_timezone_set(): Timezone ID '' is invalid

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-custom-post-types.php:84
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-admin-submit-form.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-manage-menus-and-actions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-filter-combine-rss-feeds/wp-filter-combine-rss-feeds.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-delete.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-filtering.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-cron.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-filtering.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-filter-combine-rss-feeds/inc/wpfcrf-metaboxes.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 35 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Settings page (page des paramètres).), #2 (RSS Feeds page (pages des flux RSS).), #3 (First example with "dark blocks" template (Exemple avec le thème "dark blocks").), #4 (Second example with a search filter by name and "blue text" template (Exemple avec un filtre de recherche par nom et le thème "blue text").)
You can take inspiration from this readme.txt

wp-filter-combine-rss-feeds/wp-filter-combine-rss-feeds.php 85% from 13 tests

The main file in "WP Filter & Combine RSS Feeds" v. 0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 434 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected2,389 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP122133311,576
PO File26661,332804
CSS7007
JavaScript2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions75
▷ Named functions7397.33%
▷ Anonymous functions22.67%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.95MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon-16x16.png1.27KB0.52KB▼ 58.87%
img/slogan.png21.80KB8.35KB▼ 61.71%
screenshot-3.png174.32KB60.17KB▼ 65.48%
screenshot-4.png149.89KB51.49KB▼ 65.65%
screenshot-1.png529.50KB169.86KB▼ 67.92%