84% simple-rss-aggregator

Code Review | Simple RSS Aggregator

WordPress plugin Simple RSS Aggregator scored84%from 54 tests.

About plugin

  • Plugin page: simple-rss-aggreg...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Apr 8, 2013
  • Latest release: Jul 15, 2016
  • Number of updates: 3
  • Update frequency: every 399.0 days
  • Top authors: webarthur (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.62ms] Passed 4 tests

Server-side resources used by Simple RSS Aggregator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0650.60 ▲6.65
Dashboard /wp-admin3.43 ▲0.0979.21 ▲12.48
Posts /wp-admin/edit.php3.41 ▲0.0551.45 ▼3.52
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.15 ▼16.16
Media Library /wp-admin/upload.php3.28 ▲0.0542.02 ▼5.46
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=user_feed3.2738.66
RSS Aggregator /wp-admin/options-general.php?page=simple-rss-aggregator3.3035.01
Add New /wp-admin/post-new.php?post_type=user_feed3.3550.32
User Feeds /wp-admin/edit.php?post_type=user_feed3.3237.24

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple RSS Aggregator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9114.34 ▲0.061.95 ▲0.3542.85 ▲2.32
Dashboard /wp-admin2,227 ▲475.51 ▼0.1481.44 ▼7.5041.23 ▼2.73
Posts /wp-admin/edit.php2,135 ▲321.98 ▼0.0138.90 ▼3.8537.36 ▲1.36
Add New Post /wp-admin/post-new.php1,555 ▲2723.09 ▲0.00667.03 ▼1.4563.03 ▲8.65
Media Library /wp-admin/upload.php1,438 ▲414.18 ▼0.05112.20 ▲11.4142.10 ▼2.91
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=user_feed1,3572.1227.7232.29
RSS Aggregator /wp-admin/options-general.php?page=simple-rss-aggregator1,0071.8530.2426.67
Add New /wp-admin/post-new.php?post_type=user_feed1,7563.8068.7734.40
User Feeds /wp-admin/edit.php?post_type=user_feed1,1041.9031.5033.17

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-rss-aggregator/cron-jobs.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-rss-aggregator/add-userfields.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-rss-aggregator/filters.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-rss-aggregator/admin-template.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-rss-aggregator/add-userfields.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-rss-aggregator/admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

simple-rss-aggregator/simple-rss-aggregator.php Passed 13 tests

The principal PHP file in "Simple RSS Aggregator" v. 1.0.1 is loaded by WordPress automatically on each request
66 characters long description:
Imports and aggregates RSS Feeds using each user as feed provider.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected424 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP815181424

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected