84% rss-slider-on-post

Code Review | Rss slider on post

WordPress plugin Rss slider on post scored84%from 54 tests.

About plugin

  • Plugin page: rss-slider-on-post
  • Plugin version: 8.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.4
  • WordPress version: 6.3.1
  • First release: Apr 2, 2012
  • Latest release: Oct 29, 2023
  • Number of updates: 45
  • Update frequency: every 93.9 days
  • Top authors: gopi_plus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /19,742 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
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.98ms] Passed 4 tests

This is a short check of server-side resources used by Rss slider on post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.26 ▲0.25
Dashboard /wp-admin3.38 ▲0.0844.35 ▼6.15
Posts /wp-admin/edit.php3.43 ▲0.0745.90 ▲4.01
Add New Post /wp-admin/post-new.php5.96 ▲0.0779.51 ▼12.71
Media Library /wp-admin/upload.php3.30 ▲0.0735.27 ▲2.71
Rss slider on post /wp-admin/options-general.php?page=rss-slider-on-post3.2730.31

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 14 new options
New WordPress options
rss_s4
can_compress_scripts
rss_s2
rssslider_height_display_length_s2
rss_s3
widget_theysaidso_widget
rssslider_height_display_length_s1
rssslider_height_display_length_s3
db_upgraded
theysaidso_admin_options
...

Browser metrics Passed 4 tests

A check of browser resources used by Rss slider on post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.23 ▼0.391.78 ▲0.0643.90 ▼0.76
Dashboard /wp-admin2,196 ▲165.54 ▼0.1183.10 ▼11.4138.41 ▲1.79
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0538.51 ▼3.5838.41 ▼0.45
Add New Post /wp-admin/post-new.php1,538 ▲1018.65 ▼4.43582.24 ▼40.5084.88 ▲38.17
Media Library /wp-admin/upload.php1,407 ▲74.17 ▼0.0296.53 ▼0.1545.42 ▲5.31
Rss slider on post /wp-admin/options-general.php?page=rss-slider-on-post1,0121.9922.9526.75

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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× 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-slider-on-post/rss-slider-on-post.php:428

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: slider, rss, feed

rss-slider-on-post/rss-slider-on-post.php 92% from 13 tests

The entry point to "Rss slider on post" version 8.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 224 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected529 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP25129378
PO File24258113
JavaScript172437
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin