Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.54MB] [CPU: ▼15.93ms] Passed 4 tests
This is a short check of server-side resources used by Slider Pro
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 36.59 ▼8.25 |
Dashboard /wp-admin | 3.46 ▲0.15 | 52.76 ▲4.33 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 54.63 ▲7.28 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.60 | 38.98 ▼60.36 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.80 ▲0.56 |
Add Slider /wp-admin/post-new.php?post_type=slider_pro | 3.29 | 35.13 |
All Sliders /wp-admin/edit.php?post_type=slider_pro | 3.44 | 40.59 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Slider Pro: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,053 ▲307 | 15.30 ▲1.01 | 6.37 ▲4.57 | 39.20 ▼1.81 |
Dashboard /wp-admin | 2,379 ▲191 | 6.52 ▲0.63 | 139.61 ▲28.80 | 43.24 ▼6.68 |
Posts /wp-admin/edit.php | 2,285 ▲196 | 3.37 ▲1.37 | 55.14 ▲14.93 | 34.33 ▼3.57 |
Add New Post /wp-admin/post-new.php | 1,555 ▲21 | 23.01 ▼0.41 | 612.88 ▼78.48 | 36.20 ▼22.04 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.12 ▼0.04 | 82.11 ▼19.66 | 42.53 ▲1.30 |
Add Slider /wp-admin/post-new.php?post_type=slider_pro | 3,437 | 3.58 | 74.87 | 115.88 |
All Sliders /wp-admin/edit.php?post_type=slider_pro | 1,285 | 3.47 | 48.26 | 30.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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=slider_pro
- > Notice in wp-content/plugins/slider-pro-wp/admin/class-admin-settings.php+207
Undefined index: sp4wp_save_nonce
- 12 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider_pro
- > Notice in wp-content/plugins/slider-pro-wp/admin/view/slider-type.php+268
Trying to get property 'term_id' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider_pro
- > Notice in wp-content/plugins/slider-pro-wp/admin/view/slider-type.php+269
Trying to get property 'name' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/slider-pro-wp/slider-pro.php
- > /wp-content/plugins/slider-pro-wp/public/view/slider-shortcode.php
- 36× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/slider-pro-wp/admin/view/slider-get-settings.php on line 18
- > PHP Notice
Undefined variable: sliderpro_sliderautoslidesize in wp-content/plugins/slider-pro-wp/public/view/slider-shortcode.php on line 472
- > PHP Notice
Undefined variable: sliderpro_sliderautoheight in wp-content/plugins/slider-pro-wp/public/view/slider-shortcode.php on line 471
- > PHP Notice
Undefined variable: sliderpro_navigationfullscreenbtn in wp-content/plugins/slider-pro-wp/public/view/slider-shortcode.php on line 489
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/slider-pro-wp/admin/view/slider-get-settings.php on line 18
- > PHP Notice
Undefined variable: sliderpro_navigationarrowsonhover in wp-content/plugins/slider-pro-wp/public/view/slider-shortcode.php on line 486
- > PHP Notice
Undefined variable: sliderpro_sliderloop in wp-content/plugins/slider-pro-wp/public/view/slider-shortcode.php on line 474
- > PHP Notice
Undefined variable: sliderpro_sliderorientation in wp-content/plugins/slider-pro-wp/public/view/slider-shortcode.php on line 478
- > PHP Notice
Undefined variable: sliderpro_slidertouchswipe in wp-content/plugins/slider-pro-wp/public/view/slider-shortcode.php on line 479
- > PHP Notice
Undefined variable: sliderpro_navigationfullscreenbtnonhover in wp-content/plugins/slider-pro-wp/public/view/slider-shortcode.php on line 490
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: post slider, woocommerce slider, content slider, slider, image slider
slider-pro-wp/slider-pro.php 92% from 13 tests
This is the main PHP file of "Slider Pro" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("slider-pro-wp.php" instead of "slider-pro.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected6,795 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1,347 | 1,000 | 3,992 |
PHP | 14 | 397 | 388 | 1,986 |
CSS | 2 | 145 | 46 | 817 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 11.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 5 | 17.24% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/delete-icon.png | 18.37KB | 8.39KB | ▼ 54.31% |