84% sx-rss-ticker

Code Review | Sx RSS Ticker

WordPress plugin Sx RSS Ticker scored84%from 54 tests.

About plugin

  • Plugin page: sx-rss-ticker
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.2.2
  • WordPress version: 6.3.1
  • First release: May 14, 2015
  • Latest release: May 20, 2015
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: sabrex82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,632 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼8.14ms] Passed 4 tests

A check of server-side resources used by Sx RSS Ticker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.79 ▼1.45
Dashboard /wp-admin3.42 ▲0.0845.26 ▼15.11
Posts /wp-admin/edit.php3.48 ▲0.1244.53 ▼1.99
Add New Post /wp-admin/post-new.php6.01 ▲0.1278.34 ▼14.02
Media Library /wp-admin/upload.php3.35 ▲0.1238.47 ▲1.87
Sx Rss Ticker /wp-admin/options-general.php?page=sx-rss-ticker3.3130.69

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 10 new options
New WordPress options
sxrssticker_setting_s4
widget_theysaidso_widget
can_compress_scripts
sxrssticker_setting_s1
sxrssticker_setting_s3
theysaidso_admin_options
widget_recent-comments
db_upgraded
sxrssticker_setting_s2
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Sx RSS Ticker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.36 ▼0.022.38 ▲0.5236.57 ▼5.07
Dashboard /wp-admin2,199 ▲225.62 ▼0.0489.91 ▼2.4141.71 ▲5.03
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0439.85 ▼2.3535.94 ▲1.08
Add New Post /wp-admin/post-new.php1,529 ▼223.08 ▼0.13613.41 ▼9.5077.40 ▲16.70
Media Library /wp-admin/upload.php1,407 ▲104.14 ▼0.09104.33 ▼5.2442.79 ▼2.69
Sx Rss Ticker /wp-admin/options-general.php?page=sx-rss-ticker1,8412.0025.2126.31

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
  • Zombie WordPress options were found after uninstall: 10 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • sxrssticker_setting_s4
    • sxrssticker_setting_s2
    • sxrssticker_setting_s1
    • widget_recent-posts
    • theysaidso_admin_options
    • sxrssticker_setting_s3
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sx-rss-ticker/sx-rss-ticker.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
6 plugin tags: rss, news, feed, ticker, slider...

sx-rss-ticker/sx-rss-ticker.php 92% from 13 tests

The main PHP script in "Sx RSS Ticker" version 2.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 244 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin689 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP18339544
PO File13871110
CSS121032
JavaScript12122
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin