84% latest-simple-news-ticker

Code Review | Latest Simple News Ticker

WordPress plugin Latest Simple News Ticker scored84%from 54 tests.

About plugin

  • Plugin page: latest-simple-new...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 28, 2017
  • Latest release: Jun 28, 2017
  • Number of updates: 19
  • Update frequency: every 0.8 days
  • Top authors: rostomali (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /4,009 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.92ms] Passed 4 tests

A check of server-side resources used by Latest Simple News Ticker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.01 ▼2.70
Dashboard /wp-admin3.36 ▲0.0548.92 ▼4.66
Posts /wp-admin/edit.php3.41 ▲0.0549.17 ▲1.41
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.87 ▼17.74
Media Library /wp-admin/upload.php3.28 ▲0.0541.21 ▲4.31
NewsTicker Options /wp-admin/options-general.php?page=newsticker_options3.2534.47

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Latest Simple News Ticker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲10713.53 ▼0.828.54 ▲6.4047.87 ▲5.39
Dashboard /wp-admin2,221 ▲445.99 ▲0.3495.11 ▲3.6838.69 ▲0.23
Posts /wp-admin/edit.php2,128 ▲282.25 ▲0.2542.99 ▲6.0035.19 ▼0.16
Add New Post /wp-admin/post-new.php1,543 ▲1723.98 ▲0.42677.41 ▼18.9338.96 ▼1.56
Media Library /wp-admin/upload.php1,426 ▲264.42 ▲0.22102.16 ▼13.8840.53 ▼8.56
NewsTicker Options /wp-admin/options-general.php?page=newsticker_options1,3522.6957.7832.94

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

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
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 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/latest-simple-news-ticker/lib/simpleTicker-shortcode.php:84
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/latest-simple-news-ticker/lib/simpleTicker-option-page.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/latest-simple-news-ticker/lib/simpleTicker-shortcode.php:84

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: wordpress news ticker, jquery wordpress news ticker etc, news bar, news ticker, wordpress marquee bar...

latest-simple-news-ticker/main.php 92% from 13 tests

The main PHP script in "Latest Simple News Ticker" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("latest-simple-news-ticker.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin341 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34619207
JavaScript21720134

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions17
▷ Named functions17100.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 files were detected