83% wp-news-headline-ticker

Code Review | News Headline Ticker

WordPress plugin News Headline Ticker scored83%from 54 tests.

About plugin

  • Plugin page: wp-news-headline-...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Jan 5, 2019
  • Latest release: Mar 18, 2021
  • Number of updates: 27
  • Update frequency: every 29.9 days
  • Top authors: dhasib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,475 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by News Headline Ticker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0549.52 ▲8.43
Dashboard /wp-admin3.35 ▲0.0552.09 ▼4.14
Posts /wp-admin/edit.php3.40 ▲0.0452.05 ▼3.57
Add New Post /wp-admin/post-new.php5.95 ▲0.06114.70 ▲2.32
Media Library /wp-admin/upload.php3.27 ▲0.0441.54 ▼0.45
Ticker Settings /wp-admin/options-general.php?page=wp-news-headline-ticker3.2537.45

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for News Headline Ticker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16513.96 ▼0.3811.79 ▲9.9441.73 ▲1.12
Dashboard /wp-admin2,221 ▲475.91 ▲0.3489.23 ▼5.9539.81 ▼7.66
Posts /wp-admin/edit.php2,128 ▲252.22 ▲0.2141.20 ▼2.0436.15 ▼2.52
Add New Post /wp-admin/post-new.php1,543 ▲1523.24 ▲0.00648.50 ▼39.8438.29 ▼15.74
Media Library /wp-admin/upload.php1,417 ▲174.39 ▲0.1899.88 ▼9.9841.68 ▼8.32
Ticker Settings /wp-admin/options-general.php?page=wp-news-headline-ticker1,3072.3656.2830.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-news-headline-ticker/wp-news-headline-ticker.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-news-headline-ticker/lib/tkr-style.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-news-headline-ticker/lib/functions.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Ticker Settings), #2 (Back End), #3 (Front End)
You can take inspiration from this readme.txt

wp-news-headline-ticker/wp-news-headline-ticker.php 85% from 13 tests

The entry point to "News Headline Ticker" version 1.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 198 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected354 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP31940291
CSS20055
JavaScript25118

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/review.png0.64KB0.64KB0.00%
screenshot-1.png51.79KB28.55KB▼ 44.86%
screenshot-2.png52.20KB30.26KB▼ 42.04%
screenshot-3.png18.11KB11.88KB▼ 34.37%