88% rss-news-scroller

Code Review | RSS News Scroller

WordPress plugin RSS News Scroller scored 88% from 54 tests.

About plugin

  • Plugin page: rss-news-scroller
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 5.9.2
  • First release: Dec 26, 2013
  • Latest release: Aug 19, 2016
  • Number of updates: 10
  • Update frequency: every 96.8 days
  • Top authors: vimal.ghorecha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 5,133 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by RSS News Scroller
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0255.92 ▲0.93
Dashboard /wp-admin3.42 ▲0.0135.10 ▲1.47
Posts /wp-admin/edit.php3.65 ▲0.0134.20 ▼2.17
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.15 ▼1,176.00
Media Library /wp-admin/upload.php3.30 ▲0.0125.36 ▼8.33
RSS News Scroller by Vimal Ghorecha /wp-admin/options-general.php?page=rss-news-scroller/rss-news-scroller-by-vimal-ghorecha.php3.2523.71

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options
vhg_title
vhg_full3D
vhg_rss_title
vhg_pause
vhg_news_items
vhg_opacity
vhg_rss_url
vhg_shading
vhg_speed
vhg_direction

Browser metrics Passed 4 tests

An overview of browser requirements for RSS News Scroller
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲4515.69 ▲0.458.40 ▲1.013.33 ▲0.73
Dashboard /wp-admin2,893 ▲336.15 ▼0.11121.10 ▼3.44160.48 ▼1.16
Posts /wp-admin/edit.php2,690 ▲53.22 ▼0.0167.51 ▲1.09156.83 ▲9.46
Add New Post /wp-admin/post-new.php1,714 ▲5920.91 ▲0.51461.06 ▲27.13160.22 ▼12.29
Media Library /wp-admin/upload.php1,703 ▲85.52 ▲0.05149.40 ▲6.49191.83 ▼10.43
RSS News Scroller by Vimal Ghorecha /wp-admin/options-general.php?page=rss-news-scroller/rss-news-scroller-by-vimal-ghorecha.php1,0842.3879.55109.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=rss-news-scroller/rss-news-scroller-by-vimal-ghorecha.php
    • > Notice in wp-content/plugins/rss-news-scroller/rss-news-scroller-by-vimal-ghorecha.php+177
    Undefined index: vhg_submit

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rss-news-scroller/rss-news-scroller-by-vimal-ghorecha.php:262

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: rss, news, scroller

rss-news-scroller/rss-news-scroller-by-vimal-ghorecha.php 92% from 13 tests

The main file in "RSS News Scroller" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rss-news-scroller.php" instead of "rss-news-scroller-by-vimal-ghorecha.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected690 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12673503
PHP14536187

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
imageCubeShad.png0.08KB0.08KB▼ 3.53%
imageCubeHigh.png0.14KB0.11KB▼ 21.83%