84% news-ticker-benaceur

Code Review | news ticker benaceur

WordPress plugin news ticker benaceur scored84%from 54 tests.

About plugin

  • Plugin page: news-ticker-benaceur
  • Plugin version: 3.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 10, 2015
  • Latest release: Aug 12, 2023
  • Number of updates: 172
  • Update frequency: every 17.9 days
  • Top authors: Benaceur (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

1,000+ active /46,521 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▲0.23ms] 75% from 4 tests

An overview of server-side resources used by news ticker benaceur
Please have a look at the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 523.44ms on /wp-admin/options-general.php?page=news_ticker_benaceur)
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0954.91 ▲13.13
Dashboard /wp-admin3.36 ▲0.0650.51 ▼7.66
Posts /wp-admin/edit.php3.48 ▲0.1248.94 ▲3.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0694.00 ▲0.72
Media Library /wp-admin/upload.php3.29 ▲0.0638.29 ▲4.55
News-Ticker-Benaceur /wp-admin/options-general.php?page=news_ticker_benaceur3.69523.44

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 8 new options
New WordPress options
news_ticker_benaceur_version
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
news_ticker_benaceur_glob_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by news ticker benaceur
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲13513.78 ▼0.5710.84 ▲8.9940.45 ▼6.53
Dashboard /wp-admin2,196 ▲225.51 ▼0.1696.76 ▲8.7040.38 ▼3.36
Posts /wp-admin/edit.php2,101 ▼22.01 ▲0.0239.53 ▼1.4235.65 ▼4.68
Add New Post /wp-admin/post-new.php1,541 ▲1523.03 ▼0.07639.81 ▼67.0360.29 ▲7.78
Media Library /wp-admin/upload.php1,407 ▲74.17 ▼0.01101.21 ▼4.7543.16 ▼5.33
News-Ticker-Benaceur /wp-admin/options-general.php?page=news_ticker_benaceur6,2205.94185.08232.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • news_ticker_benaceur_version
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • news_ticker_benaceur_glob_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/news-ticker-benaceur/style-anim/no-scrollntb-Ti.php:11
    • > PHP Notice
      Undefined variable: rtl_ in wp-content/plugins/news-ticker-benaceur/style-anim/no-scrollntb-two.php on line 3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/news-ticker-benaceur/style-anim/scrollntb.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/news-ticker-benaceur/style-anim/style-common.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/news-ticker-benaceur/style-anim/inc/ie8.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/news-ticker-benaceur/news-ticker-benaceur-page.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/news-ticker-benaceur/style-anim/no-scrollntb-scroll_up.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/news-ticker-benaceur/style-anim/no-scrollntb-fadeIn.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/news-ticker-benaceur/style-anim/no-scrollntb-two.php:6
    • > PHP Notice
      Undefined variable: rtl_ in wp-content/plugins/news-ticker-benaceur/style-anim/no-scrollntb-scroll_up.php on line 2

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

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

The principal PHP file in "news ticker benaceur" v. 3.2.3 is loaded by WordPress automatically on each request
131 characters long description:
This plugin allow you to display the latest posts or latest comments in a bar with twenty seven beautiful animations and effects...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected10,801 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP216962544,690
JavaScript106414304,011
CSS3129191,293
PO File1317342793
SVG10014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity111.00
▷ Minimum class complexity22.00
▷ Maximum class complexity248.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods75
▷ Static methods00.00%
▷ Public methods75100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/jquery.minicolors.png67.02KB34.31KB▼ 48.80%
admin/top-r.png0.79KB0.47KB▼ 40.84%
admin/top-l.png0.92KB0.50KB▼ 45.57%