94% versatile-jquery-slider

Code Review | Versitile jQuery Slider

WordPress plugin Versitile jQuery Slider scored 94% from 54 tests.

About plugin

  • Plugin page: versatile-jquery-...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 5.8.1
  • First release: Aug 15, 2016
  • Latest release: Feb 10, 2017
  • Number of updates: 11
  • Update frequency: every 16.5 days
  • Top authors: elevaunt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 779 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼136.69ms] Passed 4 tests

Analyzing server-side resources used by Versitile jQuery Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0435.88 ▲0.94
Dashboard /wp-admin3.10 ▲0.0552.87 ▲10.17
Posts /wp-admin/edit.php3.15 ▲0.0444.02 ▲3.45
Add New Post /wp-admin/post-new.php5.46 ▲0.0290.47 ▼553.19
Media Library /wp-admin/upload.php3.04 ▲0.0434.06 ▲2.05

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Versitile jQuery Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.84 ▲0.3211.64 ▲0.4246.37 ▼1.23
Dashboard /wp-admin2,970 ▲336.14 ▲0.13149.57 ▼2.91112.15 ▲7.50
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0163.47 ▼2.8587.43 ▼0.60
Add New Post /wp-admin/post-new.php1,672 ▼018.87 ▲0.05388.89 ▼8.79104.59 ▲1.94
Media Library /wp-admin/upload.php1,810 ▼05.04 ▼0.00145.28 ▼19.88112.63 ▼8.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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 | 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/versatile-jquery-slider/versatile-jquery-slider.php:181

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)
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: slider, slideshow, jquery slider, jquery slideshow, responsive slider...

versatile-jquery-slider/versatile-jquery-slider.php Passed 13 tests

"Versitile jQuery Slider" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
104 characters long description:
Set up an easy, versatile, responsive slider with images or any HTML content. Powered by jQuery Cycle2.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin374 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/arrow-left.png2.43KB1.13KB▼ 53.45%
img/arrow-right.png2.48KB1.11KB▼ 55.39%