79% wonderplugin-slider-lite

Code Review | Wonder Slider Lite

WordPress plugin Wonder Slider Lite scored79%from 54 tests.

About plugin

  • Plugin page: wonderplugin-slid...
  • Plugin version: 13.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2016
  • Latest release: Nov 29, 2023
  • Number of updates: 29
  • Update frequency: every 98.6 days
  • Top authors: wonderplugin (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

10,000+ active /179,272 total downloads

Benchmarks

Plugin footprint 65% from 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.70MB] [CPU: ▼1.09ms] 75% from 4 tests

This is a short check of server-side resources used by Wonder Slider Lite
It is recommended to improve the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,041.39ms on /wp-admin/admin.php?page=wonderplugin_slider_overview)
PageMemory (MB)CPU Time (ms)
Home /4.20 ▲0.7339.37 ▼0.77
Dashboard /wp-admin4.05 ▲0.7152.04 ▼10.46
Posts /wp-admin/edit.php4.10 ▲0.7555.88 ▲9.28
Add New Post /wp-admin/post-new.php6.57 ▲0.6999.06 ▼2.41
Media Library /wp-admin/upload.php3.91 ▲0.6843.02 ▲9.28
Settings /wp-admin/admin.php?page=wonderplugin_slider_edit_settings3.9040.88
Edit Slider /wp-admin/admin.php?page=wonderplugin_slider_edit_item3.9043.04
New Slider /wp-admin/admin.php?page=wonderplugin_slider_add_new3.9145.58
View Slider /wp-admin/admin.php?page=wonderplugin_slider_show_item3.9039.97
Manage Sliders /wp-admin/admin.php?page=wonderplugin_slider_show_items3.9253.95
Overview /wp-admin/admin.php?page=wonderplugin_slider_overview5.021,041.39
Tools /wp-admin/admin.php?page=wonderplugin_slider_import_export4.2050.69

Server storage [IO: ▲2.98MB] [DB: ▲0.03MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 199 new files
Database: 1 new table, 10 new options
New tables
wp_wonderplugin_slider
New WordPress options
theysaidso_admin_options
wonderplugin_slider_initd
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
wonderplugin_slider_userrole
wonderplugin_slider_thumbnailsize
wonderplugin-slider-engine
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Wonder Slider Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16613.88 ▼0.399.56 ▲7.8339.58 ▼3.58
Dashboard /wp-admin2,233 ▲565.50 ▼0.0494.18 ▼7.3474.66 ▲27.12
Posts /wp-admin/edit.php2,138 ▲351.97 ▲0.0239.30 ▼2.5936.02 ▼0.17
Add New Post /wp-admin/post-new.php6,395 ▲4,86928.62 ▲5.30842.43 ▲211.1735.72 ▼28.58
Media Library /wp-admin/upload.php1,438 ▲444.16 ▲0.0395.00 ▼0.1277.20 ▲36.59
Settings /wp-admin/admin.php?page=wonderplugin_slider_edit_settings1,2454.0071.7780.61
Edit Slider /wp-admin/admin.php?page=wonderplugin_slider_edit_item1,0383.8063.4382.04
New Slider /wp-admin/admin.php?page=wonderplugin_slider_add_new5,9254.6790.92140.54
View Slider /wp-admin/admin.php?page=wonderplugin_slider_show_item1,0413.8357.8473.97
Manage Sliders /wp-admin/admin.php?page=wonderplugin_slider_show_items1,2003.8361.5088.09
Overview /wp-admin/admin.php?page=wonderplugin_slider_overview1,3394.1865.9879.90
Tools /wp-admin/admin.php?page=wonderplugin_slider_import_export6,6094.3279.3076.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_wonderplugin_slider
  • This plugin does not fully uninstall, leaving 10 options in the database
    • wonderplugin-slider-engine
    • wonderplugin_slider_thumbnailsize
    • wonderplugin_slider_initd
    • db_upgraded
    • wonderplugin_slider_userrole
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
The official readme.txt might help

wonderplugin-slider-lite/wonderpluginslider.php 92% from 13 tests

Analyzing the main PHP file in "Wonder Slider Lite" version 13.9
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wonderplugin-slider-lite.php" instead of "wonderpluginslider.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin8,490 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP7843474,422
CSS8189681,694
JavaScript62143321,433
HTML191444
JSON100418
SVG167079

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 171)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity108.33
▷ Minimum class complexity2.00
▷ Maximum class complexity383.00
Average method complexity6.46
▷ Minimum method complexity1.00
▷ Maximum method complexity171.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods119
▷ Static methods00.00%
▷ Public methods119100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants6
▷ Global constants6100.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
130 PNG files occupy 0.37MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
engine/carouselarrows-32-32-5.png0.43KB0.22KB▼ 49.08%
engine/bullet-6-6-0.png0.20KB0.27KB0.00%
engine/bottomshadow-110-95-1.png30.59KB9.35KB▼ 69.45%
engine/navplaypause-64-64-0.png3.28KB2.43KB▼ 25.74%
engine/bullet-20-20-2.png0.43KB0.33KB▼ 21.97%