94% advance-news-ticker

Code Review | Advance News Ticker

WordPress plugin Advance News Ticker scored 94% from 54 tests.

About plugin

  • Plugin page: advance-news-ticker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 5.9.2
  • First release: Jul 9, 2018
  • Latest release: Jul 9, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: joyelkhan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 736 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼293.03ms] Passed 4 tests

An overview of server-side resources used by Advance News Ticker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0854.61 ▲6.20
Dashboard /wp-admin3.47 ▲0.0633.68 ▲1.44
Posts /wp-admin/edit.php3.71 ▲0.0634.83 ▼2.66
Add New Post /wp-admin/post-new.php6.94 ▼0.0392.70 ▼1,171.55
Media Library /wp-admin/upload.php3.36 ▲0.0624.32 ▲0.64

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advance News Ticker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,952 ▲19716.59 ▲0.959.17 ▲2.412.44 ▼0.49
Dashboard /wp-admin2,939 ▲856.94 ▲0.78134.63 ▼3.17167.64 ▲6.93
Posts /wp-admin/edit.php2,738 ▲813.30 ▲0.0765.75 ▼0.47156.72 ▲14.41
Add New Post /wp-admin/post-new.php1,701 ▼6118.43 ▼0.66415.30 ▲2.07159.84 ▲6.30
Media Library /wp-admin/upload.php1,743 ▲455.86 ▲0.36126.69 ▼7.44186.46 ▼1.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advance-news-ticker/inc/advance-news-ticker-shortcode.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advance-news-ticker/inc/advance-news-ticker-shortcode.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-news-ticker/inc/advance-news-ticker-option-page.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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 require attention:
  • Contributors: Contributors not specified
You can look at the official readme.txt

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

The primary PHP file in "Advance News Ticker" version 1.0 is used by WordPress to initiate all plugin functionality
61 characters long description:
Advance News Ticker is a multi-functional data display plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin349 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP36032259
CSS216282
JavaScript2008

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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%
Functions19
▷ Named functions19100.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
No PNG images were found in this plugin