10% wave-slider

Code Review | Wave Slider

WordPress plugin Wave Slider scored 10% from 54 tests.

About plugin

  • Plugin page: wave-slider
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2014
  • Latest release: Sep 24, 2014
  • Number of updates: 7
  • Update frequency: every 4.9 days
  • Top authors: ipsrteam (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active / 6,463 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/wave-slider/wave-slider.php+22
    Undefined variable: _o_config

Server metrics [RAM: ▼1.90MB] [CPU: ▼51.24ms] Passed 4 tests

Server-side resources used by Wave Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.17 ▼37.85
Dashboard /wp-admin2.10 ▼1.207.03 ▼40.39
Posts /wp-admin/edit.php2.10 ▼1.256.13 ▼42.56
Add New Post /wp-admin/post-new.php2.10 ▼3.786.16 ▼84.16
Media Library /wp-admin/upload.php2.10 ▼1.135.84 ▼26.81
Wave Slider /wp-admin/edit.php?post_type=wave-slider2.105.64
Add New /wp-admin/post-new.php?post_type=wave-slider2.106.37

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Wave Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲22014.94 ▲0.541.66 ▼0.2041.14 ▼5.53
Dashboard /wp-admin2,376 ▲1886.45 ▲1.36137.95 ▲28.0942.50 ▼3.68
Posts /wp-admin/edit.php2,279 ▲1873.51 ▲1.4655.74 ▲12.9232.41 ▼4.96
Add New Post /wp-admin/post-new.php1,543 ▲1023.55 ▲0.27570.33 ▼61.6134.10 ▼23.15
Media Library /wp-admin/upload.php1,424 ▲334.20 ▼0.0880.31 ▼18.4241.69 ▼3.20
Wave Slider /wp-admin/edit.php?post_type=wave-slider1,2493.3857.0831.33
Add New /wp-admin/post-new.php?post_type=wave-slider1,6443.5467.3431.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wave-slider/wave-slider.php+22
    Undefined variable: _o_config
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wave-slider
    • > Notice in wp-content/plugins/wave-slider/wave-slider.php+22
    Undefined variable: _o_config
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wave-slider
    • > Notice in wp-content/plugins/wave-slider/wave-slider.php+22
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: _o_config in wp-content/plugins/wave-slider/wave-slider.php on line 22
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wave-slider/wave-slider.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wave-slider/wave-slider.php:23

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wave-slider
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wave-slider/assets/backend/js/script.js?ver=6.3.1:51:24)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wave-slider
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === wave-slider === )
The official readme.txt might help

wave-slider/wave-slider.php Passed 13 tests

The principal PHP file in "Wave Slider" v. 1.1 is loaded by WordPress automatically on each request
53 characters long description:
Simple Creative responsive Slider, Get in motion !!!!

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
There were no executable files found in this plugin241 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP12411144
JavaScript222594
CSS2003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/frontend/css/next.png0.45KB0.35KB▼ 22.15%
assets/frontend/css/prev.png0.43KB0.35KB▼ 18.22%
assets/backend/css/bg.png0.13KB0.13KB0.00%
assets/frontend/css/shadow.png6.28KB8.47KB0.00%