Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.46ms] Passed 4 tests
Analyzing server-side resources used by Ui Slider Filter By Price
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.81 ▼1.49 |
Dashboard /wp-admin | 3.46 ▲0.16 | 51.34 ▼0.08 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 50.44 ▲3.18 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 85.99 ▼23.43 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 38.31 ▲4.55 |
All Sliders /wp-admin/admin.php?page=ui-sliders | 3.35 | 34.82 |
Add New /wp-admin/admin.php?page=add-slider | 3.36 | 33.37 |
Uninstall /wp-admin/admin.php?page=uninstall-ui-slider | 3.35 | 29.15 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 42 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_price_ui_slider |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Ui Slider Filter By Price
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.62 ▼0.73 | 9.47 ▲7.55 | 39.93 ▼6.06 |
Dashboard /wp-admin | 2,236 ▲48 | 5.83 ▲0.99 | 108.94 ▲1.19 | 88.78 ▲40.91 |
Posts /wp-admin/edit.php | 2,122 ▲36 | 2.02 ▼0.04 | 34.44 ▼2.88 | 34.77 ▼2.15 |
Add New Post /wp-admin/post-new.php | 6,246 ▲4,704 | 18.86 ▲0.82 | 1,023.35 ▲341.45 | 60.89 ▼0.12 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.16 ▲0.04 | 98.64 ▼9.69 | 67.02 ▲23.44 |
All Sliders /wp-admin/admin.php?page=ui-sliders | 937 | 2.21 | 27.47 | 36.86 |
Add New /wp-admin/admin.php?page=add-slider | 1,170 | 2.46 | 50.28 | 91.52 |
Uninstall /wp-admin/admin.php?page=uninstall-ui-slider | 827 | 2.02 | 25.87 | 28.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_price_ui_slider
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ui-slider-filter-by-price/sliders/Sliders.php:2
- > PHP Fatal error
Uncaught Error: Class 'Sliders' not found in wp-content/plugins/ui-slider-filter-by-price/sliders/3d/class/Slider3d.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ui-slider-filter-by-price/ui_slider_filter_by_price.php:11
- > PHP Fatal error
Uncaught Error: Class 'Sliders' not found in wp-content/plugins/ui-slider-filter-by-price/sliders/classic/class/SliderClassic.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ui-slider-filter-by-price/classes/ShortCode.php:2
- > 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)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=add-slider
- > Network (severe)
http://localhost/test/wp-includes/js/jquery/ui/core.min.js?ver=1.11.4 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=add-slider
- > Network (severe)
http://localhost/test/wp-includes/js/jquery/ui/slider.min.js?ver=1.11.4 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
ui-slider-filter-by-price/ui_slider_filter_by_price.php 85% from 13 tests
Analyzing the main PHP file in "Ui Slider Filter By Price" version 1.1
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ui-slider-filter-by-price.php" instead of "ui_slider_filter_by_price.php")
- Description: The description should be shorter than 140 characters (currently 338 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,432 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 2,978 | 1,799 | 14,946 |
CSS | 10 | 192 | 201 | 1,214 |
PHP | 8 | 189 | 77 | 1,017 |
SVG | 1 | 0 | 0 | 255 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 5 | 12.20% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
8 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/button_check.png | 4.66KB | 1.57KB | ▼ 66.23% |
extensions/colorpicker/jquery.minicolors.png | 75.64KB | 34.31KB | ▼ 54.64% |
images/DONATE.png | 11.04KB | 2.39KB | ▼ 78.35% |
images/icon.png | 3.28KB | 0.92KB | ▼ 71.88% |
sliders/3d/images/icon.png | 9.11KB | 5.23KB | ▼ 42.60% |