Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.27ms] Passed 4 tests
This is a short check of server-side resources used by Slider You-n v 1.2
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.95 ▼6.27 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.28 ▼7.76 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.85 ▲3.54 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.54 ▲2.57 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.09 ▲2.37 |
Server storage [IO: ▲1.92MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Yslider_settings |
Browser metrics Passed 4 tests
A check of browser resources used by Slider You-n v 1.2
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 14.47 ▲0.09 | 1.78 ▼0.36 | 40.25 ▼8.06 |
Dashboard /wp-admin | 2,214 ▲23 | 5.80 ▲0.90 | 102.24 ▲0.78 | 73.61 ▲27.12 |
Posts /wp-admin/edit.php | 2,100 ▲14 | 2.00 ▲0.00 | 38.48 ▲3.32 | 35.10 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,524 ▼5 | 22.76 ▲4.61 | 722.70 ▲70.55 | 60.50 ▼6.25 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.18 ▼0.05 | 96.00 ▲0.00 | 80.84 ▲37.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- Yslider_settings
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant YS_PLUGIN_URI - assumed 'YS_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/slider-you-n/includes/sliderBEConf.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/slider-you-n/Yslider.php:19
- > PHP Warning
Use of undefined constant YS_PLUGIN_URI - assumed 'YS_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/slider-you-n/includes/sliderBEConf.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/slider-you-n/includes/sliderBEFoto.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/slider-you-n/includes/sliderBEConf.php:49
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #5, #6, #7, #8 in slider-you-n/assets to your readme.txt
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== slider-you-n ===
)
slider-you-n/Yslider.php 92% from 13 tests
Analyzing the main PHP file in "Slider You-n v 1.2" version 1.2
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("slider-you-n.php" instead of "Yslider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin6,165 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 554 | 567 | 3,646 |
PHP | 6 | 255 | 364 | 2,122 |
CSS | 2 | 64 | 28 | 397 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 49.43 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 3 | 3.75% |
▷ Public methods | 48 | 60.00% |
▷ Protected methods | 30 | 37.50% |
▷ Private methods | 2 | 2.50% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 51 | |
▷ Global constants | 51 | 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
22 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/you-n-logo.png | 5.84KB | 2.74KB | ▼ 53.00% |
images/delete_img.png | 1.41KB | 0.43KB | ▼ 69.70% |
images/nav_front_right.png | 1.17KB | 0.42KB | ▼ 64.05% |
images/nav_front_right_black.png | 1.15KB | 0.42KB | ▼ 63.53% |
images/next-img.png | 2.31KB | 0.81KB | ▼ 64.92% |