83% news-ticker-widget-for-elementor

Code Review | News Ticker Widget for Elementor

WordPress plugin News Ticker Widget for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: news-ticker-widge...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Dec 27, 2019
  • Latest release: Aug 19, 2023
  • Number of updates: 10
  • Update frequency: every 133.2 days
  • Top authors: shaikhaezaz80 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /12,173 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.04MB] [CPU: ▼5.33ms] Passed 4 tests

This is a short check of server-side resources used by News Ticker Widget for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.18 ▼5.67
Dashboard /wp-admin3.35 ▲0.0447.78 ▼6.41
Posts /wp-admin/edit.php3.40 ▲0.0446.93 ▼1.69
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.97 ▼7.56
Media Library /wp-admin/upload.php3.27 ▲0.0434.09 ▲1.88

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
show_notice
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for News Ticker Widget for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲18713.70 ▼0.689.74 ▲7.9942.12 ▼6.41
Dashboard /wp-admin2,218 ▲334.86 ▼1.02112.43 ▲10.4342.67 ▼2.12
Posts /wp-admin/edit.php2,100 ▲112.03 ▲0.0242.50 ▲2.6536.68 ▼0.64
Add New Post /wp-admin/post-new.php1,546 ▲1023.34 ▼0.02630.80 ▼35.7151.21 ▼6.59
Media Library /wp-admin/upload.php1,397 ▲124.22 ▲0.0395.06 ▼4.9142.14 ▼2.89

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/news-ticker-widget-for-elementor/inc/elementor-helper.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need your attention: The official readme.txt might help

news-ticker-widget-for-elementor/elementor-news-ticker.php 85% from 13 tests

This is the main PHP file of "News Ticker Widget for Elementor" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("news-ticker-widget-for-elementor.php" instead of "elementor-news-ticker.php")
  • 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 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,421 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11,255210687
PHP34985671
CSS21063

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods666.67%
▷ Protected methods333.33%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 files were detected