Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼297.35ms] Passed 4 tests
Server-side resources used by Swish Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.42 | 56.49 ▲26.95 |
Dashboard /wp-admin | 3.44 ▲0.03 | 31.94 ▼1.92 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 34.94 ▼2.08 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 91.86 ▼1,182.94 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 22.31 ▼2.45 |
Add New /wp-admin/post-new.php?post_type=swish-slider | 3.61 | 42.50 |
All Sliders /wp-admin/edit.php?post_type=swish-slider | 3.35 | 26.26 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Swish Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,824 ▲66 | 16.01 ▲0.09 | 5.96 ▼2.44 | 2.12 ▼0.77 |
Dashboard /wp-admin | 2,927 ▲69 | 6.15 ▼0.07 | 117.90 ▼19.60 | 152.19 ▼15.50 |
Posts /wp-admin/edit.php | 2,726 ▲41 | 3.24 ▲0.01 | 62.18 ▼2.02 | 134.02 ▼12.20 |
Add New Post /wp-admin/post-new.php | 1,691 ▼20 | 18.09 ▼2.74 | 433.14 ▲4.29 | 155.65 ▲0.11 |
Media Library /wp-admin/upload.php | 1,733 ▲35 | 5.46 ▼0.06 | 138.31 ▼8.06 | 188.97 ▼8.52 |
Add New /wp-admin/post-new.php?post_type=swish-slider | 2,929 | 11.44 | 223.56 | 197.45 |
All Sliders /wp-admin/edit.php?post_type=swish-slider | 1,399 | 3.16 | 57.16 | 109.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 fix the following
- 1× 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/swish-slider-lite/swish-slider.php:50
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=swish-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=5.9.2 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/swish-slider-lite/scripts/admin-script.js?ver=5.9.2:117:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30340)" undefined
- > GET request to /wp-admin/post-new.php?post_type=swish-slider
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2 1:31702 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: tocuh, responsive, swipe, mobile, slider
swish-slider-lite/swish-slider.php 77% from 13 tests
"Swish Slider" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("swish-slider-lite.php" instead of "swish-slider.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 310 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin953 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 20 | 367 |
CSS | 8 | 58 | 9 | 306 |
JavaScript | 2 | 63 | 41 | 280 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected