78% all-in-one-news-scroll

Code Review | All in One News Scroll

WordPress plugin All in One News Scroll scored 78% from 54 tests.

About plugin

  • Plugin page: all-in-one-news-s...
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 5.8.1
  • First release: Apr 16, 2016
  • Latest release: Dec 20, 2016
  • Number of updates: 6
  • Update frequency: every 76.2 days
  • Top authors: Omikant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,511 total downloads


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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by All in One News Scroll
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1938.48 ▲12.50
Dashboard /wp-admin3.14 ▲0.0952.35 ▲7.53
Posts /wp-admin/edit.php3.19 ▲0.0949.80 ▲0.36
Add New Post /wp-admin/post-new.php5.50 ▲0.0791.93 ▼569.18
Media Library /wp-admin/upload.php3.09 ▲0.0840.67 ▲7.22
Category /wp-admin/edit-tags.php?taxonomy=news_category&post_type=news_updates3.0837.31
Scroller Settings /wp-admin/edit.php?post_type=news_updates&page=all_in_one_news_scroll3.0330.69
Add New /wp-admin/post-new.php?post_type=news_updates3.1951.80
All News & Update /wp-admin/edit.php?post_type=news_updates3.1334.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for All in One News Scroll
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,869 ▲27316.67 ▲1.1314.40 ▲4.3352.89 ▲1.12
Dashboard /wp-admin3,018 ▲845.95 ▲0.02141.61 ▼9.34116.06 ▼6.91
Posts /wp-admin/edit.php2,784 ▲482.70 ▲0.0072.44 ▲2.7795.48 ▲0.39
Add New Post /wp-admin/post-new.php1,529 ▼15418.81 ▲0.12400.20 ▲22.46115.24 ▼1.61
Media Library /wp-admin/upload.php1,852 ▲455.03 ▲0.02155.31 ▼17.50125.25 ▼12.84
Category /wp-admin/edit-tags.php?taxonomy=news_category&post_type=news_updates1,7822.4964.0892.49
Scroller Settings /wp-admin/edit.php?post_type=news_updates&page=all_in_one_news_scroll1,2072.1059.4489.71
Add New /wp-admin/post-new.php?post_type=news_updates3,0229.07223.82159.16
All News & Update /wp-admin/edit.php?post_type=news_updates1,4602.6367.8180.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_allinone_news_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=news_updates&page=all_in_one_news_scroll
    • > Notice in wp-content/plugins/all-in-one-news-scroll/scroller-setting.php+117
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-news-scroll/scroller-setting.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/all-in-one-news-scroll/allinone-news-scroll.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

all-in-one-news-scroll/allinone-news-scroll.php 85% from 13 tests

The principal PHP file in "All in One News Scroll" v. 1.12 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("all-in-one-news-scroll.php" instead of "allinone-news-scroll.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)

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 plugin490 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG images were found in this plugin