84% announcement-ticker-highlighter-scroller

Code Review | Announcement ticker highlighter scroller

WordPress plugin Announcement ticker highlighter scroller scored84%from 54 tests.

About plugin

  • Plugin page: announcement-tick...
  • Plugin version: 12.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Sep 8, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 106
  • Update frequency: every 45.6 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /46,448 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.72ms] Passed 4 tests

Server-side resources used by Announcement ticker highlighter scroller
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.21 ▼2.57
Dashboard /wp-admin3.35 ▲0.0547.24 ▼3.63
Posts /wp-admin/edit.php3.40 ▲0.0547.46 ▼1.96
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.39 ▼10.73
Media Library /wp-admin/upload.php3.28 ▲0.0537.63 ▼1.56
Announcement ticker /wp-admin/options-general.php?page=announcement-ticker-highlighter-scroller3.2931.87

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: 1 new table, 15 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Announcement ticker highlighter scroller
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.19 ▼0.011.93 ▲0.3245.32 ▲5.59
Dashboard /wp-admin2,193 ▲135.59 ▼0.1191.69 ▲6.3439.75 ▼1.66
Posts /wp-admin/edit.php2,107 ▲42.01 ▲0.0134.96 ▼6.3537.99 ▲1.35
Add New Post /wp-admin/post-new.php1,529 ▼1017.81 ▼5.61689.30 ▲1.6155.77 ▲2.03
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0699.82 ▼3.2941.10 ▼3.45
Announcement ticker /wp-admin/options-general.php?page=announcement-ticker-highlighter-scroller8892.0224.6226.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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

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 fix the following
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/announcement-ticker-highlighter-scroller/pages/content-management-add.php
    • > /wp-content/plugins/announcement-ticker-highlighter-scroller/announcement-ticker-highlighter-scroller.php
    • > /wp-content/plugins/announcement-ticker-highlighter-scroller/pages/widget-setting.php
    • > /wp-content/plugins/announcement-ticker-highlighter-scroller/pages/content-management-show.php
    • > /wp-content/plugins/announcement-ticker-highlighter-scroller/pages/content-management-edit.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: ticker, message, highlighter, announcement, scroller...

announcement-ticker-highlighter-scroller/announcement-ticker-highlighter-scroller.php Passed 13 tests

The main PHP script in "Announcement ticker highlighter scroller" version 12.1 is automatically included on every request by WordPress
133 characters long description:
This plug-in will display the announcement with highlighter scroller. It gradually reveals each message into view from bottom to top.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,143 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PO File3157259360

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ Global constants7100.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
There are no PNG files in this plugin