10% jquery-vertical-scroller

Code Review | jQuery Vertical Scroller

WordPress plugin jQuery Vertical Scroller scored10%from 54 tests.

About plugin

  • Plugin page: jquery-vertical-s...
  • Plugin version: 2.9.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2012
  • Latest release: Feb 23, 2019
  • Number of updates: 56
  • Update frequency: every 40.7 days
  • Top authors: VamsiTech (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

900+ active /38,475 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/jquery-vertical-scroller/sg-jqvs-widget-plugin.php+26
    Methods with the same name as their class will not be constructors in a future version of PHP; sg_jquery_scroller_widget has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼56.74ms] Passed 4 tests

A check of server-side resources used by jQuery Vertical Scroller
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.304.73 ▼35.52
Dashboard /wp-admin2.19 ▼1.125.59 ▼43.42
Posts /wp-admin/edit.php2.19 ▼1.175.80 ▼45.83
Add New Post /wp-admin/post-new.php2.19 ▼3.706.14 ▼102.18
Media Library /wp-admin/upload.php2.19 ▼1.045.46 ▼25.47

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_sg_jquery_scroller_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for jQuery Vertical Scroller
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲11913.41 ▼0.798.94 ▲7.0641.87 ▼2.71
Dashboard /wp-admin2,202 ▲255.63 ▲0.0484.29 ▼9.9639.59 ▼5.92
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0337.77 ▼0.5332.19 ▼5.38
Add New Post /wp-admin/post-new.php1,539 ▲1318.20 ▼4.74602.16 ▼27.7768.65 ▲16.22
Media Library /wp-admin/upload.php1,407 ▲74.10 ▼0.18103.19 ▲6.4644.54 ▲4.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/jquery-vertical-scroller/sg-jqvs-widget-plugin.php+26
    Methods with the same name as their class will not be constructors in a future version of PHP; sg_jquery_scroller_widget has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_sg_jquery_scroller_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jquery-vertical-scroller/sg-jqvs-widget-plugin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

jquery-vertical-scroller/sg-jqvs-widget-plugin.php 92% from 13 tests

Analyzing the main PHP file in "jQuery Vertical Scroller" version 2.9.2
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("jquery-vertical-scroller.php" instead of "sg-jqvs-widget-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected621 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP12926412
PO File36666184
CSS152124
JavaScript16201

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity5.75
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.28MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png7.89KB3.97KB▼ 49.72%
assets/screenshot-2.png15.39KB7.33KB▼ 52.37%
assets/screenshot-1.png13.27KB6.67KB▼ 49.78%
assets/screenshot-3.png10.02KB4.68KB▼ 53.25%
assets/banner-772x250.png240.96KB109.40KB▼ 54.60%