83% awesome-custom-scrollbar

Code Review | Awesome wordpress custom scrollbar

WordPress plugin Awesome wordpress custom scrollbar scored83%from 54 tests.

About plugin

  • Plugin page: awesome-custom-sc...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Dec 15, 2017
  • Latest release: Dec 16, 2017
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: ariful233 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /643 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼13.65ms] Passed 4 tests

A check of server-side resources used by Awesome wordpress custom scrollbar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.16 ▲1.70
Dashboard /wp-admin3.32 ▼0.0347.91 ▼20.22
Posts /wp-admin/edit.php3.37 ▲0.0150.03 ▼1.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.58 ▼26.61
Media Library /wp-admin/upload.php3.24 ▲0.0133.18 ▼6.62

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/awesome-custom-scrollbar/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/awesome-custom-scrollbar/assets/icon-128\303\227128.png"
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Awesome wordpress custom scrollbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,073 ▲28713.80 ▼0.4917.10 ▲15.2638.66 ▼4.97
Dashboard /wp-admin2,215 ▲385.75 ▲0.1089.98 ▼2.0939.07 ▼6.72
Posts /wp-admin/edit.php2,125 ▲252.26 ▲0.3138.81 ▼2.8034.27 ▼3.86
Add New Post /wp-admin/post-new.php1,544 ▲1823.64 ▼0.07702.52 ▲11.2239.36 ▼22.94
Media Library /wp-admin/upload.php1,420 ▲204.46 ▲0.23105.50 ▼5.2047.90 ▼1.77

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
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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/awesome-custom-scrollbar/plugin-function.php:21

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 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
The official readme.txt might help

awesome-custom-scrollbar/plugin-function.php 69% from 13 tests

Analyzing the main PHP file in "Awesome wordpress custom scrollbar" version 1.0
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 202 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("awesome-custom-scrollbar.php" instead of "plugin-function.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected60 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1461938
CSS12016
JavaScript2626

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions4
▷ Named functions4100.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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128×128.png2.80KB2.75KB▼ 1.95%
assets/banner-772x250.png.png15.56KB8.03KB▼ 48.37%
img/icon.png0.36KB0.27KB▼ 25.54%