Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/fancy-heaer-slider/fancy-header-slider.php+63
Methods with the same name as their class will not be constructors in a future version of PHP; FancyHeaderSlider has a deprecated constructor
Server metrics [RAM: ▼0.66MB] [CPU: ▼17.32ms] Passed 4 tests
This is a short check of server-side resources used by Fancy Header Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.81 ▲1.87 |
Dashboard /wp-admin | 3.34 ▼0.00 | 43.61 ▼15.73 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.57 ▲0.55 |
Add New Post /wp-admin/post-new.php | 3.17 ▼2.72 | 34.83 ▼55.97 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.24 ▲2.04 |
Add New Slider /wp-admin/post-new.php?post_type=fancyheader | 3.12 | 31.85 |
Document /wp-admin/edit.php?post_type=fancyheader&page=fhs-gallery-overview | 3.26 | 28.37 |
Header Slider /wp-admin/edit.php?post_type=fancyheader | 3.31 | 33.72 |
Slider Settings /wp-admin/edit.php?post_type=fancyheader&page=fhs-gallery-settings | 3.31 | 30.37 |
Server storage [IO: ▲0.37MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
fhs_settings |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Fancy Header Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲179 | 13.89 ▼0.81 | 9.11 ▲7.49 | 41.09 ▼0.18 |
Dashboard /wp-admin | 2,247 ▲75 | 5.64 ▲0.03 | 90.54 ▼7.76 | 44.41 ▲2.00 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 1.95 ▲0.00 | 39.68 ▲0.69 | 36.23 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,566 ▲38 | 23.22 ▼0.02 | 658.43 ▼22.74 | 49.97 ▼7.68 |
Media Library /wp-admin/upload.php | 1,446 ▲52 | 4.26 ▲0.18 | 94.62 ▼9.67 | 43.31 ▼0.47 |
Add New Slider /wp-admin/post-new.php?post_type=fancyheader | 1,712 | 3.80 | 61.03 | 33.79 |
Document /wp-admin/edit.php?post_type=fancyheader&page=fhs-gallery-overview | 997 | 2.19 | 24.57 | 25.85 |
Header Slider /wp-admin/edit.php?post_type=fancyheader | 1,119 | 1.96 | 29.75 | 31.77 |
Slider Settings /wp-admin/edit.php?post_type=fancyheader&page=fhs-gallery-settings | 1,173 | 2.00 | 22.31 | 27.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'FancyHeaderSlider' does not have a method 'fhs_deactivate_empty'
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- fhs_settings
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=fancyheader
- > Notice in wp-content/plugins/fancy-heaer-slider/admin/metabox-link.php+50
Undefined index: post_type
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/fancy-heaer-slider/admin/gallery-settings.php
- > /wp-content/plugins/fancy-heaer-slider/admin/gallery-overview.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-heaer-slider/admin/metabox-link.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/fancy-heaer-slider/fancy-header-slider.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: header, images, gallery slider, wordpress slider, slider
fancy-heaer-slider/fancy-header-slider.php 92% from 13 tests
Analyzing the main PHP file in "Fancy Header Slider" version 2.0
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fancy-heaer-slider.php" instead of "fancy-header-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected658 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 93 | 108 | 631 |
JavaScript | 1 | 2 | 10 | 27 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/star.png | 0.65KB | 0.66KB | 0.00% |