78% multi-feed-reader

Code Review | Multi Feed Reader

WordPress plugin Multi Feed Reader scored 78% from 54 tests.

About plugin

  • Plugin page: multi-feed-reader
  • Plugin version: 2.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7.5
  • WordPress version: 6.3.1
  • First release: Feb 1, 2012
  • Latest release: May 27, 2017
  • Number of updates: 47
  • Update frequency: every 41.3 days
  • Top authors: eteubert (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 16,712 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.16MB] [CPU: ▼10.26ms] Passed 4 tests

A check of server-side resources used by Multi Feed Reader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1650.08 ▼4.55
Dashboard /wp-admin3.46 ▲0.1656.67 ▲1.97
Posts /wp-admin/edit.php3.58 ▲0.2266.31 ▲5.73
Add New Post /wp-admin/post-new.php6.05 ▲0.1691.45 ▼36.30
Media Library /wp-admin/upload.php3.39 ▲0.1637.23 ▼2.17
Multi Feed Reader /wp-admin/options-general.php?page=multi_feed_reader_handle3.4037.01

Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/multi-feed-reader/" and "wp-content/uploads/"
    • (new file) wp-content/multi-feed-reader/cache/.empty
Filesystem: 19 new files
Database: 2 new tables, 6 new options
New tables
wp_multifeedreader_feed
wp_multifeedreader_feedcollection
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Multi Feed Reader
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲413.69 ▼1.051.89 ▼0.3543.41 ▼11.14
Dashboard /wp-admin2,213 ▲104.83 ▼1.05111.83 ▼15.9542.55 ▼5.72
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0136.68 ▼9.5938.10 ▲0.90
Add New Post /wp-admin/post-new.php1,545 ▲1217.94 ▼5.22764.16 ▲152.8363.64 ▲9.51
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.12104.21 ▼3.5445.64 ▲1.74
Multi Feed Reader /wp-admin/options-general.php?page=multi_feed_reader_handle1,1342.0329.2233.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
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
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multi-feed-reader/bootstrap/constants.php on line 25
    • > PHP Fatal error
      Uncaught Error: Class 'MultiFeedReader\\Models\\Base' not found in wp-content/plugins/multi-feed-reader/lib/models/feed_collection.php:4
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/multi-feed-reader/bootstrap/constants.php on line 25
    • > PHP Fatal error
      Uncaught Error: Class 'MultiFeedReader\\Models\\Base' not found in wp-content/plugins/multi-feed-reader/lib/models/feed.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MultiFeedReader\\Settings\\add_action() in wp-content/plugins/multi-feed-reader/mfrsettings.php:106
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/multi-feed-reader/bootstrap/constants.php on line 25
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/multi-feed-reader/bootstrap/constants.php on line 25
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/multi-feed-reader/bootstrap/constants.php on line 25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MultiFeedReader\\register_activation_hook() in wp-content/plugins/multi-feed-reader/plugin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MultiFeedReader\\Settings\\add_action() in wp-content/plugins/multi-feed-reader/mfrsettings.php:106

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=multi_feed_reader_handle
    • > Network (severe)
    https://button.flattr.com/loader.js?mode=auto - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 97% 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 your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The Admin Interface), #2 (Example Archive)
You can look at the official readme.txt

multi-feed-reader/multi-feed-reader.php Passed 13 tests

"Multi Feed Reader" version 2.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
Reads multiple feeds. Output can be customized via templates. Is displayed via Shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,269 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP142382411,138
PO File154108131

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.80
▷ Minimum class complexity3.00
▷ Maximum class complexity20.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods48
▷ Static methods1735.42%
▷ Public methods3981.25%
▷ Protected methods00.00%
▷ Private methods918.75%
Functions38
▷ Named functions2360.53%
▷ Anonymous functions1539.47%
Constants13
▷ Global constants538.46%
▷ Class constants861.54%
▷ Public constants8100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.57MB with 0.38MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png314.34KB103.58KB▼ 67.05%
screenshot-1.png268.95KB94.04KB▼ 65.03%