10% rss-advanced-widget

Code Review | RSS Advanced Widget

WordPress plugin RSS Advanced Widget scored 10% from 54 tests.

About plugin

  • Plugin page: rss-advanced-widget
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Mar 3, 2014
  • Latest release: Mar 3, 2014
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: mbrughi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,278 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/rss-advanced-widget/mbWidgetRss.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; mbr_raw_widget has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼50.42ms] Passed 4 tests

A check of server-side resources used by RSS Advanced Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.188.31 ▼30.16
Dashboard /wp-admin2.29 ▼1.0110.97 ▼39.51
Posts /wp-admin/edit.php2.29 ▼1.0611.22 ▼42.85
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.23 ▼89.14
Media Library /wp-admin/upload.php2.29 ▼0.9410.57 ▼24.07

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_mbr_raw_widget

Browser metrics Passed 4 tests

RSS Advanced Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.001.90 ▲0.2940.68 ▼1.15
Dashboard /wp-admin2,206 ▲154.87 ▼0.04106.80 ▲3.7739.45 ▼0.90
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0640.25 ▼0.3435.31 ▲0.53
Add New Post /wp-admin/post-new.php1,533 ▼123.27 ▲0.37657.97 ▼5.6551.39 ▲1.88
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0095.77 ▼0.0340.04 ▼2.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in mbr_raw_widget is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_mbr_raw_widget
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rss-advanced-widget/mbWidgetRss.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === rss-advanced-widget === )
The official readme.txt might help

rss-advanced-widget/mbWidgetRss.php 85% from 13 tests

The main PHP file in "RSS Advanced Widget" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rss-advanced-widget.php" instead of "mbWidgetRss.php")
  • Description: The description should be shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected73 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1193173

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin