83% green-life-custom-scrollbar

Code Review | Green Life Custom Scrollbar

WordPress plugin Green Life Custom Scrollbar scored 83% from 54 tests.

About plugin

  • Plugin page: green-life-custom...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1
  • WordPress version: 6.3.1
  • First release: May 11, 2016
  • Latest release: Apr 29, 2019
  • Number of updates: 25
  • Update frequency: every 43.3 days
  • Top authors: imasikur22 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 5,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲2.05ms] Passed 4 tests

A check of server-side resources used by Green Life Custom Scrollbar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0750.28 ▲6.87
Dashboard /wp-admin3.37 ▲0.0756.84 ▲4.92
Posts /wp-admin/edit.php3.43 ▲0.0753.27 ▲3.93
Add New Post /wp-admin/post-new.php5.95 ▲0.0793.08 ▲1.66
Media Library /wp-admin/upload.php3.30 ▲0.0735.83 ▼2.33
Gl Scrollbar /wp-admin/options-general.php?page=gl-cs3.2733.95

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 17 new options
New WordPress options
gl_scrollbar_bgcolor
widget_recent-comments
gl_scrollbar_show
gl_scrollbar_speed
can_compress_scripts
gl_scrollbar_autohide
gl_scrollbar_autohide_delay
gl_scrollbar_cursor_color
theysaidso_admin_options
gl_scrollbar_force_default
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Green Life Custom Scrollbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,057 ▲25713.78 ▼0.8114.70 ▲12.7441.94 ▼2.85
Dashboard /wp-admin2,204 ▼54.86 ▼0.96103.62 ▲0.9943.76 ▲1.64
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0633.52 ▼7.1035.19 ▼4.93
Add New Post /wp-admin/post-new.php1,545 ▲1218.26 ▼4.69622.20 ▼19.6257.64 ▼2.72
Media Library /wp-admin/upload.php1,389 ▼24.15 ▼0.0398.09 ▼1.7741.73 ▼0.17
Gl Scrollbar /wp-admin/options-general.php?page=gl-cs1,3232.8452.2227.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/green-life-custom-scrollbar/gl-scrollbar.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Green Life Custom Scrollbar Admin Options Page.), #2 (Scrollbar)
Please take inspiration from this readme.txt

green-life-custom-scrollbar/gl-scrollbar.php 85% from 13 tests

The main file in "Green Life Custom Scrollbar" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("green-life-custom-scrollbar.php" instead of "gl-scrollbar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,532 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS241481,226
PHP12550259
JavaScript29147

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected