84% scroll-rss-excerpt

Code Review | Scroll rss excerpt

WordPress plugin Scroll rss excerpt scored84%from 54 tests.

About plugin

  • Plugin page: scroll-rss-excerpt
  • Plugin version: 5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2012
  • Latest release: Dec 1, 2022
  • Number of updates: 32
  • Update frequency: every 117.8 days
  • Top authors: gopiplus@hotmail.com (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /8,053 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Scroll rss excerpt
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.90 ▲0.52
Dashboard /wp-admin3.32 ▲0.0248.32 ▼0.70
Posts /wp-admin/edit.php3.37 ▲0.0153.17 ▲3.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.14 ▼21.44
Media Library /wp-admin/upload.php3.24 ▲0.0136.90 ▲1.42
Scroll rss excerpt /wp-admin/options-general.php?page=scroll-rss-excerpt/scroll-rss-excerpt.php3.2133.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 16 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
srsse_height_display_length_s2
srsse_height_display_length_s3
srsse_s1
srsse_height_display_length_s4
srsse_setting
srsse_s4
srsse_height_display_length_s1
...

Browser metrics Passed 4 tests

Checking browser requirements for Scroll rss excerpt
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.39 ▲0.041.85 ▲0.3345.11 ▼0.29
Dashboard /wp-admin2,199 ▲225.56 ▼0.1186.63 ▼4.4338.54 ▼7.39
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0239.34 ▲3.0833.98 ▲0.71
Add New Post /wp-admin/post-new.php1,531 ▲323.11 ▼0.04694.05 ▲59.6952.51 ▼7.25
Media Library /wp-admin/upload.php1,401 ▲14.18 ▲0.0498.02 ▼13.6945.88 ▲1.22
Scroll rss excerpt /wp-admin/options-general.php?page=scroll-rss-excerpt/scroll-rss-excerpt.php1,0532.0031.7228.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-rss-excerpt/scroll-rss-excerpt.php:524

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: vertical, marquee, plugin

scroll-rss-excerpt/scroll-rss-excerpt.php Passed 13 tests

This is the main PHP file of "Scroll rss excerpt" version 5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
114 characters long description:
With this plugin we can setup the RSS slider in our website. in the slider we can configure the title and excerpt.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin617 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP25219488
PO File2304292
JavaScript15737

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions12
▷ Named functions12100.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
PNG images were not found in this plugin