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.13MB] [CPU: ▼3.70ms] Passed 4 tests
This is a short check of server-side resources used by Hulvire Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.97 ▼10.87 |
Dashboard /wp-admin | 3.43 ▲0.12 | 46.63 ▼6.34 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.30 ▼0.50 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 97.94 ▲4.98 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.20 ▲2.93 |
Hulvire Slider /wp-admin/options-general.php?page=wp_hulvire_slider | 3.32 | 30.71 |
Všetky slajdy /wp-admin/edit.php?post_type=hulvire_slider | 3.40 | 35.50 |
Pridaj nový /wp-admin/post-new.php?post_type=hulvire_slider | 3.41 | 50.27 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Hulvire Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 13.75 ▼0.50 | 7.83 ▲5.99 | 37.51 ▼4.89 |
Dashboard /wp-admin | 2,258 ▲70 | 5.13 ▲0.02 | 102.77 ▼8.67 | 81.90 ▲36.36 |
Posts /wp-admin/edit.php | 2,141 ▲55 | 2.29 ▲0.29 | 38.45 ▼0.29 | 32.09 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 23.33 ▲0.09 | 744.24 ▲51.91 | 37.59 ▼8.68 |
Media Library /wp-admin/upload.php | 1,440 ▲55 | 4.47 ▲0.28 | 96.64 ▼3.71 | 79.25 ▲36.20 |
Hulvire Slider /wp-admin/options-general.php?page=wp_hulvire_slider | 717 | 1.53 | 7.09 | 17.69 |
Všetky slajdy /wp-admin/edit.php?post_type=hulvire_slider | 1,148 | 2.26 | 33.79 | 34.40 |
Pridaj nový /wp-admin/post-new.php?post_type=hulvire_slider | 1,752 | 3.79 | 73.40 | 108.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wp_hulvire_slider
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/hulvire-slider/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/hulvire-slider/templates/settings.php(5): do_settings_fields()
#1 wp-content/plugins/hulvire-slider/hulvire-slider-settings.php(169): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): WP_Hulvire_Slider_Settings->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/hulvire-slider/PopUp.php
- > /wp-content/plugins/hulvire-slider/hulvire-slider.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined index: postovaneudaje in wp-content/plugins/hulvire-slider/PopUp.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hulvire-slider/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hulvire-slider/post-types/hulvire-slider-img-type.php:39
- > PHP Notice
Undefined index: popupdelay in wp-content/plugins/hulvire-slider/PopUp.php on line 1
- > PHP Notice
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (This is settings of plugin), #2 (This is plugin in wordpress page)
hulvire-slider/hulvire-slider.php 85% from 13 tests
The principal PHP file in "Hulvire Slider" v. 1.4.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 238 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 plugin752 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 146 | 72 | 483 |
CSS | 2 | 1 | 18 | 252 |
JavaScript | 3 | 4 | 6 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
11 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 |
flexslider/images/cap-bg.png | 0.15KB | 0.09KB | ▼ 38.61% |
flexslider/images/pagination2.png | 0.52KB | 0.41KB | ▼ 20.53% |
images/slider-icon3.png | 1.49KB | 0.63KB | ▼ 57.73% |
flexslider/images/pagination221.png | 1.39KB | 0.67KB | ▼ 51.75% |
flexslider/images/pagination222.png | 0.24KB | 0.21KB | ▼ 12.40% |