10% wowslider

Code Review | WOW Slider

WordPress plugin WOW Slider scored 10% from 54 tests.

About plugin

  • Plugin page: wowslider
  • Plugin version: 8.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 6.3.1
  • First release: Nov 8, 2012
  • Latest release: Oct 27, 2015
  • Number of updates: 180
  • Update frequency: every 6.0 days
  • Top authors: WOWSlider.com (100%)

Code review

54 tests

User reviews

96 reviews

Install metrics

5,000+ active / 645,251 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wowslider/helpers.php+27
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.79MB] [CPU: ▼51.98ms] Passed 4 tests

An overview of server-side resources used by WOW Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.275.56 ▼35.29
Dashboard /wp-admin2.22 ▼1.097.14 ▼44.18
Posts /wp-admin/edit.php2.22 ▼1.147.52 ▼39.17
Add New Post /wp-admin/post-new.php2.22 ▼3.676.68 ▼89.26
Media Library /wp-admin/upload.php2.22 ▼1.017.30 ▼27.67
All Sliders /wp-admin/admin.php?page=wowslider/admin.php2.226.52
Add New /wp-admin/admin.php?page=wowslider-add-new2.227.09

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: 1 new table, 7 new options
New tables
wp_wowslider
New WordPress options
widget_recent-posts
db_upgraded
wowslider_installed
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WOW Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲20713.82 ▼0.555.13 ▲3.2938.70 ▼10.68
Dashboard /wp-admin2,241 ▲534.96 ▼0.93107.99 ▼5.6975.27 ▲28.10
Posts /wp-admin/edit.php2,127 ▲381.97 ▼0.0337.47 ▼2.4333.74 ▼3.14
Add New Post /wp-admin/post-new.php1,551 ▲1122.94 ▼0.04735.06 ▲77.3460.78 ▲9.29
Media Library /wp-admin/upload.php1,426 ▲384.12 ▼0.1092.76 ▼1.0065.15 ▲23.36
All Sliders /wp-admin/admin.php?page=wowslider/admin.php1,2661.6828.4531.83
Add New /wp-admin/admin.php?page=wowslider-add-new9212.0227.2034.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wowslider/helpers.php+27
    Array and string offset access syntax with curly braces is deprecated
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wowslider-add-new
    • > Deprecated in wp-content/plugins/wowslider/helpers.php+27
    Array and string offset access syntax with curly braces is deprecated
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wowslider-add-new
    • > Deprecated in wp-content/plugins/wowslider/admin.php+7
    Function create_function() is deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wowslider-add-new
    • > Warning in wp-content/plugins/wowslider/list-table.php+174
    Declaration of WOWSlider_List_Table::single_row($id, $data, $index) should be compatible with WP_List_Table::single_row($item)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wowslider-add-new
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
    • > GET request to /wp-admin/admin.php?page=wowslider/admin.php
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WOWSlider_List_Table::get_columns() should not be called statically

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wowslider/uninstall.php
  • 4× 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/wowslider/admin-bar.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wowslider/wowslider.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wowslider/list-table.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wowslider/admin.php:267

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Preview changes. Use WOW Slider menu WOW Slider -> Add New to add each next slider) image required
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
The official readme.txt is a good inspiration

wowslider/wowslider.php Passed 13 tests

The main PHP file in "WOW Slider" ver. 8.6 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
This module easily adds image sliders created with WOWSlider app.

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,027 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP75219897
CSS15569
JavaScript11061

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity49.50
▷ Minimum class complexity47.00
▷ Maximum class complexity52.00
Average method complexity6.11
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
data/icons.png0.80KB0.55KB▼ 31.58%
data/icons32.png1.28KB0.91KB▼ 28.50%
data/icon.png0.31KB0.24KB▼ 21.20%