84% webcare-scrollbar

Code Review | WebCare Scrollbar

WordPress plugin WebCare Scrollbar scored84%from 54 tests.

About plugin

  • Plugin page: webcare-scrollbar
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.4-5.2
  • WordPress version: 6.3.1
  • First release: Nov 1, 2019
  • Latest release: Nov 1, 2019
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: goniusman69 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.27ms] Passed 4 tests

Analyzing server-side resources used by WebCare Scrollbar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.40 ▼3.58
Dashboard /wp-admin3.33 ▲0.0350.59 ▼1.25
Posts /wp-admin/edit.php3.38 ▲0.0249.56 ▲3.45
Add New Post /wp-admin/post-new.php5.93 ▲0.04113.73 ▲23.67
Media Library /wp-admin/upload.php3.25 ▲0.0237.18 ▲2.46

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WebCare Scrollbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,041 ▲30613.82 ▼0.5812.98 ▲11.3339.82 ▼4.88
Dashboard /wp-admin2,223 ▲495.85 ▼0.04101.74 ▼8.4440.12 ▼2.52
Posts /wp-admin/edit.php2,109 ▲232.05 ▲0.0439.81 ▲1.4239.91 ▲5.86
Add New Post /wp-admin/post-new.php1,534 ▲123.42 ▲0.36673.90 ▲24.8951.81 ▲0.42
Media Library /wp-admin/upload.php1,405 ▲174.25 ▲0.0593.63 ▼5.0346.48 ▲3.66

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/webcare-scrollbar/webcare-scrollbar.php

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

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: webcare, scrollbar, nice scroll, scroll

webcare-scrollbar/webcare-scrollbar.php 92% from 13 tests

The main PHP file in "WebCare Scrollbar" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
Everything looks great! No dangerous files found in this plugin805 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript219476
PHP85562168
CSS100161

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin