Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.14ms] Passed 4 tests
An overview of server-side resources used by Rotating Hero Image
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.66 ▼1.84 |
Dashboard /wp-admin | 3.45 ▲0.14 | 46.88 ▼5.79 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 49.57 ▲1.43 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 92.69 ▲1.66 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.56 ▲5.02 |
All Hero Images /wp-admin/edit.php?post_type=hero_image | 3.41 | 34.48 |
Add New /wp-admin/post-new.php?post_type=hero_image | 3.50 | 49.12 |
Categories /wp-admin/edit-tags.php?taxonomy=wsxhi_categories&post_type=hero_image | 3.37 | 37.77 |
Settings /wp-admin/edit.php?post_type=hero_image&page=options | 3.34 | 30.22 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 20 new options
New WordPress options |
---|
rhi_banner_text_font_color |
can_compress_scripts |
rhi_button_text_color |
rhi_time_interval |
rhi_opacity |
rhi_height |
rhi_show_banner_title |
widget_recent-comments |
rhi_title_font_style |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Rotating Hero Image: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.43 ▼0.99 | 1.52 ▼0.29 | 41.65 ▼7.51 |
Dashboard /wp-admin | 2,259 ▲68 | 5.25 ▲0.39 | 113.64 ▲8.03 | 44.03 ▼1.23 |
Posts /wp-admin/edit.php | 2,129 ▲37 | 2.34 ▲0.33 | 45.45 ▲1.73 | 35.72 ▼3.36 |
Add New Post /wp-admin/post-new.php | 1,563 ▲19 | 23.27 ▲5.14 | 632.08 ▲14.69 | 37.19 ▼17.58 |
Media Library /wp-admin/upload.php | 1,442 ▲54 | 4.39 ▲0.20 | 95.07 ▼6.15 | 44.30 ▲2.77 |
All Hero Images /wp-admin/edit.php?post_type=hero_image | 1,115 | 2.25 | 37.86 | 28.65 |
Add New /wp-admin/post-new.php?post_type=hero_image | 2,436 | 7.97 | 181.81 | 68.85 |
Categories /wp-admin/edit-tags.php?taxonomy=wsxhi_categories&post_type=hero_image | 1,300 | 2.03 | 32.42 | 26.39 |
Settings /wp-admin/edit.php?post_type=hero_image&page=options | 1,501 | 2.75 | 57.81 | 28.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png)
rotating-hero-image/rotating-hero-image.php Passed 13 tests
"Rotating Hero Image" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
Display a hero banner on a page or wherever you want. Use this shortcode: [wsx_hero_image]
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
There were no executable files found in this plugin618 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 46 | 151 | 524 |
CSS | 2 | 22 | 0 | 88 |
JavaScript | 1 | 5 | 0 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.96MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 56.88KB | 27.53KB | ▼ 51.61% |
screenshot-5.png | 674.66KB | 266.11KB | ▼ 60.56% |
screenshot-3.png | 138.29KB | 42.68KB | ▼ 69.14% |
screenshot-4.png | 50.65KB | 24.06KB | ▼ 52.50% |
screenshot-1.png | 58.79KB | 18.43KB | ▼ 68.65% |