83% my-news-ticker

Code Review | news ticker

WordPress plugin news ticker scored 83% from 54 tests.

About plugin

  • Plugin page: my-news-ticker
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.0
  • WordPress version: 6.3.1
  • First release: Oct 14, 2015
  • Latest release: Feb 20, 2017
  • Number of updates: 4
  • Update frequency: every 123.8 days
  • Top authors: Sohelwpexpert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,069 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by news ticker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.44 ▲1.82
Dashboard /wp-admin3.31 ▲0.0145.04 ▼2.51
Posts /wp-admin/edit.php3.37 ▲0.0144.68 ▼3.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.33 ▼21.62
Media Library /wp-admin/upload.php3.24 ▲0.0135.97 ▲4.01

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for news ticker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲17813.66 ▼0.757.23 ▲5.4945.36 ▼1.07
Dashboard /wp-admin2,194 ▲95.83 ▼0.0798.27 ▼1.3141.18 ▼2.02
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0232.74 ▼8.0534.70 ▲0.17
Add New Post /wp-admin/post-new.php1,539 ▲1923.09 ▲0.04662.29 ▼14.0553.27 ▼0.92
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.0792.78 ▼9.9045.66 ▼1.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-news-ticker/main-function.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/my-news-ticker/main-function.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Add an image for screenshot #1 (How to use shortcode in editor.)
You can look at the official readme.txt

my-news-ticker/main-function.php 85% from 13 tests

Analyzing the main PHP file in "news ticker" version 1.1
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("my-news-ticker.php" instead of "main-function.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin603 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13067330
CSS223222
PHP1311551

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.28KB0.45KB▼ 64.40%
images/dl-arr.png0.46KB0.42KB▼ 8.55%
images/bn-arrows.png1.42KB0.60KB▼ 57.85%
images/controls.png2.08KB1.38KB▼ 33.36%
images/forkme.png7.74KB4.20KB▼ 45.79%