84% vr-jscrollpane-shortcode

Code Review | VR jScrollPane Shortcode

WordPress plugin VR jScrollPane Shortcode scored 84% from 54 tests.

About plugin

  • Plugin page: vr-jscrollpane-sh...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 6.3.1
  • First release: Mar 14, 2013
  • Latest release: Mar 17, 2013
  • Number of updates: 15
  • Update frequency: every 0.3 days
  • Top authors: vijayrajesh (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 4,178 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by VR jScrollPane Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.90 ▲1.46
Dashboard /wp-admin3.31 ▲0.0143.86 ▼3.69
Posts /wp-admin/edit.php3.36 ▲0.0043.42 ▼2.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.89 ▼8.82
Media Library /wp-admin/upload.php3.23 ▲0.0033.70 ▲2.42

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for VR jScrollPane Shortcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16714.06 ▼0.345.90 ▲3.9543.48 ▼0.83
Dashboard /wp-admin2,209 ▲355.06 ▼0.79103.99 ▼3.8443.72 ▼0.73
Posts /wp-admin/edit.php2,071 ▼152.04 ▼0.0137.15 ▲1.7436.03 ▼1.59
Add New Post /wp-admin/post-new.php1,542 ▲2818.44 ▲0.81626.51 ▼47.4362.28 ▲2.47
Media Library /wp-admin/upload.php1,385 ▼34.18 ▲0.0597.32 ▲2.1941.79 ▲1.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vr-jscrollpane-shortcode/vr-jscrollpane-shortcode.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
The official readme.txt might help

vr-jscrollpane-shortcode/vr-jscrollpane-shortcode.php Passed 13 tests

"VR jScrollPane Shortcode" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Adds scrollable content section using jScrollPane

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected184 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS120798
JavaScript2162356
PHP161130

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.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 were not PNG files found in your plugin