78% jquery-news-ticker

Code Review | Jquery news ticker

WordPress plugin Jquery news ticker scored78%from 54 tests.

About plugin

  • Plugin page: jquery-news-ticker
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.4
  • WordPress version: 6.3.1
  • First release: Oct 7, 2013
  • Latest release: Oct 29, 2023
  • Number of updates: 33
  • Update frequency: every 111.4 days
  • Top authors: gopiplus@hotmail.com (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

700+ active /40,566 total downloads

Benchmarks

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.07MB] [CPU: ▼1.20ms] Passed 4 tests

A check of server-side resources used by Jquery news ticker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.35 ▼0.31
Dashboard /wp-admin3.38 ▲0.0743.68 ▼8.78
Posts /wp-admin/edit.php3.43 ▲0.0746.59 ▲1.79
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.60 ▲2.49
Media Library /wp-admin/upload.php3.30 ▲0.0738.66 ▲3.80
Jquery news ticker /wp-admin/options-general.php?page=jquery-news-ticker3.3131.67

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: 1 new table, 8 new options
New tables
wp_jquery_newsticker
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
Jntp_pluginversion
widget_jquery-news-ticker

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jquery news ticker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.44 ▼0.928.39 ▲6.6743.96 ▼0.16
Dashboard /wp-admin2,202 ▲255.63 ▼0.0388.76 ▼1.4642.66 ▲2.13
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.1739.25 ▲3.3236.57 ▲0.82
Add New Post /wp-admin/post-new.php1,529 ▲322.95 ▼0.48579.47 ▼133.9552.75 ▼19.15
Media Library /wp-admin/upload.php1,398 ▼24.17 ▼0.0894.86 ▼20.1842.90 ▲0.76
Jquery news ticker /wp-admin/options-general.php?page=jquery-news-ticker8812.0328.5329.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_jquery-news-ticker
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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 return non-empty strings:
    • > /wp-content/plugins/jquery-news-ticker/pages/content-management-add.php
    • > /wp-content/plugins/jquery-news-ticker/pages/content-management-edit.php
    • > /wp-content/plugins/jquery-news-ticker/pages/content-management-show.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/jquery-news-ticker/jquery-news-ticker.php:22
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/jquery-news-ticker/jquery-news-ticker.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
3 plugin tags: jquery, ticker, news

jquery-news-ticker/jquery-news-ticker.php 92% from 13 tests

The main PHP script in "Jquery news ticker" version 3.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)

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
Everything looks great! No dangerous files found in this plugin1,727 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP59531800
PO File4166356405
JavaScript23469385
CSS102136
HTML1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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%