Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/mk-slider/admin/init.php+54
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.44ms] Passed 4 tests
Analyzing server-side resources used by MK Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 6.09 ▼42.11 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.49 ▼47.93 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.44 ▼43.59 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.54 ▼92.11 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.16 ▼27.72 |
Add New /wp-admin/post-new.php?post_type=mkslider | 2.05 | 6.06 |
All Sliders /wp-admin/edit.php?post_type=mkslider | 2.05 | 7.04 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_mkslider_widget |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for MK Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲199 | 14.00 ▼0.35 | 15.41 ▲13.54 | 42.52 ▼1.88 |
Dashboard /wp-admin | 2,214 ▲37 | 5.57 ▼0.05 | 83.15 ▼6.59 | 66.71 ▲24.71 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.21 ▲0.19 | 37.59 ▲2.59 | 36.08 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.18 ▲0.17 | 768.64 ▲112.01 | 51.03 ▼3.62 |
Media Library /wp-admin/upload.php | 1,438 ▲35 | 4.26 ▼0.05 | 98.61 ▼2.23 | 74.79 ▲26.59 |
Add New /wp-admin/post-new.php?post_type=mkslider | 1,985 | 2.63 | 59.00 | 78.31 |
All Sliders /wp-admin/edit.php?post_type=mkslider | 1,158 | 2.18 | 32.94 | 32.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/mk-slider/admin/init.php+54
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_mkslider_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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/edit.php?post_type=mkslider
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/mk-slider/admin/init.php+54
Function create_function() is deprecated
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+25
Undefined index: mk_slides_count
- 46 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+196
Trying to access array offset on value of type null
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+26
Undefined index: mk_images
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+27
Undefined index: mk_links
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+28
Undefined index: mk_links_target
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+29
Undefined index: mk_titles
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+30
Undefined index: mk_desc
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+122
Undefined index: mkShowLabel
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+130
Undefined index: mkShowNav
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+138
Undefined index: mkStopOverHover
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+144
Undefined index: mkSliderWidth
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+149
Undefined index: mkSliderHeight
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+154
Undefined index: mkSliderBorderWidth
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+160
Undefined index: mkSliderBorderColor
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+168
Undefined index: mkSliderBorderRadius
- 7 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+180
Undefined index: mkSliderTransition
- 20 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+188
Undefined index: mkTransitionVelocity
- > GET request to /wp-admin/post-new.php?post_type=mkslider
- > Notice in wp-content/plugins/mk-slider/admin/slides-metabox.php+196
Undefined index: mkSliderInterval
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
Almost there! Just fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mk-slider/admin/slider-widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mk-slider/admin/slides-metabox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mk-slider/admin/slides-sidebar-metabox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mk-slider/admin/init.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mk-slider/admin/init.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mk-slider/admin/post-type.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% 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:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: A description for screenshot #1 is required in mk-slider/assets to your readme.txt
mk-slider/mk_slider.php 92% from 13 tests
The principal PHP file in "MK Slider" v. 1.3.4 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mk-slider.php" instead of "mk_slider.php")
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 plugin826 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 75 | 109 | 579 |
JavaScript | 4 | 10 | 93 | 176 |
CSS | 2 | 18 | 24 | 71 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 5.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 | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/minus.png | 0.11KB | 0.11KB | ▼ 4.31% |
images/play-button.png | 0.59KB | 0.44KB | ▼ 25.33% |
images/focus-button.png | 0.74KB | 0.54KB | ▼ 26.13% |
images/mk32.png | 1.52KB | 1.65KB | 0.00% |
images/prev.png | 0.86KB | 0.47KB | ▼ 45.48% |