84% rss-news-display

Code Review | Rss news display

WordPress plugin Rss news display scored84%from 54 tests.

About plugin

  • Plugin page: rss-news-display
  • Plugin version: 9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2012
  • Latest release: Dec 1, 2022
  • Number of updates: 48
  • Update frequency: every 81.1 days
  • Top authors: gopi_plus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /38,368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Rss news display
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.85 ▼3.58
Dashboard /wp-admin3.33 ▼0.0246.60 ▼10.74
Posts /wp-admin/edit.php3.38 ▲0.0249.31 ▼0.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.23 ▼18.20
Media Library /wp-admin/upload.php3.25 ▲0.0236.12 ▼4.07
Rss news display /wp-admin/options-general.php?page=rss-news-display3.2228.63

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 17 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
rssnews_rss3
rssnews_rss4
rssnews_rss2
widget_recent-posts
widget_rssnewsdisplay
rssnews_direction5
rssnews_direction3
widget_recent-comments
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rss news display
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15513.43 ▼0.928.55 ▲6.7739.14 ▼1.84
Dashboard /wp-admin2,202 ▲255.63 ▲0.0584.06 ▼8.0636.38 ▼3.30
Posts /wp-admin/edit.php2,083 ▼172.00 ▲0.0134.41 ▼2.3033.39 ▼3.20
Add New Post /wp-admin/post-new.php1,530 ▲423.26 ▲0.27638.84 ▼4.2954.05 ▲3.11
Media Library /wp-admin/upload.php1,401 ▲14.21 ▲0.01101.60 ▲1.0941.43 ▼1.90
Rss news display /wp-admin/options-general.php?page=rss-news-display1,0701.9923.1130.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_rssnewsdisplay
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rss-news-display/rss-news-display.php:369

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
4 plugin tags: wordpress, news, rss, plugin

rss-news-display/rss-news-display.php 92% from 13 tests

"Rss news display" version 9.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 541 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin758 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP24731475
PO File377112186
CSS1112594
JavaScript10252
HTML1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.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
There were not PNG files found in your plugin