Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/random-posts-with-thumbnails/random-posts-with-thumbnails.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; RandomPostsWithThumbnails_Widget has a deprecated constructor
Server metrics [RAM: ▼1.88MB] [CPU: ▼54.04ms] Passed 4 tests
Server-side resources used by Random Posts with Thumbnails
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.16 ▼46.72 |
Dashboard /wp-admin | 2.12 ▼1.18 | 7.47 ▼41.95 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 4.96 ▼45.26 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 6.18 ▼82.21 |
Media Library /wp-admin/upload.php | 2.12 ▼1.10 | 5.62 ▼27.31 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_randompostswiththumbnails_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Random Posts with Thumbnails
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.22 ▼1.33 | 2.15 ▲0.15 | 38.67 ▼10.47 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼0.05 | 106.03 ▼15.28 | 39.29 ▼10.03 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.06 | 33.58 ▼3.54 | 32.83 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,542 ▲25 | 18.14 ▲0.56 | 610.68 ▼45.36 | 52.04 ▲2.04 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.18 ▼0.00 | 96.31 ▲2.42 | 44.21 ▲1.04 |
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
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/random-posts-with-thumbnails/random-posts-with-thumbnails.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; RandomPostsWithThumbnails_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_randompostswiththumbnails_widget
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/random-posts-with-thumbnails/random-posts-with-thumbnails.php:12
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: random, posts, thumbnails
random-posts-with-thumbnails/random-posts-with-thumbnails.php 85% from 13 tests
The entry point to "Random Posts with Thumbnails" version 1... is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")
- Description: Please don't use more than 140 characters for the plugin description (currently 225 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected112 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 11 | 112 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 6.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 0 | |
▷ Named functions | 0 | 0.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
No PNG files were detected