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
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/post-type-slider-widget/post-type-slider-widget.php+147
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.00ms] Passed 4 tests
Analyzing server-side resources used by Post Type Slider Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 6.55 ▼33.76 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.49 ▼46.96 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 6.19 ▼42.42 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 5.69 ▼88.87 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.02 ▼27.30 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_post_type_slider_widget |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Post Type Slider Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.37 ▲0.05 | 3.97 ▲2.36 | 42.46 ▼2.03 |
Dashboard /wp-admin | 2,195 ▲21 | 5.61 ▲0.05 | 86.75 ▼2.70 | 42.65 ▼1.57 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.03 | 38.67 ▲1.75 | 36.05 ▲3.08 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.08 ▲0.00 | 650.09 ▲12.19 | 50.11 ▲1.59 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.11 ▼0.09 | 98.59 ▼8.85 | 42.90 ▼3.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/post-type-slider-widget/post-type-slider-widget.php+147
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_post_type_slider_widget
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2 in post-type-slider-widget/assets to your readme.txt
post-type-slider-widget/post-type-slider-widget.php 92% from 13 tests
"Post Type Slider Widget" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin139 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 26 | 106 |
CSS | 3 | 1 | 10 | 31 |
JavaScript | 1 | 0 | 5 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/right.png | 2.63KB | 1.58KB | ▼ 40.03% |
assets/img/left.png | 2.59KB | 1.53KB | ▼ 40.88% |
assets/img/placeholder.png | 6.23KB | 3.49KB | ▼ 43.98% |