84% vp-slider

Code Review | VP Slider

WordPress plugin VP Slider scored84%from 54 tests.

About plugin

  • Plugin page: vp-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2014
  • Latest release: Jun 7, 2014
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: Maruf Arafat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,191 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.92ms] Passed 4 tests

A check of server-side resources used by VP Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.06 ▼5.73
Dashboard /wp-admin3.35 ▲0.0043.05 ▼23.59
Posts /wp-admin/edit.php3.40 ▲0.0448.35 ▲2.59
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.43 ▼14.66
Media Library /wp-admin/upload.php3.28 ▲0.0435.65 ▲0.31
VP Slider /wp-admin/edit.php?post_type=vp_iatcs3.3236.95
Add New /wp-admin/post-new.php?post_type=vp_iatcs3.3648.00
VP Category /wp-admin/edit-tags.php?taxonomy=vp_iatcs_category&post_type=vp_iatcs3.2733.40

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by VP Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲16013.65 ▼0.977.98 ▲5.8437.59 ▼6.34
Dashboard /wp-admin2,243 ▲555.82 ▼0.25101.10 ▼10.0840.52 ▼3.50
Posts /wp-admin/edit.php2,126 ▲372.05 ▲0.0239.59 ▲1.6035.08 ▼0.10
Add New Post /wp-admin/post-new.php1,546 ▲1723.11 ▼0.21646.34 ▼24.3259.72 ▲7.23
Media Library /wp-admin/upload.php1,425 ▲344.23 ▼0.00107.32 ▲6.5146.77 ▲1.56
VP Slider /wp-admin/edit.php?post_type=vp_iatcs1,1071.9831.6930.08
Add New /wp-admin/post-new.php?post_type=vp_iatcs1,8883.7662.5236.64
VP Category /wp-admin/edit-tags.php?taxonomy=vp_iatcs_category&post_type=vp_iatcs1,2962.3027.4329.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× 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/vp-slider/VP_function.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vp-slider/js/functions.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

vp-slider/VP_function.php 92% from 13 tests

The primary PHP file in "VP Slider" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("vp-slider.php" instead of "VP_function.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,613 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1207171,288
PHP24615207
CSS21418118

PHP code Passed 2 tests

A short 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.04
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
No PNG images were found in this plugin