73% avartan-slider-lite

Code Review | Responsive WordPress Slider - Avartan Slider Lite

WordPress plugin Responsive WordPress Slider - Avartan Slider Lite scored 73% from 54 tests.

About plugin

  • Plugin page: avartan-slider-lite
  • Plugin version: 1.5.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 5.9.2
  • First release: Oct 14, 2015
  • Latest release: Jan 19, 2021
  • Number of updates: 38
  • Update frequency: every 50.7 days
  • Top authors: solwininfotech (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active / 41,251 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲2.07MB] [CPU: ▼287.35ms] Passed 4 tests

An overview of server-side resources used by Responsive WordPress Slider - Avartan Slider Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.48 ▲1.9763.68 ▲11.74
Dashboard /wp-admin6.18 ▲2.77892.33 ▲859.77
Posts /wp-admin/edit.php5.72 ▲2.0848.37 ▲10.70
Add New Post /wp-admin/post-new.php9.03 ▲2.06102.63 ▼1,180.15
Media Library /wp-admin/upload.php5.45 ▲2.1533.97 ▲8.31
Create New Slider /wp-admin/admin.php?page=avs_standard_slider8.5898.94
Upgrade to PRO /wp-admin/admin.php?page=avs_upgrade_to_pro5.8940.46

Server storage [IO: ▲9.47MB] [DB: ▲1.35MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 259 new files
Database: 3 new tables, 3 new options
New tables
wp_avartan_preset
wp_avartan_slides
wp_avartan_sliders
New WordPress options
is_user_subscribed_cancled
avs_preset_version
avl_version

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive WordPress Slider - Avartan Slider Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,312 ▲55816.28 ▲0.598.73 ▲1.902.39 ▲0.27
Dashboard /wp-admin3,326 ▲4656.28 ▲0.12116.49 ▼15.13184.47 ▲25.09
Posts /wp-admin/edit.php2,956 ▲2653.13 ▼0.1062.07 ▼2.95133.47 ▼4.52
Add New Post /wp-admin/post-new.php1,802 ▲5121.39 ▼0.57382.54 ▼70.69172.56 ▲13.35
Media Library /wp-admin/upload.php1,950 ▲2525.71 ▲0.18121.50 ▼15.66204.73 ▲21.45
Create New Slider /wp-admin/admin.php?page=avs_standard_slider6,2237.08161.66281.55
Upgrade to PRO /wp-admin/admin.php?page=avs_upgrade_to_pro3,3555.76102.44210.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_avartan_preset
  • This plugin did not uninstall successfully, leaving 3 options in the database
    • avs_preset_version
    • is_user_subscribed_cancled
    • avl_version

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=avs_standard_slider
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=5.9.2+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
    • > GET request to /wp-admin/admin.php?page=avs_standard_slider
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=5.9.2+1:283
    wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

avartan-slider-lite/avartanslider.php 85% from 13 tests

The principal PHP file in "Responsive WordPress Slider - Avartan Slider Lite" v. 1.5.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 270 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("avartan-slider-lite.php" instead of "avartanslider.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin27,711 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP417001,0409,879
SVG50158,336
CSS69852465,878
JavaScript35244853,618

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 153)
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity52.08
▷ Minimum class complexity1.00
▷ Maximum class complexity326.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity153.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods143
▷ Static methods6545.45%
▷ Public methods14097.90%
▷ Protected methods00.00%
▷ Private methods32.10%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants26
▷ Global constants311.54%
▷ Class constants2388.46%
▷ Public constants23100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
103 PNG files occupy 1.24MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
manage/assets/images/editor-icon/layer-align-center.png1.15KB0.36KB▼ 68.56%
views/assets/images/bullets/navigation9.png0.46KB0.42KB▼ 7.46%
manage/assets/images/hue.png2.90KB0.50KB▼ 82.71%
manage/assets/images/pattern_bg.png0.20KB0.09KB▼ 56.25%
manage/assets/images/editor-icon/box-shadow.png1.15KB0.60KB▼ 47.74%