Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/horizontal-slider/init.php+898
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.65ms] Passed 4 tests
Analyzing server-side resources used by HORIZONTAL SLIDER
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.61 ▼41.55 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.21 ▼47.33 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.21 ▼43.90 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.53 ▼81.82 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.94 ▼31.86 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_wp_horizontalslider |
Browser metrics Passed 4 tests
HORIZONTAL SLIDER: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.28 ▼0.45 | 1.77 ▼0.46 | 41.27 ▼5.54 |
Dashboard /wp-admin | 2,201 ▲21 | 5.55 ▼0.03 | 90.86 ▼3.78 | 44.12 ▲3.91 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.97 ▼0.00 | 35.72 ▼0.64 | 34.01 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.39 ▲0.08 | 655.57 ▼32.68 | 58.60 ▲4.45 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.30 ▲0.09 | 96.77 ▼20.91 | 42.89 ▼3.11 |
Horizontal Slider /wp-admin/init.php | 26 | 0.42 | 0.07 | 16.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/horizontal-slider/init.php+898
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_wp_horizontalslider
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/horizontal-slider/template/panel.php
- 48× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: id in wp-content/plugins/horizontal-slider/template/panel.php on line 62
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/horizontal-slider/init.php:277
- > PHP Notice
Undefined variable: id in wp-content/plugins/horizontal-slider/template/panel.php on line 81
- > PHP Notice
Undefined variable: width in wp-content/plugins/horizontal-slider/template/panel.php on line 298
- > PHP Notice
Undefined variable: id in wp-content/plugins/horizontal-slider/template/panel.php on line 16
- > PHP Notice
Undefined variable: id in wp-content/plugins/horizontal-slider/template/panel.php on line 242
- > PHP Notice
Undefined variable: id in wp-content/plugins/horizontal-slider/template/panel.php on line 80
- > PHP Notice
Undefined variable: id in wp-content/plugins/horizontal-slider/template/panel.php on line 311
- > PHP Notice
Undefined variable: id in wp-content/plugins/horizontal-slider/template/panel.php on line 300
- > PHP Notice
Undefined variable: id in wp-content/plugins/horizontal-slider/template/panel.php on line 95
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/init.php
- > Network (severe)
wp-admin/init.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Slider sample.), #2 (Plugin admin.), #3 (Slider Admin.)
- Tags: Please reduce the number of tags, currently 44 tag instead of maximum 10
horizontal-slider/init.php 85% from 13 tests
The main file in "HORIZONTAL SLIDER" v. 2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 200 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("horizontal-slider.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,114 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 449 | 69 | 752 |
HTML | 3 | 106 | 15 | 173 |
CSS | 1 | 27 | 12 | 149 |
JavaScript | 1 | 22 | 10 | 40 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
28 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/textbg.png | 0.08KB | 0.09KB | 0.00% |
images/previous.png | 0.91KB | 0.97KB | 0.00% |
css/images/textbg.png | 0.08KB | 0.09KB | 0.00% |
images/next.png | 0.90KB | 0.97KB | 0.00% |
images/shadow.png | 0.10KB | 0.16KB | 0.00% |