90% dl-ultimate-custom-scrollbar

Code Review | DL Ultimate Custom ScrollBar

WordPress plugin DL Ultimate Custom ScrollBar scored 90% from 54 tests.

About plugin

  • Plugin page: dl-ultimate-custo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7.1
  • WordPress version: 5.8.1
  • First release: Jun 1, 2020
  • Latest release: Apr 29, 2021
  • Number of updates: 12
  • Update frequency: every 27.8 days
  • Top authors: dynamiclayers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 308 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
Install script ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼137.65ms] Passed 4 tests

This is a short check of server-side resources used by DL Ultimate Custom ScrollBar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2127.82 ▲6.70
Dashboard /wp-admin3.39 ▲0.3447.20 ▲0.28
Posts /wp-admin/edit.php3.44 ▲0.3346.94 ▼1.27
Add New Post /wp-admin/post-new.php5.69 ▲0.2591.20 ▼552.82
Media Library /wp-admin/upload.php3.27 ▲0.2736.84 ▲3.21
DL ScrollBar Options /wp-admin/options-general.php?page=dl-scrollbar-options3.2431.93

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 2 new options
New WordPress options
dlucs_installed
dlucs_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for DL Ultimate Custom ScrollBar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,954 ▲35816.49 ▲0.5720.53 ▲11.2346.88 ▼0.06
Dashboard /wp-admin2,972 ▲385.88 ▼0.09136.57 ▼4.61114.39 ▲3.40
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0068.38 ▼1.3594.19 ▲2.02
Add New Post /wp-admin/post-new.php1,503 ▼18018.55 ▲0.11383.51 ▼9.71102.39 ▼11.43
Media Library /wp-admin/upload.php1,812 ▲644.99 ▼0.02151.50 ▼19.81120.70 ▼1.98
DL ScrollBar Options /wp-admin/options-general.php?page=dl-scrollbar-options1,3002.0861.7982.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 2 options
    • dlucs_version
    • dlucs_installed

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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 shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: scrollbar, custom scrollbar

dl-ultimate-custom-scrollbar/dl-ultimate-custom-scrollbar.php Passed 13 tests

Analyzing the main PHP file in "DL Ultimate Custom ScrollBar" version 1.0.0
73 characters long description:
This will enable custom nice looking scrollbar on your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,375 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP141954411,296
JavaScript20032
CSS10026
JSON20021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity27.12
▷ Minimum class complexity1.00
▷ Maximum class complexity145.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods58
▷ Static methods46.90%
▷ Public methods4679.31%
▷ Protected methods1017.24%
▷ Private methods23.45%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin