84% rss-icon-widget

Code Review | RSS Icon Widget

WordPress plugin RSS Icon Widget scored84%from 54 tests.

About plugin

  • Plugin page: rss-icon-widget
  • Plugin version: 5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.8.3
  • WordPress version: 6.3.1
  • First release: Dec 5, 2008
  • Latest release: Jan 15, 2022
  • Number of updates: 36
  • Update frequency: every 133.1 days
  • Top authors: brandondove (75%)nateconley (27.78%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /39,642 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.07MB] [CPU: ▼1.45ms] Passed 4 tests

Analyzing server-side resources used by RSS Icon Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.78 ▲1.13
Dashboard /wp-admin3.38 ▲0.0750.15 ▼1.55
Posts /wp-admin/edit.php3.49 ▲0.1347.80 ▼2.90
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.78 ▼2.49
Media Library /wp-admin/upload.php3.30 ▲0.0744.61 ▲10.35
RSS Icon Widget Changelog /wp-admin/admin.php?page=rssiw-changelog3.2833.92

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

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

Browser metrics Passed 4 tests

Checking browser requirements for RSS Icon Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.251.79 ▲0.0843.74 ▼7.17
Dashboard /wp-admin2,195 ▲235.53 ▼0.0888.29 ▼17.0239.30 ▼6.55
Posts /wp-admin/edit.php2,097 ▼61.97 ▼0.0236.17 ▼8.7236.86 ▼3.37
Add New Post /wp-admin/post-new.php1,535 ▲718.28 ▼4.72638.01 ▼22.7779.98 ▲25.72
Media Library /wp-admin/upload.php1,403 ▼04.20 ▲0.0799.38 ▼11.9041.17 ▼5.07
RSS Icon Widget Changelog /wp-admin/admin.php?page=rssiw-changelog1,0792.1123.5927.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_rssiconwidget
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_dynamicrssiconwidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rss-icon-widget/views/changelog.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/rss-icon-widget/rss-icon-widget.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rss-icon-widget/lib/changelog.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: rss feed, feed icon, sidebar, widget

rss-icon-widget/rss-icon-widget.php 92% from 13 tests

Analyzing the main PHP file in "RSS Icon Widget" version 5.2
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected554 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP39084350
SVG301168
CSS16025
JavaScript10011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods743.75%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/feed-icon-12x12.png0.54KB0.49KB▼ 9.78%
icons/feed-icon-14x14.png0.67KB0.70KB0.00%
icons/feed-icon-24x24.png1.06KB0.97KB▼ 8.62%
icons/feed-icon-10x10.png0.46KB0.39KB▼ 14.07%
icons/feed-icon-32x32.png1.41KB1.19KB▼ 15.34%