Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.24ms] Passed 4 tests
A check of server-side resources used by Slider Options - Manager jQuery Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.57 ▼2.35 |
Dashboard /wp-admin | 3.48 ▲0.18 | 46.24 ▼5.01 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.51 ▲0.92 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 99.01 ▲1.49 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 39.25 ▲4.53 |
New Slider /wp-admin/admin.php?page=sm-slider&action=add-new | 3.36 | 35.31 |
Settings /wp-admin/admin.php?page=sm-slider&action=config | 3.36 | 33.78 |
SM Slider /wp-admin/admin.php?page=sm-slider | 3.37 | 36.29 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 106 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_sm_sliders |
New WordPress options |
---|
-smsd_bootstrap |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
-smsd_type |
-smsd_types |
-smsd_manager |
-smsd_settings |
-smsd_version |
-smsd_flexslider |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Slider Options - Manager jQuery Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲192 | 13.95 ▼0.26 | 8.55 ▲6.86 | 54.44 ▲8.90 |
Dashboard /wp-admin | 2,238 ▲50 | 5.88 ▲0.98 | 96.31 ▼19.47 | 72.36 ▲24.02 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.02 ▲0.01 | 38.91 ▼0.13 | 34.36 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,544 ▲10 | 17.75 ▼5.41 | 664.83 ▼20.64 | 64.05 ▲12.35 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.24 ▼0.05 | 97.12 ▼13.86 | 74.82 ▲31.26 |
New Slider /wp-admin/admin.php?page=sm-slider&action=add-new | 1,502 | 2.45 | 42.46 | 56.02 |
Settings /wp-admin/admin.php?page=sm-slider&action=config | 1,654 | 2.32 | 43.98 | 35.59 |
SM Slider /wp-admin/admin.php?page=sm-slider | 1,080 | 2.14 | 30.38 | 28.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_sm_sliders
- Zombie WordPress options were found after uninstall: 14 options
- -smsd_settings
- db_upgraded
- -smsd_flexslider
- widget_recent-posts
- -smsd_type
- widget_recent-comments
- -smsd_size
- -smsd_types
- widget_theysaidso_widget
- theysaidso_admin_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/slider-options/views/temp-active-slider.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/slider-options/views/add-new-slider.php:3
- > PHP Notice
Undefined variable: id in wp-content/plugins/slider-options/views/temp-standard-slider.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/slider-options/views/temp-video-smsd.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/slider-options/views/temp-image-smsd.php:3
- > PHP Notice
Undefined variable: id in wp-content/plugins/slider-options/views/temp-active-slider.php on line 1
- > PHP Notice
Undefined variable: sm_post in wp-content/plugins/slider-options/views/temp-image-smsd.php on line 3
- > PHP Notice
Undefined variable: post_details in wp-content/plugins/slider-options/views/temp-image-smsd.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-options/includes/func.smslider-helper.php:19
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/slider-options/views/hidden-form.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (112 tag instead of maximum 10)
slider-options/smslider.php 85% from 13 tests
The main PHP script in "Slider Options - Manager jQuery Slider" version 1.1.2.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("slider-options.php" instead of "smslider.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 176 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin13,928 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 17 | 55 | 92 | 7,927 |
PHP | 20 | 316 | 493 | 2,448 |
JavaScript | 14 | 658 | 380 | 2,072 |
Markdown | 7 | 362 | 0 | 1,168 |
SVG | 2 | 0 | 0 | 307 |
JSON | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 50.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 32 | 28.83% |
▷ Public methods | 73 | 65.77% |
▷ Protected methods | 3 | 2.70% |
▷ Private methods | 35 | 31.53% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/libs/bxslider/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
assets/libs/nivoslider/themes/default/bullets.png | 1.25KB | 1.08KB | ▼ 13.74% |
assets/libs/flexslider/images/bg_play_pause.png | 1.51KB | 0.52KB | ▼ 65.52% |
assets/libs/nivoslider/themes/light/bullets.png | 3.21KB | 0.54KB | ▼ 83.24% |
assets/libs/nivoslider/themes/dark/bullets.png | 3.07KB | 0.42KB | ▼ 86.27% |