83% scrollkit-nice-scrollbar

Code Review | ScrollKit - Nice Scrollbar

WordPress plugin ScrollKit - Nice Scrollbar scored83%from 54 tests.

About plugin

  • Plugin page: scrollkit-nice-sc...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3
  • WordPress version: 6.3.1
  • First release: Dec 9, 2019
  • Latest release: Dec 15, 2019
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: modinatheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /480 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.02MB] [CPU: ▼12.17ms] Passed 4 tests

This is a short check of server-side resources used by ScrollKit - Nice Scrollbar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0726.09 ▼12.44
Dashboard /wp-admin3.32 ▼0.0343.17 ▼23.86
Posts /wp-admin/edit.php3.37 ▲0.0146.93 ▲0.52
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.71 ▼8.63
Media Library /wp-admin/upload.php3.24 ▲0.0132.77 ▼3.73

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for ScrollKit - Nice Scrollbar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10413.39 ▼0.993.81 ▲2.0642.29 ▼0.84
Dashboard /wp-admin2,246 ▲585.16 ▲0.22111.00 ▼8.2241.71 ▼4.44
Posts /wp-admin/edit.php2,134 ▲452.37 ▲0.3442.65 ▲7.7336.94 ▲1.96
Add New Post /wp-admin/post-new.php1,548 ▲3423.49 ▲6.08644.59 ▼26.7736.70 ▼27.22
Media Library /wp-admin/upload.php1,432 ▲444.29 ▲0.0998.28 ▼14.9944.57 ▼6.04

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/scrollkit-nice-scrollbar/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === scrollkit-nice-scrollbar === )
The official readme.txt might help

scrollkit-nice-scrollbar/index.php 85% from 13 tests

This is the main PHP file of "ScrollKit - Nice Scrollbar" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("scrollkit-nice-scrollbar.php" instead of "index.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected2,269 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23291621,366
CSS1342113812
PHP1481791

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin