89% t4b-news-ticker

Code Review | T4B News Ticker - Responsive News Scroller, Slider, and Animations

WordPress plugin T4B News Ticker - Responsive News Scroller, Slider, and Animations scored89%from 54 tests.

About plugin

  • Plugin page: t4b-news-ticker
  • Plugin version: 1.2.9
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2014
  • Latest release: Nov 23, 2023
  • Number of updates: 64
  • Update frequency: every 50.8 days
  • Top authors: moviehour (92.19%)realwebcare (9.38%)

Code review

54 tests

User reviews

8 reviews

Install metrics

6,000+ active /67,267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼0.30ms] Passed 4 tests

Server-side resources used by T4B News Ticker - Responsive News Scroller, Slider, and Animations
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.79 ▼14.28
Dashboard /wp-admin3.45 ▲0.1553.08 ▲4.83
Posts /wp-admin/edit.php3.50 ▲0.1554.26 ▲9.41
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.53 ▼1.14
Media Library /wp-admin/upload.php3.30 ▲0.0742.86 ▲11.06
Ticker Settings /wp-admin/options-general.php?page=t4bnt-settings3.3343.27

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
t4bnt_general
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
t4bnt_activation_time

Browser metrics Passed 4 tests

Checking browser requirements for T4B News Ticker - Responsive News Scroller, Slider, and Animations
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲16514.70 ▲0.371.53 ▼1.0738.92 ▼13.12
Dashboard /wp-admin2,357 ▲1806.36 ▲0.71125.62 ▲30.1641.91 ▲1.78
Posts /wp-admin/edit.php2,291 ▲1943.52 ▲1.5358.88 ▲22.9231.95 ▲0.18
Add New Post /wp-admin/post-new.php1,703 ▲17722.53 ▼0.30647.61 ▼18.4532.34 ▼22.12
Media Library /wp-admin/upload.php1,425 ▲314.39 ▲0.1180.24 ▼20.8043.60 ▲1.48
Ticker Settings /wp-admin/options-general.php?page=t4bnt-settings1,8946.46141.29137.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • t4bnt_activation_time
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • t4bnt_general

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (T4B News Ticker Demo.), #2 (T4B News Ticker Settings using post category.), #3 (T4B News Ticker Settings using post tags.), #4 (T4B News Ticker Settings using custom texts.)
The official readme.txt might help

t4b-news-ticker/news-ticker.php 92% from 13 tests

"T4B News Ticker - Responsive News Scroller, Slider, and Animations" version 1.2.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("t4b-news-ticker.php" instead of "news-ticker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,201 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP534256904
JavaScript35587527
PO File2174176440
CSS3426330

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity38.00
▷ Minimum class complexity3.00
▷ Maximum class complexity73.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/template-pro.png36.69KB39.50KB0.00%
screenshot-2.png18.46KB18.46KB0.00%
screenshot-4.png12.30KB12.31KB0.00%
screenshot-3.png10.74KB10.74KB0.00%
assets/images/expand.png0.39KB0.41KB0.00%