84% scroll-text-widget

Code Review | Scroll Text Widget

WordPress plugin Scroll Text Widget scored 84% from 54 tests.

About plugin

  • Plugin page: scroll-text-widget
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 8, 2014
  • Latest release: Jan 22, 2015
  • Number of updates: 7
  • Update frequency: every 54.1 days
  • Top authors: brijeshmkt (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 14,506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.92ms] Passed 4 tests

Analyzing server-side resources used by Scroll Text Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.69 ▼10.06
Dashboard /wp-admin3.33 ▲0.0349.57 ▼9.71
Posts /wp-admin/edit.php3.38 ▲0.0354.41 ▼12.89
Add New Post /wp-admin/post-new.php5.91 ▲0.0399.60 ▲0.99
Media Library /wp-admin/upload.php3.25 ▲0.0336.65 ▲2.36

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_scrollingtext

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scroll Text Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲4813.18 ▲0.002.19 ▼1.1837.14 ▼5.10
Dashboard /wp-admin2,215 ▲65.86 ▼0.00113.36 ▲18.1182.45 ▲42.34
Posts /wp-admin/edit.php2,109 ▲231.97 ▼0.0640.96 ▲2.0031.21 ▼4.29
Add New Post /wp-admin/post-new.php1,532 ▲11923.40 ▲5.67773.69 ▲74.7264.87 ▲13.58
Media Library /wp-admin/upload.php1,409 ▲214.17 ▼0.0897.24 ▼3.7669.82 ▲28.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_scrollingtext
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 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-text-widget/ScrollTextWidget.php:38

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === scroll-text-widget === )
The official readme.txt is a good inspiration

scroll-text-widget/ScrollTextWidget.php 92% from 13 tests

The primary PHP file in "Scroll Text Widget" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("scroll-text-widget.php" instead of "ScrollTextWidget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin120 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15125110
JavaScript112110

PHP code Passed 2 tests

This is a short overview 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.11
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected