89% wp-custom-scrollbar

Code Review | Wp Custom scrollbar

WordPress plugin Wp Custom scrollbar scored89%from 54 tests.

About plugin

  • Plugin page: wp-custom-scrollbar
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Dec 27, 2015
  • Latest release: Dec 27, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: AsianCoders (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,871 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.39ms] Passed 4 tests

A check of server-side resources used by Wp Custom scrollbar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.96 ▼4.01
Dashboard /wp-admin3.35 ▲0.0445.72 ▼3.39
Posts /wp-admin/edit.php3.40 ▲0.0447.41 ▼0.81
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.27 ▼15.99
Media Library /wp-admin/upload.php3.27 ▲0.0437.93 ▼2.18
Wp Custom scrollbar /wp-admin/themes.php?page=asiancoderswcs-settings3.2431.38

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wp Custom scrollbar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,052 ▲30614.15 ▼0.2214.81 ▲12.7838.02 ▲0.07
Dashboard /wp-admin2,234 ▲465.21 ▼0.67111.98 ▲9.7042.50 ▼2.72
Posts /wp-admin/edit.php2,116 ▲302.32 ▲0.3542.74 ▲2.4435.62 ▼1.52
Add New Post /wp-admin/post-new.php1,533 ▼923.16 ▲4.99684.34 ▲73.6036.26 ▼23.52
Media Library /wp-admin/upload.php1,416 ▲284.44 ▲0.2198.13 ▼3.4942.06 ▼2.24
Wp Custom scrollbar /wp-admin/themes.php?page=asiancoderswcs-settings1,1782.2548.4427.16

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output 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 on the user side

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can look at the official readme.txt

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

The main PHP script in "Wp Custom scrollbar" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected332 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP15529172
JavaScript200117
CSS25543

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin