10% client-scroller-widget

Code Review | Client Scroller Widget

WordPress plugin Client Scroller Widget scored10%from 54 tests.

About plugin

  • Plugin page: client-scroller-w...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8
  • WordPress version: 6.3.1
  • First release: Jan 20, 2013
  • Latest release: May 16, 2014
  • Number of updates: 15
  • Update frequency: every 32.1 days
  • Top authors: Rajapress (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /11,787 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/client-scroller-widget/client-scroller-widget.php+444
    Function create_function() is deprecated

Server metrics [RAM: ▼1.75MB] [CPU: ▼56.45ms] Passed 4 tests

Analyzing server-side resources used by Client Scroller Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼1.235.27 ▼33.61
Dashboard /wp-admin2.26 ▼1.057.17 ▼43.62
Posts /wp-admin/edit.php2.26 ▼1.107.96 ▼42.32
Add New Post /wp-admin/post-new.php2.26 ▼3.637.72 ▼106.26
Media Library /wp-admin/upload.php2.26 ▼0.976.39 ▼30.62

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_client-scroller-widget
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Client Scroller Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.38 ▼0.887.55 ▲5.8842.77 ▼5.91
Dashboard /wp-admin2,198 ▲185.60 ▼0.0886.60 ▼13.3038.63 ▼10.16
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0338.92 ▲2.1036.14 ▲0.45
Add New Post /wp-admin/post-new.php1,531 ▼423.03 ▲5.00647.21 ▼42.6453.52 ▼12.04
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.1197.64 ▼2.1643.96 ▼0.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/client-scroller-widget/client-scroller-widget.php+444
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_client-scroller-widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/client-scroller-widget/client-scroller-widget.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: clientslider, clientscroller, clientslideshow, clientele, clientwidget

client-scroller-widget/client-scroller-widget.php Passed 13 tests

The main PHP file in "Client Scroller Widget" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
A Simple and powerful Widget to create add a clientele in your wordpress

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 plugin1,428 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript39094583
CSS63991512
PHP17140333

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity11.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
nivo-slider/themes/bar/bullets.png1.25KB1.08KB▼ 13.74%
nivo-slider/themes/dark/bullets.png3.07KB0.42KB▼ 86.27%
nivo-slider/themes/light/arrows.png3.17KB0.52KB▼ 83.49%
nivo-slider/themes/default/bullets.png1.25KB1.08KB▼ 13.74%
nivo-slider/themes/light/bullets.png3.21KB0.54KB▼ 83.24%