83% rss-feed-modify-on-your-choice

Code Review | feed-modify-on-your-choice

WordPress plugin feed-modify-on-your-choice scored83%from 54 tests.

About plugin

  • Plugin page: rss-feed-modify-o...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2013
  • Latest release: Nov 26, 2013
  • Number of updates: 6
  • Update frequency: every 2.5 days
  • Top authors: cyberkishor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,010 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.23ms] Passed 4 tests

This is a short check of server-side resources used by feed-modify-on-your-choice
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.76 ▼7.48
Dashboard /wp-admin3.32 ▲0.0143.40 ▼9.78
Posts /wp-admin/edit.php3.37 ▲0.0152.63 ▲4.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.67 ▼8.96
Media Library /wp-admin/upload.php3.24 ▲0.0137.07 ▼2.69

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

feed-modify-on-your-choice: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.64 ▲0.341.92 ▲0.0043.10 ▲1.07
Dashboard /wp-admin2,192 ▲125.58 ▼0.0289.02 ▼17.1037.88 ▼7.24
Posts /wp-admin/edit.php2,097 ▼32.05 ▼0.0035.41 ▼4.9030.31 ▼5.37
Add New Post /wp-admin/post-new.php1,554 ▲2318.11 ▼5.04652.35 ▼19.6752.69 ▼0.49
Media Library /wp-admin/upload.php1,394 ▼94.26 ▼0.01100.75 ▼6.3847.16 ▲2.22

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: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/rss-feed-modify-on-your-choice/feedfile/feed-atom-comments.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/rss-feed-modify-on-your-choice/feedfile/feed-atom.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/rss-feed-modify-on-your-choice/feed-modify-on-your-choice.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/rss-feed-modify-on-your-choice/feedfile/feed-rss2.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/rss-feed-modify-on-your-choice/feedfile/feed-rss.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/rss-feed-modify-on-your-choice/feedfile/feed-rss2-comments.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/rss-feed-modify-on-your-choice/feedfile/feed-rdf.php:8

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 90% 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:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

rss-feed-modify-on-your-choice/feed-modify-on-your-choice.php 85% from 13 tests

The main PHP script in "feed-modify-on-your-choice" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rss-feed-modify-on-your-choice.php" instead of "feed-modify-on-your-choice.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin599 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8101366580
PO File12119

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin