90% ultimate-custom-scrollbar

Code Review | Ultimate Custom ScrollBar

WordPress plugin Ultimate Custom ScrollBar scored90%from 54 tests.

About plugin

  • Plugin page: ultimate-custom-s...
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.1.1
  • WordPress version: 6.3.1
  • First release: Dec 18, 2018
  • Latest release: Mar 14, 2019
  • Number of updates: 21
  • Update frequency: every 4.1 days
  • Top authors: themespick (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /3,446 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼0.33ms] Passed 4 tests

An overview of server-side resources used by Ultimate Custom ScrollBar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1242.74 ▼3.53
Dashboard /wp-admin3.61 ▲0.2652.32 ▼0.80
Posts /wp-admin/edit.php3.66 ▲0.2755.81 ▲4.20
Add New Post /wp-admin/post-new.php6.11 ▲0.1891.06 ▲0.98
Media Library /wp-admin/upload.php3.45 ▲0.1838.18 ▲2.04
Ultimate Custom ScrollBar /wp-admin/options-general.php?page=ultimate_scrollbar_settings3.4537.67

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
ucs_options_tab

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Custom ScrollBar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲17614.37 ▲0.173.94 ▲2.2944.23 ▲1.17
Dashboard /wp-admin2,333 ▲1536.16 ▲0.55116.63 ▲28.7837.53 ▼5.48
Posts /wp-admin/edit.php2,267 ▲1673.28 ▲1.2555.04 ▲18.9235.24 ▼3.40
Add New Post /wp-admin/post-new.php1,529 ▲123.39 ▲0.21608.97 ▼84.6136.44 ▼12.01
Media Library /wp-admin/upload.php1,398 ▲14.12 ▼0.0880.25 ▼24.4542.97 ▼1.29
Ultimate Custom ScrollBar /wp-admin/options-general.php?page=ultimate_scrollbar_settings1,5593.8564.5834.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • ucs_options_tab
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: scrollbar, custom scrollbar

ultimate-custom-scrollbar/ultimate-custom-scrollbar.php 92% from 13 tests

The primary PHP file in "Ultimate Custom ScrollBar" version 1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 226 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin766 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3127187654
JavaScript211565
CSS21047

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity39.00
▷ Minimum class complexity3.00
▷ Maximum class complexity75.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin