73% feedwordpress

Code Review | FeedWordPress

WordPress plugin FeedWordPress scored73%from 54 tests.

About plugin

  • Plugin page: feedwordpress
  • Plugin version: 2022.0222
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 6.3.1
  • First release: Nov 21, 2007
  • Latest release: Feb 22, 2022
  • Number of updates: 651
  • Update frequency: every 8.1 days
  • Top authors: radgeek (100%)

Code review

54 tests

User reviews

58 reviews

Install metrics

10,000+ active /1,271,368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.13MB] [CPU: ▼3.02ms] Passed 4 tests

An overview of server-side resources used by FeedWordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.32 ▲1.8655.10 ▲14.61
Dashboard /wp-admin5.15 ▲1.8560.89 ▲12.70
Posts /wp-admin/edit.php5.20 ▲1.8462.92 ▲16.73
Add New Post /wp-admin/post-new.php4.93 ▼0.9547.02 ▼50.77
Media Library /wp-admin/upload.php5.01 ▲1.7848.04 ▲11.37
Categories & Tags /wp-admin/admin.php?page=feedwordpress/categories-page.php5.1650.45
Performance /wp-admin/admin.php?page=feedwordpress/performance-page.php5.0152.42
Feeds & Updates /wp-admin/admin.php?page=feedwordpress/feeds-page.php5.3651.71
Syndicated Sites /wp-admin/admin.php?page=feedwordpress/syndication.php4.9744.04
Diagnostics /wp-admin/admin.php?page=feedwordpress/diagnostics-page.php5.1046.13
Authors /wp-admin/admin.php?page=feedwordpress/authors-page.php5.0947.03
Posts & Links /wp-admin/admin.php?page=feedwordpress/posts-page.php5.1651.18

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 11 new options
New WordPress options
feedwordpress_cat_id
db_upgraded
widget_links
feedwordpress_secret_key
feedwordpress_version
feedwordpress_diagnostics_log
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
...

Browser metrics Passed 4 tests

FeedWordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,023 ▲25213.32 ▼1.271.96 ▼0.0737.63 ▼9.01
Dashboard /wp-admin2,429 ▲2385.88 ▲0.84104.90 ▼2.3168.96 ▲23.81
Posts /wp-admin/edit.php2,166 ▲771.99 ▲0.0039.90 ▲0.4035.18 ▼1.38
Add New Post /wp-admin/post-new.php6,270 ▲4,72818.93 ▲0.741,009.58 ▲342.3460.07 ▲7.22
Media Library /wp-admin/upload.php1,456 ▲714.24 ▲0.02100.39 ▼7.6682.83 ▲40.32
Categories & Tags /wp-admin/admin.php?page=feedwordpress/categories-page.php1,5002.8359.4373.33
Performance /wp-admin/admin.php?page=feedwordpress/performance-page.php1,0362.4143.0768.36
Feeds & Updates /wp-admin/admin.php?page=feedwordpress/feeds-page.php1,5352.6949.8661.65
Syndicated Sites /wp-admin/admin.php?page=feedwordpress/syndication.php1,2002.4547.8145.21
Diagnostics /wp-admin/admin.php?page=feedwordpress/diagnostics-page.php1,5592.6050.5762.34
Authors /wp-admin/admin.php?page=feedwordpress/authors-page.php1,1462.3746.9554.67
Posts & Links /wp-admin/admin.php?page=feedwordpress/posts-page.php1,7932.7652.3877.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 11 options
    • feedwordpress_secret_key
    • widget_theysaidso_widget
    • feedwordpress_version
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • feedwordpress_cat_id
    • feedwordpress_diagnostics_log
    • db_upgraded
    • widget_links
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=feedwordpress/syndication.php
    • > Notice in wp-content/plugins/feedwordpress/feedwordpress.php+2292
    Undefined variable: type

SRP 0% 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/feedwordpress/feedwordpressparsedpostmeta.class.php
    • > /wp-content/plugins/feedwordpress/templates/notice-debug-mode-yes.html.php
  • 50× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      require_once(ABSPATHWPINC/class-simplepie.php): failed to open stream: No such file or directory in wp-content/plugins/feedwordpress/feedfinder.class.php on line 9
    • > PHP Notice
      Undefined index: argv in wp-content/plugins/feedwordpress/feedwordpressparsedpostmeta.class.php on line 287
    • > PHP Fatal error
      Uncaught Error: Class 'MyPHP' not found in wp-content/plugins/feedwordpress/feedwordpressadminpage.class.php:181
    • > PHP Warning
      require_once(ABSPATHWPINC/class-simplepie.php): failed to open stream: No such file or directory in wp-content/plugins/feedwordpress/extend/SimplePie/feedwordpie_content_type_sniffer.class.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/feedwordpress/feedwordpress-walker-category-checklist.class.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-simplepie.php' (include_path='.:/usr/share/php') in wp-content/plugins/feedwordpress/feedfinder.class.php on line 9
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/feedwordpress/feedfinder.class.php on line 9
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/feedwordpress/feedwordpress-walker-category-checklist.class.php on line 10
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/feedwordpress/feedwordpress-walker-category-checklist.class.php on line 10
    • > PHP Warning
      require_once(ABSPATHWPINC/class-simplepie.php): failed to open stream: No such file or directory in wp-content/plugins/feedwordpress/feedfinder.class.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: syndication, aggregation, atom, rss, feed

feedwordpress/feedwordpress.php Passed 13 tests

The main file in "FeedWordPress" v. 2022.0222 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
simple and flexible Atom/RSS syndication for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin14,538 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP482,6492,69113,478
JavaScript112432629
CSS1384431

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity50.79
▷ Minimum class complexity1.00
▷ Maximum class complexity328.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes39
▷ Abstract classes00.00%
▷ Concrete classes39100.00%
▷ Final classes00.00%
Methods539
▷ Static methods8014.84%
▷ Public methods52998.14%
▷ Protected methods91.67%
▷ Private methods10.19%
Functions68
▷ Named functions68100.00%
▷ Anonymous functions00.00%
Constants43
▷ Global constants43100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plus.png0.86KB0.91KB0.00%
assets/images/paypal-donation-64px.png1.84KB1.78KB▼ 3.50%
down.png0.87KB0.91KB0.00%
assets/images/btc-qr-128px.png8.18KB4.39KB▼ 46.35%
assets/images/btc-qr.png6.40KB3.13KB▼ 51.11%