83% eit-custom-scrollbar

Code Review | EIT Custom Scrollbar

WordPress plugin EIT Custom Scrollbar scored83%from 54 tests.

About plugin

  • Plugin page: eit-custom-scrollbar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Dec 13, 2014
  • Latest release: Dec 13, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: exclusiveitech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /774 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.44ms] Passed 4 tests

An overview of server-side resources used by EIT Custom Scrollbar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.23 ▼3.93
Dashboard /wp-admin3.31 ▲0.0152.57 ▲1.91
Posts /wp-admin/edit.php3.37 ▲0.0147.04 ▼2.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.35 ▼12.93
Media Library /wp-admin/upload.php3.24 ▲0.0141.70 ▲4.71
Eit Scrollbar Options /wp-admin/options-general.php?page=eit-settings3.2130.97

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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by EIT Custom Scrollbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,039 ▲25314.16 ▼0.2519.57 ▲17.7342.03 ▼1.98
Dashboard /wp-admin2,215 ▲355.77 ▲0.0889.96 ▲2.4538.94 ▼5.91
Posts /wp-admin/edit.php2,125 ▲252.32 ▲0.3234.88 ▼2.6833.69 ▼1.65
Add New Post /wp-admin/post-new.php1,543 ▲323.40 ▲0.28657.75 ▼5.4836.08 ▼30.29
Media Library /wp-admin/upload.php1,426 ▲264.48 ▲0.2397.75 ▼18.2343.67 ▼5.69
Eit Scrollbar Options /wp-admin/options-general.php?page=eit-settings1,2542.6748.4631.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 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 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eit-custom-scrollbar/eit-scrollbar.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Admin options for settings or style the scrollbar.), #2 (Example 1), #3 (Example 2)
The official readme.txt might help

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

"EIT Custom Scrollbar" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eit-custom-scrollbar.php" instead of "eit-scrollbar.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)

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
Everything looks great! No dangerous files found in this plugin336 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP14918180
JavaScript220140
CSS16516

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin