Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/md-responsive-jquery-slider/index.php+337
Use of undefined constant show_md_slider_on_page - assumed 'show_md_slider_on_page' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.88MB] [CPU: ▼49.46ms] Passed 4 tests
Analyzing server-side resources used by MD Responsive WordPress Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.74 ▼36.74 |
Dashboard /wp-admin | 2.12 ▼1.18 | 10.08 ▼42.62 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 6.12 ▼40.78 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 8.63 ▼77.70 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.96 ▼31.36 |
All Slides /wp-admin/edit.php?post_type=md-slider | 2.12 | 6.07 |
Add New /wp-admin/post-new.php?post_type=md-slider | 2.12 | 6.20 |
Settings /wp-admin/edit.php?post_type=md-slider&page=md-slider-submenu-page | 2.12 | 5.81 |
Server storage [IO: ▲1.82MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
md_slider_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for MD Responsive WordPress Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲167 | 13.90 ▼0.90 | 8.49 ▲6.36 | 42.78 ▼0.92 |
Dashboard /wp-admin | 2,239 ▲48 | 5.84 ▲0.76 | 98.89 ▼15.10 | 80.16 ▲35.34 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.01 ▲0.02 | 38.10 ▲0.27 | 34.35 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 18.49 ▼4.57 | 762.62 ▲70.24 | 61.84 ▲2.31 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.14 ▼0.11 | 109.16 ▲2.90 | 76.06 ▲27.73 |
All Slides /wp-admin/edit.php?post_type=md-slider | 1,083 | 1.93 | 33.44 | 27.49 |
Add New /wp-admin/post-new.php?post_type=md-slider | 2,208 | 7.66 | 164.64 | 119.79 |
Settings /wp-admin/edit.php?post_type=md-slider&page=md-slider-submenu-page | 950 | 2.08 | 23.00 | 25.01 |
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
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/md-responsive-jquery-slider/index.php+337
Use of undefined constant show_md_slider_on_page - assumed 'show_md_slider_on_page' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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)
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=md-slider&page=md-slider-submenu-page
- > Warning in wp-content/plugins/md-responsive-jquery-slider/index.php+337
Use of undefined constant show_md_slider_on_page - assumed 'show_md_slider_on_page' (this will throw an Error in a future version of PHP)
SRP 50% 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/md-responsive-jquery-slider/index.php:11
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
- Contributors: Plugin contributors not specified
md-responsive-jquery-slider/index.php 92% from 13 tests
The main file in "MD Responsive WordPress Slider" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("md-responsive-jquery-slider.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin540 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 43 | 54 | 251 |
CSS | 2 | 1 | 2 | 176 |
JavaScript | 1 | 25 | 14 | 113 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
5 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 |
images/description.png | 0.94KB | 0.09KB | ▼ 89.90% |
images/navigation.png | 1.08KB | 0.53KB | ▼ 50.50% |
images/prev.png | 2.41KB | 1.70KB | ▼ 29.40% |
md-slider.png | 0.61KB | 0.74KB | 0.00% |
images/next.png | 2.55KB | 1.70KB | ▼ 33.26% |