84% rss-scroller

Code Review | rss scroller

WordPress plugin rss scroller scored84%from 54 tests.

About plugin

  • Plugin page: rss-scroller
  • Plugin version: 8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 63
  • Update frequency: every 76.5 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /24,682 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.07MB] [CPU: ▼4.81ms] Passed 4 tests

This is a short check of server-side resources used by rss scroller
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.19 ▼3.31
Dashboard /wp-admin3.37 ▲0.0751.74 ▼0.16
Posts /wp-admin/edit.php3.42 ▲0.0749.52 ▼2.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0787.00 ▼13.28
Media Library /wp-admin/upload.php3.30 ▲0.0740.80 ▲4.10
RSS scroller /wp-admin/options-general.php?page=rss-scroller3.2632.43

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 15 new options
New WordPress options
rss_scr_num
rss_scr_width
db_upgraded
rss_scr_title
widget_theysaidso_widget
rss_scr_delay
can_compress_scripts
widget_recent-comments
rss_scr_url2
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for rss scroller
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼1.134.97 ▲2.8343.79 ▼1.47
Dashboard /wp-admin2,210 ▲254.86 ▼1.04101.95 ▼3.4138.40 ▼10.38
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0335.60 ▼1.8933.60 ▼2.77
Add New Post /wp-admin/post-new.php1,536 ▲323.22 ▼0.02683.82 ▼34.9752.59 ▼7.05
Media Library /wp-admin/upload.php1,392 ▲74.18 ▼0.0397.79 ▼9.1343.27 ▼5.63
RSS scroller /wp-admin/options-general.php?page=rss-scroller9202.0225.1329.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rss-scroller/rss-scroller.php:99

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: scrolling, rss, horizontal

rss-scroller/rss-scroller.php Passed 13 tests

The primary PHP file in "rss scroller" version 8.1 is used by WordPress to initiate all plugin functionality
127 characters long description:
This plug-in will display RSS feed with simple scroller or ticker. It gradually reveals each item into view from left to right.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin514 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24332337
PO File25862146
JavaScript13031

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions10
▷ Named functions10100.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
There are no PNG files in this plugin