84% continuous-rss-scrolling

Code Review | Continuous rss scrolling

WordPress plugin Continuous rss scrolling scored84%from 54 tests.

About plugin

  • Plugin page: continuous-rss-sc...
  • Plugin version: 11.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Sep 5, 2010
  • Latest release: Dec 1, 2022
  • Number of updates: 72
  • Update frequency: every 62.1 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /56,827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Continuous rss scrolling
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.46 ▼2.17
Dashboard /wp-admin3.39 ▲0.0548.12 ▼12.61
Posts /wp-admin/edit.php3.44 ▲0.0845.18 ▼4.59
Add New Post /wp-admin/post-new.php5.97 ▲0.0895.16 ▼20.78
Media Library /wp-admin/upload.php3.32 ▲0.0836.25 ▼6.88
Continuous rss scrolling /wp-admin/options-general.php?page=continuous-rss-scrolling3.2832.01

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 14 new options
New WordPress options
crs_display_width
crs_display_count
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
crs_record_height
widget_continuousrssscrolling
crs_title
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for Continuous rss scrolling
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.18 ▼1.251.89 ▲0.1739.40 ▲1.95
Dashboard /wp-admin2,210 ▲245.83 ▲0.9193.22 ▼23.7439.19 ▼2.21
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0433.33 ▼5.6033.39 ▼1.83
Add New Post /wp-admin/post-new.php1,547 ▲3318.42 ▲0.86596.72 ▼97.3052.91 ▼10.45
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.2593.92 ▼18.4441.04 ▼7.73
Continuous rss scrolling /wp-admin/options-general.php?page=continuous-rss-scrolling8792.0327.7529.52

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_continuousrssscrolling

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/continuous-rss-scrolling/continuous-rss-scrolling.php:288

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: continuous, rss, scrolling

continuous-rss-scrolling/continuous-rss-scrolling.php Passed 13 tests

Analyzing the main PHP file in "Continuous rss scrolling" version 11.2
112 characters long description:
This plugin will scroll the RSS title continuously in the wordpress website, we can use this plugin as a widget.

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 plugin594 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP25322398
PO File25962158
JavaScript172538

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ 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%
Functions9
▷ Named functions9100.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
No PNG images were found in this plugin