83% jb-horizontal-scroller-news-ticker

Code Review | JB Horizontal Scroller News Ticker

WordPress plugin JB Horizontal Scroller News Ticker scored83%from 54 tests.

About plugin

  • Plugin page: jb-horizontal-scr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2015
  • Latest release: Jul 7, 2015
  • Number of updates: 8
  • Update frequency: every 1.5 days
  • Top authors: jobair (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /9,901 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by JB Horizontal Scroller News Ticker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.17 ▼5.67
Dashboard /wp-admin3.32 ▲0.0152.43 ▼7.60
Posts /wp-admin/edit.php3.37 ▲0.0156.22 ▼7.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.76 ▼5.99
Media Library /wp-admin/upload.php3.24 ▲0.0135.66 ▼4.69

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

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

Browser metrics Passed 4 tests

Checking browser requirements for JB Horizontal Scroller News Ticker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.40 ▼0.888.02 ▲6.2142.55 ▲0.21
Dashboard /wp-admin2,199 ▲195.58 ▲0.0186.21 ▼5.4439.03 ▼7.74
Posts /wp-admin/edit.php2,107 ▲42.03 ▼0.0041.58 ▼1.5734.55 ▼4.61
Add New Post /wp-admin/post-new.php1,530 ▲223.11 ▼0.06640.86 ▼59.8962.75 ▲3.22
Media Library /wp-admin/upload.php1,407 ▲74.24 ▲0.12103.93 ▼21.9543.63 ▼6.77

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 detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× 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/jb-horizontal-scroller-news-ticker/breaking-hook.php:14

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)
There were no browser issues found

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

jb-horizontal-scroller-news-ticker/breaking-hook.php 85% from 13 tests

This is the main PHP file of "JB Horizontal Scroller News Ticker" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("jb-horizontal-scroller-news-ticker.php" instead of "breaking-hook.php")

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
No dangerous file extensions were detected151 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS16374
PHP171045
JavaScript121332

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin