Benchmarks
Plugin footprint 48% 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: ▲1.68MB] [CPU: ▼3.49ms] Passed 4 tests
An overview of server-side resources used by Custom Scrollbar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.49 ▲1.03 | 49.49 ▼8.66 |
Dashboard /wp-admin | 5.20 ▲1.90 | 60.57 ▲4.33 |
Posts /wp-admin/edit.php | 5.26 ▲1.90 | 58.29 ▲9.68 |
Add New Post /wp-admin/post-new.php | 7.79 ▲1.90 | 98.15 ▼19.32 |
Media Library /wp-admin/upload.php | 5.13 ▲1.90 | 57.24 ▲22.00 |
Scrollbars /wp-admin/themes.php?page=csb_settings | 9.79 | 81.12 |
Server storage [IO: ▲1.57MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 230 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Scrollbar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲120 | 13.73 ▼0.65 | 11.88 ▲9.79 | 37.53 ▼5.03 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▼0.06 | 88.98 ▼7.62 | 39.59 ▼3.99 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.99 ▼0.01 | 33.03 ▼7.48 | 36.22 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,541 ▲6 | 23.33 ▲5.22 | 700.71 ▲66.44 | 55.99 ▲0.88 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.20 ▲0.01 | 100.71 ▼5.79 | 46.66 ▲2.20 |
Scrollbars /wp-admin/themes.php?page=csb_settings | 2,384 | 3.90 | 94.61 | 48.11 |
Uninstaller [IO: ▲1.57MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsZombie WordPress options were found after uninstall: 7 options
- Uninstall procedure had uncaught errors
- > Compile error in wp-content/plugins/custom-scrollbar/custom-scrollbar.php+16
Cannot declare class CustomScrollbar_Registry_Base, because the name is already in use
- Uninstaller has failed for this plugin, leaving 230 files (1.57MB) in the plugin directory
- (new file) asset/css/csb_settings.min.css
- (new file) asset/log/1.3.4.rm
- (new file) asset/image/scrollbar_parts_names.pdn
- (new file) asset/js/custom-scrollbar-enabler.js
- (new file) asset/log/1.3.5.rm
- (new file) asset/image/scrollbar_parts_names.png
- (new file) asset/js/custom-scrollbar-enabler.min.js
- (new file) asset/css/csb_settings.css
- (new file) asset/css/admin.css
- (new file) asset/css/admin.min.css
- ...
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- recovery_mode_email_last_sent
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 176× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CustomScrollbar_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/custom-scrollbar/include/library/apf/factory/_common/_abstract/_model/AdminPageFramework_Format_Base.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomScrollbar_AdminPageFramework_Form_View___Attribute_Base' not found in wp-content/plugins/custom-scrollbar/include/library/apf/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_SectionTable.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomScrollbar_AdminPageFramework_Resource_Base' not found in wp-content/plugins/custom-scrollbar/include/library/apf/factory/admin_page/_controller/AdminPageFramework_Resource_admin_page.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomScrollbar_AdminPageFramework_Form_View___Generate_Base' not found in wp-content/plugins/custom-scrollbar/include/library/apf/factory/_common/form/_view/generator/section/AdminPageFramework_Form_View___Generate_SectionName.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomScrollbar_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/custom-scrollbar/include/library/apf/factory/_common/_abstract/_view/AdminPageFramework_PageLoadInfo_Base.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomScrollbar_AdminPageFramework_Factory___Script_Base' not found in wp-content/plugins/custom-scrollbar/include/library/apf/factory/_common/form/_view/script/AdminPageFramework_Form_View___Script_AttributeUpdator.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomScrollbar_AdminPageFramework_Input_Base' not found in wp-content/plugins/custom-scrollbar/include/library/apf/factory/_common/form/input/AdminPageFramework_Input_radio.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomScrollbar_PluginUtility' not found in wp-content/plugins/custom-scrollbar/include/main/resource/CustomScrollbar_ResourceLoader__Script.php:15
- > PHP Fatal error
Uncaught Error: Class 'CustomScrollbar_AdminPageFramework_Form_Base' not found in wp-content/plugins/custom-scrollbar/include/library/apf/factory/_common/form/_model/AdminPageFramework_Form_Model___DefaultValues.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomScrollbar_AdminPageFramework' not found in wp-content/plugins/custom-scrollbar/include/main/admin/CustomScrollbar_AdminPage.php:16
- > PHP Fatal error
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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
custom-scrollbar/custom-scrollbar.php Passed 13 tests
The main PHP file in "Custom Scrollbar" ver. 1.3.8 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Adds a custom scrollbar to specified HTML elements.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin20,185 lines of code in 214 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 194 | 1,138 | 3,112 | 15,259 |
JavaScript | 8 | 847 | 1,024 | 3,306 |
CSS | 10 | 359 | 156 | 1,057 |
PO File | 1 | 222 | 251 | 512 |
Markdown | 1 | 23 | 0 | 51 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 275 | |
▷ Abstract classes | 61 | 22.18% |
▷ Concrete classes | 214 | 77.82% |
▷ Final classes | 4 | 1.87% |
Methods | 1,571 | |
▷ Static methods | 269 | 17.12% |
▷ Public methods | 801 | 50.99% |
▷ Protected methods | 287 | 18.27% |
▷ Private methods | 483 | 30.74% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 1 | 3.57% |
▷ Class constants | 27 | 96.43% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/malihu-custom-scrollbar-plugin/mCSB_buttons.png | 2.93KB | 0.99KB | ▼ 66.18% |
asset/image/scrollbar_parts_names.png | 20.91KB | 5.34KB | ▼ 74.48% |