84% vdslider

Code Review | vdSlider

WordPress plugin vdSlider scored84%from 54 tests.

About plugin

  • Plugin page: vdslider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2014
  • Latest release: Mar 1, 2015
  • Number of updates: 4
  • Update frequency: every 81.8 days
  • Top authors: Verdande (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.03ms] Passed 4 tests

This is a short check of server-side resources used by vdSlider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.00 ▼0.14
Dashboard /wp-admin3.33 ▼0.0146.28 ▼13.27
Posts /wp-admin/edit.php3.38 ▲0.0346.08 ▲3.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.42 ▼8.06
Media Library /wp-admin/upload.php3.26 ▲0.0334.68 ▲1.36
vdSlider /wp-admin/edit.php?post_type=vds_images3.3033.82
Add New /wp-admin/post-new.php?post_type=vds_images3.3145.22

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for vdSlider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18513.37 ▼1.197.63 ▲6.1938.19 ▲2.33
Dashboard /wp-admin2,219 ▲415.50 ▼0.2086.31 ▼25.2040.04 ▼6.07
Posts /wp-admin/edit.php2,127 ▲271.96 ▼0.0536.33 ▲3.5331.67 ▼3.34
Add New Post /wp-admin/post-new.php1,564 ▲3818.22 ▼4.89618.28 ▼26.9260.61 ▲6.55
Media Library /wp-admin/upload.php1,424 ▲244.29 ▲0.0699.72 ▼4.9743.14 ▲0.97
vdSlider /wp-admin/edit.php?post_type=vds_images1,0881.9330.6928.77
Add New /wp-admin/post-new.php?post_type=vds_images1,6333.9659.7137.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vdslider/vdSlider.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: simple slider, jquery slider, nivo slider

vdslider/vdSlider.php 92% from 13 tests

Analyzing the main PHP file in "vdSlider" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vdslider.php" instead of "vdSlider.php")

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
Good job! No executable or dangerous file extensions detected1,047 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript27565525
CSS52350472
PHP191750

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
nivo-slider/themes/default/bullets.png1.25KB1.08KB▼ 13.74%
nivo-slider/themes/dark/arrows.png3.02KB0.38KB▼ 87.27%
nivo-slider/themes/light/arrows.png3.17KB0.52KB▼ 83.49%
nivo-slider/themes/default/arrows.png0.80KB0.51KB▼ 36.53%
nivo-slider/themes/light/bullets.png3.21KB0.54KB▼ 83.24%