73% any-news-ticker

Code Review | Any News Ticker

WordPress plugin Any News Ticker scored73%from 54 tests.

About plugin

  • Plugin page: any-news-ticker
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2017
  • Latest release: Mar 18, 2019
  • Number of updates: 44
  • Update frequency: every 10.6 days
  • Top authors: mucasoft (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /3,231 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.66ms] Passed 4 tests

An overview of server-side resources used by Any News Ticker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0726.71 ▼18.76
Dashboard /wp-admin3.31 ▲0.0144.80 ▼1.58
Posts /wp-admin/edit.php3.36 ▲0.0146.99 ▼0.27
Add New Post /wp-admin/post-new.php5.91 ▲0.03106.60 ▲18.22
Media Library /wp-admin/upload.php3.24 ▲0.0133.24 ▼2.02
Any News Ticker /wp-admin/options-general.php?page=ant-any-news-ticker3.1828.69

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Any News Ticker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲17913.96 ▼0.406.64 ▲4.7140.26 ▼11.26
Dashboard /wp-admin2,229 ▲385.10 ▲0.19108.03 ▲7.7237.86 ▼4.32
Posts /wp-admin/edit.php2,114 ▲252.31 ▲0.3040.45 ▼0.7834.43 ▼0.82
Add New Post /wp-admin/post-new.php1,535 ▲723.08 ▲4.59645.95 ▲3.7135.60 ▼17.81
Media Library /wp-admin/upload.php1,411 ▲234.42 ▲0.2597.60 ▼4.4940.24 ▼10.01
Any News Ticker /wp-admin/options-general.php?page=ant-any-news-ticker1,4962.8264.5832.01

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ant-any-news-ticker
    • > Notice in wp-content/plugins/any-news-ticker/src/options.php+127
    Undefined index: ant_ticker_title
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ant-any-news-ticker
    • > Notice in wp-content/plugins/any-news-ticker/src/options.php+171
    Undefined index: ant_post_type

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/any-news-ticker/src/options.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/any-news-ticker/any-news-ticker.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/any-news-ticker/src/ticker-main.php:22

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=ant-any-news-ticker
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=ant-any-news-ticker 176 The specified value "5px" cannot be parsed, or is out of range.


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
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Default Ticker Type options), #2 (Scroll Mode options), #3 (Rotate Mode options), #4 (Global options), #5 (Embed options)
You can take inspiration from this readme.txt

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

The principal PHP file in "Any News Ticker" v. 2.1.2 is loaded by WordPress automatically on each request
59 characters long description:
Any news ticker to show anything as ticker in your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,480 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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 functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/controls.png2.08KB1.38KB▼ 33.36%