Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/kads-slider/includes/kads-class.php+60
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.85MB] [CPU: ▼188.75ms] Passed 4 tests
Analyzing server-side resources used by Kads Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼0.94 | 5.20 ▼18.38 |
Dashboard /wp-admin | 1.80 ▼1.26 | 5.23 ▼48.22 |
Posts /wp-admin/edit.php | 1.81 ▼1.31 | 6.37 ▼37.65 |
Add New Post /wp-admin/post-new.php | 1.80 ▼3.63 | 5.42 ▼643.15 |
Media Library /wp-admin/upload.php | 1.80 ▼1.20 | 5.21 ▼25.97 |
Sliders /wp-admin/admin.php?page=kads-slider-sliders-items | 1.81 | 5.20 |
Add New /wp-admin/admin.php?page=kads-slider | 1.81 | 5.24 |
Server storage [IO: ▲2.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Kads Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲102 | 16.22 ▲0.56 | 8.75 ▼0.27 | 48.35 ▼18.68 |
Dashboard /wp-admin | 3,002 ▲68 | 5.93 ▼0.24 | 132.64 ▼32.97 | 110.25 ▼22.88 |
Posts /wp-admin/edit.php | 2,768 ▲29 | 2.72 ▼0.00 | 68.86 ▲5.19 | 93.79 ▲1.20 |
Add New Post /wp-admin/post-new.php | 1,895 ▲395 | 19.16 ▲0.54 | 370.14 ▼7.58 | 109.29 ▲6.71 |
Media Library /wp-admin/upload.php | 1,836 ▲29 | 5.07 ▲0.03 | 144.22 ▼0.65 | 117.12 ▼3.73 |
Sliders /wp-admin/admin.php?page=kads-slider-sliders-items | 1,390 | 4.11 | 70.54 | 95.40 |
Add New /wp-admin/admin.php?page=kads-slider | 7,077 | 6.31 | 148.86 | 118.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/kads-slider/includes/kads-class.php+60
Array and string offset access syntax with curly braces is deprecated
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
Smoke test failed, please fix the following
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=kads-slider
- > Deprecated in wp-content/plugins/kads-slider/includes/kads-class.php+70
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/admin.php?page=kads-slider-sliders-items
- > Notice in wp-content/plugins/kads-slider/templates/slider-admin.php+14
Undefined variable: max_images
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=kads-slider
- > Notice in wp-content/plugins/kads-slider/templates/slider-add.php+63
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/admin.php?page=kads-slider
- > Notice in wp-content/plugins/kads-slider/templates/slider-add.php+32
Trying to get property 'contents' of non-object
- > GET request to /wp-admin/admin.php?page=kads-slider
- > Notice in wp-content/plugins/kads-slider/templates/slider-add.php+76
Trying to get property 'post_title' of non-object
- > GET request to /wp-admin/admin.php?page=kads-slider
- > Notice in wp-content/plugins/kads-slider/templates/slider-add.php+82
Trying to get property 'post_name' of non-object
SRP 0% from 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
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/kads-slider/includes/kads-class.php
- > /wp-content/plugins/kads-slider/kads-slider.php
- > /wp-content/plugins/kads-slider/includes/kads-functions.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: slider in wp-content/plugins/kads-slider/templates/slider.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_localize_script() in wp-content/plugins/kads-slider/templates/slider-admin.php:13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in kads-slider/assets to your readme.txt
kads-slider/kads-slider.php 92% from 13 tests
The primary PHP file in "Kads Slider" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 242 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin34,205 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 2,812 | 3,516 | 12,048 |
CSS | 10 | 511 | 266 | 10,069 |
Sass | 13 | 969 | 4 | 7,255 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 6 | 135 | 214 | 1,942 |
Markdown | 1 | 84 | 0 | 127 |
JSON | 3 | 0 | 0 | 93 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 25.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 75.00% |
Functions | 33 | |
▷ Named functions | 33 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
assets/css/images/ui-icons_333333_256x240.png | 6.81KB | 4.17KB | ▼ 38.71% |
assets/images/time-ruler.png | 0.15KB | 0.11KB | ▼ 29.68% |
assets/css/images/ui-icons_b70404_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/images/kads.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |