74% news-announcement-scroll

Code Review | News Announcement Scroll

WordPress plugin News Announcement Scroll scored74%from 54 tests.

About plugin

  • Plugin page: news-announcement...
  • Plugin version: 9.1.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.5.3
  • WordPress version: 6.3.1
  • First release: Jan 3, 2011
  • Latest release: Nov 2, 2023
  • Number of updates: 90
  • Update frequency: every 52.1 days
  • Top authors: gopiplus (64.44%)storeapps (36.67%)

Code review

54 tests

User reviews

18 reviews

Install metrics

4,000+ active /203,049 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.26ms] Passed 4 tests

A check of server-side resources used by News Announcement Scroll
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.67 ▼0.10
Dashboard /wp-admin3.37 ▲0.0647.07 ▼2.95
Posts /wp-admin/edit.php3.42 ▲0.0652.61 ▲3.89
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.21 ▼16.87
Media Library /wp-admin/upload.php3.29 ▲0.0637.85 ▲2.89
News Announcement Scroll /wp-admin/options-general.php?page=news-announcement-scroll3.3033.69

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

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

Browser metrics Passed 4 tests

Checking browser requirements for News Announcement Scroll
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.74 ▲0.511.66 ▲0.0243.89 ▼3.11
Dashboard /wp-admin2,202 ▲215.58 ▼0.1584.88 ▼29.3339.18 ▼3.72
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0535.81 ▲0.9033.06 ▼3.50
Add New Post /wp-admin/post-new.php1,534 ▲823.42 ▲0.28656.66 ▼56.6149.64 ▼15.33
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0494.43 ▼19.7441.20 ▼7.78
News Announcement Scroll /wp-admin/options-general.php?page=news-announcement-scroll9632.0325.4442.64

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
  • Zombie tables detected upon uninstall: 1 table
    • wp_news_announcement
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/news-announcement-scroll/pages/content-management-add.php
    • > /wp-content/plugins/news-announcement-scroll/pages/content-management-show.php
    • > /wp-content/plugins/news-announcement-scroll/gAnnounce/gAnnounce.php
    • > /wp-content/plugins/news-announcement-scroll/pages/content-setting.php
    • > /wp-content/plugins/news-announcement-scroll/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
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
  • Screenshots: Please a description for screenshot #5 in news-announcement-scroll/assets to your readme.txt
You can look at the official readme.txt

news-announcement-scroll/news-announcement-scroll.php Passed 13 tests

"News Announcement Scroll" version 9.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
108 characters long description:
A simple vertical scroll news widget for your WordPress website. Easy to use & no coding knowledge required.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,171 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6147371,033
JavaScript3135138

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
PNG images were not found in this plugin