80% fast-news-ticker

Code Review | Fast News Ticker

WordPress plugin Fast News Ticker scored80%from 54 tests.

About plugin

  • Plugin page: fast-news-ticker
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2023
  • Latest release: Jan 20, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: eniversepl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /200 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼1.90MB] [CPU: ▼53.73ms] Passed 4 tests

A check of server-side resources used by Fast News Ticker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.385.25 ▼37.75
Dashboard /wp-admin2.11 ▼1.206.06 ▼44.53
Posts /wp-admin/edit.php2.11 ▼1.257.80 ▼39.57
Add New Post /wp-admin/post-new.php2.11 ▼3.786.71 ▼93.06
Media Library /wp-admin/upload.php2.11 ▼1.126.26 ▼34.48

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Fast News Ticker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲17613.91 ▼0.488.62 ▲6.9240.40 ▼2.26
Dashboard /wp-admin2,226 ▲455.95 ▲0.2192.12 ▼20.5040.69 ▼3.12
Posts /wp-admin/edit.php2,136 ▲362.31 ▲0.3240.14 ▼2.9937.81 ▲0.74
Add New Post /wp-admin/post-new.php1,550 ▲1923.25 ▲0.08697.86 ▼7.1835.32 ▼34.01
Media Library /wp-admin/upload.php1,431 ▲374.43 ▲0.20100.63 ▼21.1941.21 ▼7.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (General settings.), #2 (News Ticker demo.)
The official readme.txt might help

fast-news-ticker/fast-news-ticker.php Passed 13 tests

The primary PHP file in "Fast News Ticker" version 1.0 is used by WordPress to initiate all plugin functionality
51 characters long description:
This plugin will allow you to place scrolling text.

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
Success! There were no dangerous files found in this plugin241 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP23829144
PO File1161649
CSS10028
JavaScript30420

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin