Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/recent-post-thumbnail-slider-widget/recent-posts-slider-widget.php+347
Function create_function() is deprecated
Server metrics [RAM: ▼1.80MB] [CPU: ▼55.65ms] Passed 4 tests
Server-side resources used by Recent Post Thumbnail Slider Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.57 ▼34.84 |
Dashboard /wp-admin | 2.20 ▼1.10 | 7.46 ▼42.84 |
Posts /wp-admin/edit.php | 2.20 ▼1.15 | 6.16 ▼41.51 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.68 | 5.60 ▼103.39 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 5.35 ▼26.14 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts-thumbnail-slider |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Recent Post Thumbnail Slider Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲175 | 13.64 ▼0.92 | 4.88 ▲3.10 | 39.86 ▼5.54 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▲1.01 | 104.02 ▼7.11 | 38.69 ▼2.48 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.01 | 34.84 ▲0.11 | 30.75 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.08 ▼0.10 | 672.50 ▼25.85 | 55.29 ▲0.82 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.30 ▲0.10 | 97.73 ▼13.53 | 43.89 ▼4.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/recent-post-thumbnail-slider-widget/recent-posts-slider-widget.php+347
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recent-post-thumbnail-slider-widget/recent-posts-slider-widget-display.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recent-post-thumbnail-slider-widget/recent-posts-slider-widget-display.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: slider widget, post thumbnail slider, sidebar thumbnail slider
recent-post-thumbnail-slider-widget/recent-posts-slider-widget.php 85% from 13 tests
"Recent Post Thumbnail Slider Widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("recent-post-thumbnail-slider-widget.php" instead of "recent-posts-slider-widget.php")
- Description: Keep the plugin description shorter than 140 characters (currently 235 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin965 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 70 | 27 | 630 |
PHP | 2 | 73 | 14 | 290 |
CSS | 1 | 12 | 0 | 45 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 11.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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
PNG files should be compressed to save space and minimize bandwidth usage
12 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 |
img/left.png | 1.36KB | 0.94KB | ▼ 31.13% |
img/right222.png | 0.57KB | 0.51KB | ▼ 10.75% |
img/left11.png | 2.55KB | 1.47KB | ▼ 42.23% |
img/left_bk.png | 0.57KB | 0.51KB | ▼ 10.77% |
img/left(2).png | 0.32KB | 0.31KB | ▼ 4.83% |