Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/featured-image-widget-slider/widget_slider.php+48
Methods with the same name as their class will not be constructors in a future version of PHP; Category_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼56.30ms] Passed 4 tests
Analyzing server-side resources used by Featured Image Widget Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.67 ▼42.27 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.13 ▼45.95 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 6.21 ▼48.72 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 5.85 ▼88.24 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.42 ▼27.75 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_category_slider |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Featured Image Widget Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲111 | 13.86 ▼0.53 | 8.90 ▲7.07 | 43.81 ▼0.02 |
Dashboard /wp-admin | 2,192 ▲15 | 5.57 ▼0.10 | 86.60 ▼5.86 | 39.69 ▲0.24 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.00 ▼0.01 | 39.82 ▲0.07 | 36.03 ▲1.62 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.44 ▲5.85 | 679.82 ▼52.93 | 53.52 ▲1.32 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.29 ▲0.07 | 110.27 ▼24.02 | 47.15 ▼9.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/featured-image-widget-slider/widget_slider.php+48
Methods with the same name as their class will not be constructors in a future version of PHP; Category_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_category_slider
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-image-widget-slider/widget_slider.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
featured-image-widget-slider/widget_slider.php 85% from 13 tests
The principal PHP file in "Featured Image Widget Slider" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("featured-image-widget-slider.php" instead of "widget_slider.php")
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
No dangerous file extensions were detected454 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 31 | 49 | 309 |
PHP | 1 | 48 | 24 | 124 |
CSS | 1 | 5 | 1 | 21 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ 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 | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 11.74KB | 5.03KB | ▼ 57.13% |
screenshot-2.png | 18.51KB | 10.97KB | ▼ 40.70% |