78% rss-news-scroller-by-pierpaolo-romanelli

Code Review | RSS News Scroller

WordPress plugin RSS News Scroller scored78%from 54 tests.

About plugin

  • Plugin page: rss-news-scroller...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Apr 21, 2015
  • Latest release: Apr 22, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: programmo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,034 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.01ms] Passed 4 tests

A check of server-side resources used by RSS News Scroller
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.20 ▼2.00
Dashboard /wp-admin3.35 ▲0.0550.98 ▼6.04
Posts /wp-admin/edit.php3.40 ▲0.0551.06 ▲1.72
Add New Post /wp-admin/post-new.php5.93 ▲0.0588.89 ▼9.41
Media Library /wp-admin/upload.php3.27 ▲0.0536.78 ▼2.57
RSS News /wp-admin/options-general.php?page=rss-news-scroller-by-pierpaolo-romanelli/rss-news-by-pierpaolo-romanelli.php3.2232.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 16 new options
New WordPress options
widget_recent-comments
npr_rss_url
npr_speed
npr_autoplay
npr_title
npr_rss_title
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
...

Browser metrics Passed 4 tests

RSS News Scroller: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.24 ▼1.142.99 ▲0.8546.01 ▼13.02
Dashboard /wp-admin2,210 ▲195.79 ▲0.90108.71 ▲0.8643.48 ▲1.76
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0135.31 ▼5.9932.63 ▼5.18
Add New Post /wp-admin/post-new.php1,536 ▲1723.24 ▲0.04644.09 ▲14.0849.67 ▼5.66
Media Library /wp-admin/upload.php1,389 ▼24.16 ▼0.08103.22 ▲3.4541.93 ▼1.74
RSS News /wp-admin/options-general.php?page=rss-news-scroller-by-pierpaolo-romanelli/rss-news-by-pierpaolo-romanelli.php8652.0327.4226.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=rss-news-scroller-by-pierpaolo-romanelli/rss-news-by-pierpaolo-romanelli.php
    • > Notice in wp-content/plugins/rss-news-scroller-by-pierpaolo-romanelli/rss-news-by-pierpaolo-romanelli.php+197
    Undefined index: npr_submit

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rss-news-scroller-by-pierpaolo-romanelli/rss-news-by-pierpaolo-romanelli.php:283
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/rss-news-scroller-by-pierpaolo-romanelli/rss-news-by-pierpaolo-romanelli.php on line 30
    • > PHP Warning
      include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/rss-news-scroller-by-pierpaolo-romanelli/rss-news-by-pierpaolo-romanelli.php on line 30
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/rss-news-scroller-by-pierpaolo-romanelli/rss-news-by-pierpaolo-romanelli.php on line 30
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rss-news-scroller-by-pierpaolo-romanelli/rss-news-by-pierpaolo-romanelli.php on line 30

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (The screenshot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (The screenshot description corresponds to screenshot-2.(png|jpg|jpeg|gif).), #3 (The screenshot description corresponds to screenshot-3.(png|jpg|jpeg|gif).)
The official readme.txt is a good inspiration

rss-news-scroller-by-pierpaolo-romanelli/rss-news-by-pierpaolo-romanelli.php 92% from 13 tests

The main PHP file in "RSS News Scroller" ver. 1.0.0 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-news-scroller-by-pierpaolo-romanelli.php" instead of "rss-news-by-pierpaolo-romanelli.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
There were no executable files found in this plugin1,919 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript484559995
Markdown1950483
PHP15029210
CSS13422148
HTML124058
JSON10025

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
jqueryslider/images/controls.png2.74KB1.42KB▼ 48.29%