84% advance-news-ticker

Code Review | Advance News Ticker

WordPress plugin Advance News Ticker scored84%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: 6.3.1
  • 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 /956 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼11.40ms] Passed 4 tests

A check of server-side resources used by Advance News Ticker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.01 ▲0.08
Dashboard /wp-admin3.37 ▲0.0659.99 ▲6.79
Posts /wp-admin/edit.php3.42 ▲0.0657.80 ▼4.33
Add New Post /wp-admin/post-new.php5.96 ▲0.08103.23 ▼27.24
Media Library /wp-admin/upload.php3.29 ▲0.0639.78 ▼14.12

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Advance News Ticker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲17213.77 ▼0.685.41 ▲3.5349.83 ▲3.03
Dashboard /wp-admin2,256 ▲535.20 ▲0.33111.09 ▼14.4935.16 ▼11.84
Posts /wp-admin/edit.php2,140 ▲372.36 ▲0.3057.83 ▲14.3858.39 ▲20.96
Add New Post /wp-admin/post-new.php1,553 ▲1822.93 ▼0.39728.99 ▲24.3039.75 ▼17.88
Media Library /wp-admin/upload.php1,438 ▲414.36 ▲0.13114.89 ▼2.3949.44 ▼5.45

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

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

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

The main PHP file in "Advance News Ticker" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
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 | A short check of programming languages and file extensions; no executable files are 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin