Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼11.43ms] Passed 4 tests
A check of server-side resources used by Play Random Image Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 46.26 ▲5.52 |
Dashboard /wp-admin | 3.35 ▲0.00 | 46.16 ▼9.41 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.02 ▼0.10 |
Add New Post /wp-admin/post-new.php | 5.18 ▼0.71 | 58.29 ▼36.11 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.86 ▼0.08 |
Add Gallery /wp-admin/post-new.php?post_type=random_gallery | 3.27 | 35.00 |
All Gallery /wp-admin/edit.php?post_type=random_gallery | 3.31 | 33.86 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Play Random Image Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 14.17 ▼0.37 | 1.63 ▼0.05 | 40.66 ▲2.34 |
Dashboard /wp-admin | 2,222 ▲45 | 5.62 ▲0.01 | 96.52 ▲9.17 | 43.05 ▲3.44 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.00 ▲0.06 | 40.31 ▲2.12 | 36.31 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.65 ▲0.45 | 643.73 ▼50.97 | 53.31 ▼8.82 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.28 ▲0.06 | 94.35 ▼8.32 | 39.73 ▼5.69 |
Add Gallery /wp-admin/post-new.php?post_type=random_gallery | 2,223 | 7.54 | 169.53 | 68.00 |
All Gallery /wp-admin/edit.php?post_type=random_gallery | 1,105 | 1.93 | 30.36 | 28.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=random_gallery
- > Notice in wp-content/plugins/play-random-image/random-gallery.php+73
Undefined variable: post
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/play-random-image/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (screenshot-3.png)
play-random-image/random-gallery.php 77% from 13 tests
"Play Random Image Plugin" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("play-random-image.php" instead of "random-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin183 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 4 | 33 | 147 |
CSS | 1 | 1 | 0 | 36 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.99MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 359.66KB | 119.42KB | ▼ 66.80% |
screenshot-3.png | 78.44KB | 24.71KB | ▼ 68.50% |
screenshot-1.png | 93.63KB | 29.66KB | ▼ 68.32% |
icon-128x128.png | 49.94KB | 11.56KB | ▼ 76.85% |
screenshot-2.png | 429.37KB | 106.11KB | ▼ 75.29% |