83% dewdrop-custom-scrollbar

Code Review | Dewdrop Custom Scrollbar

WordPress plugin Dewdrop Custom Scrollbar scored 83% from 54 tests.

About plugin

  • Plugin page: dewdrop-custom-sc...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 6.3.1
  • First release: May 17, 2014
  • Latest release: Dec 1, 2017
  • Number of updates: 30
  • Update frequency: every 43.2 days
  • Top authors: staritsoft (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active / 15,192 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.73ms] Passed 4 tests

An overview of server-side resources used by Dewdrop Custom Scrollbar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.90 ▼4.22
Dashboard /wp-admin3.36 ▲0.0645.90 ▼6.26
Posts /wp-admin/edit.php3.41 ▲0.0549.81 ▲5.58
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.21 ▼10.21
Media Library /wp-admin/upload.php3.28 ▲0.0535.13 ▲1.79
Dewdrop Scrollbar Options /wp-admin/options-general.php?page=dewdrop-settings3.2531.91

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dewdrop Custom Scrollbar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,050 ▲31513.98 ▼0.3014.32 ▲12.5738.59 ▼5.63
Dashboard /wp-admin2,229 ▲415.11 ▲0.22108.97 ▼3.2439.42 ▼8.54
Posts /wp-admin/edit.php2,117 ▲252.35 ▲0.2943.40 ▲2.5133.76 ▲2.39
Add New Post /wp-admin/post-new.php1,531 ▲1223.34 ▲0.29649.24 ▼34.8837.81 ▼21.02
Media Library /wp-admin/upload.php1,414 ▲264.53 ▲0.2695.00 ▼16.7942.03 ▼7.95
Dewdrop Scrollbar Options /wp-admin/options-general.php?page=dewdrop-settings1,7842.3750.4464.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dewdrop-custom-scrollbar/dewdrop-scrollbar.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tested up to: The plugin version is formatted incorrectly
You can look at the official readme.txt

dewdrop-custom-scrollbar/dewdrop-scrollbar.php 85% from 13 tests

The primary PHP file in "Dewdrop Custom Scrollbar" version 1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("dewdrop-custom-scrollbar.php" instead of "dewdrop-scrollbar.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 223 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin592 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP18418436
JavaScript220140
CSS16516

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
20 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ready-styles/style13.png1.24KB0.32KB▼ 74.39%
ready-styles/style11.png1.38KB0.44KB▼ 67.97%
ready-styles/style5.png1.10KB0.19KB▼ 82.44%
ready-styles/style8.png1.59KB0.60KB▼ 62.24%
ready-styles/style3.png1.06KB0.23KB▼ 77.86%