Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.49ms] Passed 4 tests
An overview of server-side resources used by HM Image Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.11 ▼2.98 |
Dashboard /wp-admin | 3.42 ▲0.12 | 44.82 ▼10.34 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 49.35 ▲1.10 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 91.23 ▼10.63 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.07 ▼2.00 |
All Sliders /wp-admin/edit.php?post_type=hm-image-slider | 3.39 | 35.20 |
Subjects /wp-admin/edit-tags.php?taxonomy=slider-subject&post_type=hm-image-slider | 3.34 | 33.51 |
Add New /wp-admin/post-new.php?post_type=hm-image-slider | 3.41 | 44.78 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_hmis_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by HM Image Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.33 ▼1.04 | 1.77 ▼0.13 | 44.00 ▲0.64 |
Dashboard /wp-admin | 2,237 ▲49 | 4.84 ▼0.06 | 106.83 ▼12.62 | 38.43 ▼5.46 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.05 ▲0.00 | 39.71 ▲2.36 | 36.91 ▲5.92 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 17.64 ▼5.72 | 657.07 ▼71.19 | 55.51 ▼0.26 |
Media Library /wp-admin/upload.php | 1,419 ▲37 | 4.19 ▲0.02 | 105.34 ▲2.87 | 45.50 ▲0.66 |
All Sliders /wp-admin/edit.php?post_type=hm-image-slider | 1,100 | 1.93 | 30.18 | 29.05 |
Subjects /wp-admin/edit-tags.php?taxonomy=slider-subject&post_type=hm-image-slider | 1,268 | 2.14 | 26.79 | 28.50 |
Add New /wp-admin/post-new.php?post_type=hm-image-slider | 2,213 | 3.02 | 65.76 | 94.28 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_hmis_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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 fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hm-image-slider/js/hmsliderimage-front-script.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hm-image-slider/inc/shortcodes.php:3
- > PHP Notice
Undefined index: uid in wp-content/plugins/hm-image-slider/js/hmsliderimage-front-script.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/hm-image-slider/inc/slider-metabox-setting.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hm-image-slider/inc/slider-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hm-image-slider/inc/slider-post-type.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/hm-image-slider/inc/slider-metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/hm-image-slider/inc/slider-metabox-how-use.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (simple image insert), #2 (simple slider setting pannel), #3 (use jquery easing), #4 (use shortcode and widget)
hm-image-slider/hm-image-slider.php Passed 13 tests
The main file in "HM Image Slider" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
27 characters long description:
this is simple image slider
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
Success! There were no dangerous files found in this plugin1,837 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 195 | 204 | 960 |
PHP | 9 | 96 | 48 | 494 |
CSS | 3 | 35 | 10 | 212 |
PO File | 1 | 71 | 71 | 171 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 7.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 | 14 | |
▷ Named functions | 6 | 42.86% |
▷ Anonymous functions | 8 | 57.14% |
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
37 PNG files occupy 0.59MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/swing.png | 1.28KB | 0.71KB | ▼ 44.94% |
images/easeInOutQuad.png | 1.35KB | 0.73KB | ▼ 45.86% |
screenshot-4.png | 346.91KB | 147.26KB | ▼ 57.55% |
screenshot-3.png | 58.69KB | 24.54KB | ▼ 58.18% |
images/easeInCirc.png | 1.40KB | 0.69KB | ▼ 50.45% |