83% hm-news-ticker

Code Review | Hm News Ticker

WordPress plugin Hm News Ticker scored83%from 54 tests.

About plugin

  • Plugin page: hm-news-ticker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2015
  • Latest release: Jan 10, 2015
  • Number of updates: 17
  • Update frequency: N/A
  • Top authors: hmmurad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,231 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Hm News Ticker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.93 ▼19.54
Dashboard /wp-admin3.32 ▲0.0148.59 ▼2.64
Posts /wp-admin/edit.php3.37 ▲0.0148.60 ▼5.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.20 ▼1.00
Media Library /wp-admin/upload.php3.24 ▲0.0135.77 ▼0.51

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Hm News Ticker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲14513.67 ▼0.585.70 ▲3.7244.90 ▲5.94
Dashboard /wp-admin2,213 ▲284.92 ▼0.98113.10 ▲2.7637.41 ▼4.61
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0441.11 ▼2.2536.30 ▼0.88
Add New Post /wp-admin/post-new.php1,518 ▲423.26 ▲5.82680.03 ▼0.2458.12 ▲2.24
Media Library /wp-admin/upload.php1,395 ▲44.28 ▲0.11102.90 ▲1.0946.73 ▼1.80

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hm-news-ticker/ticker-function.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: A description for screenshot #2 is required in hm-news-ticker/assets to your readme.txt
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

hm-news-ticker/ticker-function.php 92% from 13 tests

The principal PHP file in "Hm News Ticker" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hm-news-ticker.php" instead of "ticker-function.php")

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
Success! There were no dangerous files found in this plugin528 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13067329
CSS153146
PHP1401453

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/controls.png2.08KB1.38KB▼ 33.36%
images/forkme.png7.74KB4.20KB▼ 45.79%
images/dl-arr.png0.46KB0.42KB▼ 8.55%