84% cb-news-ticker

Code Review | CB News Ticker

WordPress plugin CB News Ticker scored84%from 54 tests.

About plugin

  • Plugin page: cb-news-ticker
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: Jul 26, 2022
  • Number of updates: 8
  • Update frequency: every 104.1 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /543 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.14ms] Passed 4 tests

This is a short check of server-side resources used by CB News Ticker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.10 ▼4.24
Dashboard /wp-admin3.38 ▲0.0745.35 ▼5.84
Posts /wp-admin/edit.php3.43 ▲0.0748.19 ▲2.53
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.95 ▼1.90
Media Library /wp-admin/upload.php3.30 ▲0.0737.64 ▼0.56

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

CB News Ticker: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.97 ▼0.409.43 ▲7.6939.05 ▼9.56
Dashboard /wp-admin2,207 ▲225.86 ▲0.7796.43 ▼19.4442.22 ▼5.87
Posts /wp-admin/edit.php2,107 ▲181.98 ▼0.0339.56 ▲0.5135.55 ▲0.09
Add New Post /wp-admin/post-new.php1,517 ▼1617.56 ▼5.59668.92 ▲4.7464.41 ▲5.75
Media Library /wp-admin/upload.php1,395 ▲74.17 ▲0.0095.91 ▼7.7942.68 ▼6.97
CB News Ticker /wp-admin/cb_news_ticker.php260.440.1013.99

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

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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/cb_news_ticker.php
    • > Network (severe)
    wp-admin/cb_news_ticker.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: popular post, display post, hot post, shortcode

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

The entry point to "CB News Ticker" version 1.0 is a PHP file that has certain tags in its header comment area
53 characters long description:
Display popular post using shortcode [cb-news-ticker]

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin294 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP49142208
CSS219374
JavaScript28112

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Constants2
▷ Global constants2100.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
5 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot.png60.41KB23.49KB▼ 61.12%
assets/screenshot-1.png47.54KB25.54KB▼ 46.27%
assets/screenshot-2.png52.83KB20.20KB▼ 61.76%
assets/screenshot-3.png58.12KB22.62KB▼ 61.09%
assets/arrow.png9.40KB9.47KB0.00%