73% cute-news-ticker

Code Review | Cute News Ticker

WordPress plugin Cute News Ticker scored73%from 54 tests.

About plugin

  • Plugin page: cute-news-ticker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: May 20, 2014
  • Latest release: May 20, 2014
  • Number of updates: 18
  • Update frequency: every 0.1 days
  • Top authors: arnabkumar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,486 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.95MB] [CPU: ▼60.55ms] Passed 4 tests

A check of server-side resources used by Cute News Ticker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.58 ▼40.01
Dashboard /wp-admin2.07 ▼1.285.38 ▼61.45
Posts /wp-admin/edit.php2.07 ▼1.295.82 ▼45.79
Add New Post /wp-admin/post-new.php2.07 ▼3.825.41 ▼94.94
Media Library /wp-admin/upload.php2.07 ▼1.167.32 ▼33.95

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Cute News Ticker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.93 ▼0.325.15 ▲3.4044.45 ▲3.40
Dashboard /wp-admin2,207 ▲165.83 ▲0.9399.87 ▼16.3840.36 ▼3.35
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0138.83 ▼0.7238.22 ▲2.06
Add New Post /wp-admin/post-new.php1,518 ▲423.57 ▲5.88680.24 ▲0.7554.29 ▼1.10
Media Library /wp-admin/upload.php1,395 ▲104.21 ▲0.0198.95 ▼16.6043.52 ▼3.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the cute-news-ticker-jQuery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cute-news-ticker/main-function.php:16

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 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #2, #0, #0 in cute-news-ticker/assets to your readme.txt
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Cute News Ticker" version 1.0
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cute-news-ticker.php" instead of "main-function.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin50 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1201244
CSS1005
JavaScript1011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.28KB0.45KB▼ 64.40%