84% rss-feed-styles

Code Review | RSS Feed Styles

WordPress plugin RSS Feed Styles scored84%from 54 tests.

About plugin

  • Plugin page: rss-feed-styles
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 13, 2017
  • Latest release: Aug 19, 2019
  • Number of updates: 19
  • Update frequency: every 42.2 days
  • Top authors: lerougeliet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.97ms] Passed 4 tests

Server-side resources used by RSS Feed Styles
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.16 ▼0.56
Dashboard /wp-admin3.33 ▲0.0345.08 ▼4.08
Posts /wp-admin/edit.php3.38 ▲0.0345.47 ▼1.21
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.17 ▲1.16
Media Library /wp-admin/upload.php3.25 ▲0.0333.13 ▼2.04
RSS Feed Styles /wp-admin/options-general.php?page=rss-feed-styles3.2832.22

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 12 new options
New WordPress options
rss_feed_styles_secret_id
theysaidso_admin_options
rss_feed_styles_credit_disabled
rss_feed_styles_enabled_buttons
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
rss_feed_styles_enabled_readers
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for RSS Feed Styles
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.21 ▼1.371.64 ▲0.0440.82 ▲2.58
Dashboard /wp-admin2,214 ▲256.01 ▲1.09101.37 ▼5.7338.86 ▼4.67
Posts /wp-admin/edit.php2,094 ▲52.03 ▲0.0236.68 ▼3.2435.03 ▼4.85
Add New Post /wp-admin/post-new.php1,521 ▼1223.41 ▲0.16649.43 ▲63.1148.58 ▼4.30
Media Library /wp-admin/upload.php1,399 ▲114.20 ▼0.0098.06 ▼12.4343.98 ▲0.10
RSS Feed Styles /wp-admin/options-general.php?page=rss-feed-styles9612.0324.0228.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 10 options
    • rss_feed_styles_enabled_buttons
    • db_upgraded
    • rss_feed_styles_full_html
    • widget_recent-comments
    • widget_theysaidso_widget
    • rss_feed_styles_enabled_readers
    • widget_recent-posts
    • rss_feed_styles_last_fetch_upsell
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rss-feed-styles/includes/class-loader.php:123
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rss-feed-styles/admin/partials/rss-feed-styles-admin-display.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

rss-feed-styles/rss-feed-styles.php Passed 13 tests

The primary PHP file in "RSS Feed Styles" version 1.0.6 is used by WordPress to initiate all plugin functionality
79 characters long description:
Styles your RSS feed automatically. Your RSS feed is at http://myblog.com/feed/

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
Success! There were no dangerous files found in this plugin706 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13111572577
XSLT17068
CSS24458
JavaScript12273

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods37
▷ Static methods616.22%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin