84% vertical-tab-slider

Code Review | Vertical Tab Slider

WordPress plugin Vertical Tab Slider scored84%from 54 tests.

About plugin

  • Plugin page: vertical-tab-slider
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Feb 18, 2014
  • Latest release: Aug 19, 2014
  • Number of updates: 11
  • Update frequency: every 16.5 days
  • Top authors: wptreasure (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

80+ active /8,239 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.86ms] Passed 4 tests

Server-side resources used by Vertical Tab Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.16 ▲3.51
Dashboard /wp-admin3.40 ▲0.0543.26 ▼16.59
Posts /wp-admin/edit.php3.45 ▲0.0942.76 ▼3.04
Add New Post /wp-admin/post-new.php5.98 ▲0.0982.00 ▼10.65
Media Library /wp-admin/upload.php3.32 ▲0.0932.67 ▼1.14

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

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

Browser metrics Passed 4 tests

Vertical Tab Slider: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14313.45 ▼1.197.67 ▲5.9441.81 ▲1.41
Dashboard /wp-admin2,210 ▲295.53 ▼0.1986.58 ▼10.0474.44 ▲32.23
Posts /wp-admin/edit.php2,115 ▲181.96 ▼0.0233.70 ▼0.8431.69 ▼3.71
Add New Post /wp-admin/post-new.php1,539 ▲424.02 ▲5.76693.92 ▲65.0953.06 ▼5.86
Media Library /wp-admin/upload.php1,418 ▲184.07 ▼0.1591.83 ▼11.8972.00 ▲28.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • vts_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 2× 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/vertical-tab-slider/vts-display.php:188
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vertical-tab-slider/vts-display.php:188

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

vertical-tab-slider/vtslider.php 92% from 13 tests

The primary PHP file in "Vertical Tab Slider" version 1.2.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vertical-tab-slider.php" instead of "vtslider.php")

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 plugin736 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP310039466
JavaScript3581152
CSS223118

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions9
▷ Named functions9100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrows.png0.58KB0.66KB0.00%
images/overlay_bg.png0.11KB0.09KB▼ 12.84%
images/icon.png0.54KB0.68KB0.00%