Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.97MB] [CPU: ▲6.77ms] Passed 4 tests
Server-side resources used by Slider Pro
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 47.29 ▲6.49 |
Dashboard /wp-admin | 4.42 ▲1.12 | 52.13 ▲4.84 |
Posts /wp-admin/edit.php | 4.47 ▲1.11 | 51.67 ▲8.88 |
Add New Post /wp-admin/post-new.php | 6.94 ▲1.06 | 100.90 ▲6.86 |
Media Library /wp-admin/upload.php | 4.28 ▲1.05 | 44.50 ▲13.41 |
Add New /wp-admin/admin.php?page=sliderpro-new | 4.36 | 47.81 |
Documentation /wp-admin/admin.php?page=sliderpro-documentation | 4.28 | 41.80 |
All Sliders /wp-admin/admin.php?page=sliderpro | 4.33 | 52.75 |
Plugin Settings /wp-admin/admin.php?page=sliderpro-settings | 4.29 | 38.29 |
Add-ons /wp-admin/admin.php?page=sliderpro-add-ons | 4.39 | 204.48 |
Server storage [IO: ▲3.07MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 128 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_slider_pro_layers |
wp_slider_pro_sliders |
wp_slider_pro_slides |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_bqw-sliderpro-widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
sliderpro_version |
sliderpro_setting_presets |
widget_recent-comments |
sliderpro_lightbox_sliders |
Browser metrics Passed 4 tests
Checking browser requirements for Slider Pro
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲41 | 14.48 ▲0.28 | 1.55 ▼0.61 | 38.08 ▼5.92 |
Dashboard /wp-admin | 2,218 ▲41 | 5.54 ▼0.11 | 94.07 ▼8.16 | 82.91 ▲34.90 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 1.97 ▲0.02 | 38.87 ▼0.24 | 36.53 ▼0.37 |
Add New Post /wp-admin/post-new.php | 6,398 ▲4,872 | 27.57 ▲4.43 | 945.57 ▲207.87 | 39.39 ▼16.83 |
Media Library /wp-admin/upload.php | 1,441 ▲44 | 4.18 ▼0.06 | 98.96 ▼9.35 | 77.30 ▲32.05 |
Add New /wp-admin/admin.php?page=sliderpro-new | 2,625 | 5.81 | 108.64 | 68.22 |
Documentation /wp-admin/admin.php?page=sliderpro-documentation | 3,316 | 3.67 | 58.57 | 100.26 |
All Sliders /wp-admin/admin.php?page=sliderpro | 1,168 | 3.44 | 51.78 | 66.59 |
Plugin Settings /wp-admin/admin.php?page=sliderpro-settings | 1,284 | 3.45 | 47.66 | 93.17 |
Add-ons /wp-admin/admin.php?page=sliderpro-add-ons | 1,117 | 3.48 | 43.43 | 81.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- sliderpro_setting_presets
- widget_bqw-sliderpro-widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 text when accessed directly:
- > /wp-content/plugins/sliderpro/admin/views/slide/slide.php
- > /wp-content/plugins/sliderpro/admin/views/add-ons/add-on-more-details.php
- 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: content_class in wp-content/plugins/sliderpro/admin/views/slide-editors/thumbnail-editor.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'BQW_SP_Dynamic_Slide_Renderer' not found in wp-content/plugins/sliderpro/public/class-gallery-slide-renderer.php:7
- > PHP Notice
Undefined variable: content_class in wp-content/plugins/sliderpro/admin/views/slide-editors/main-image-editor.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sliderpro/admin/views/settings/plugin-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sliderpro/admin/views/slider/slider.php:2
- > PHP Notice
Undefined variable: add_on_data in wp-content/plugins/sliderpro/admin/views/add-ons/add-on-more-details.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sliderpro/admin/views/slide-editors/settings-editor.php:10
- > PHP Fatal error
Uncaught Error: Class 'BQW_SP_Layer_Renderer' not found in wp-content/plugins/sliderpro/public/class-heading-layer-renderer.php:7
- > PHP Notice
Undefined variable: slide_type in wp-content/plugins/sliderpro/admin/views/slide/slide.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sliderpro/admin/views/slider-settings/default-panel.php:48
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
sliderpro/sliderpro.php Passed 13 tests
The primary PHP file in "Slider Pro" version 4.8.8 is used by WordPress to initiate all plugin functionality
33 characters long description:
Elegant and professional sliders.
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 plugin51,978 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 28,769 |
JavaScript | 15 | 3,523 | 3,139 | 11,579 |
PHP | 57 | 1,215 | 2,329 | 6,605 |
CSS | 11 | 655 | 126 | 3,417 |
HTML | 1 | 180 | 0 | 1,545 |
Markdown | 1 | 13 | 0 | 37 |
Sass | 1 | 4 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 26.38 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 221 | |
▷ Static methods | 30 | 13.57% |
▷ Public methods | 147 | 66.52% |
▷ Protected methods | 62 | 28.05% |
▷ Private methods | 12 | 5.43% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
24 PNG files occupy 0.61MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
documentation/assets/images/thumbnail-editor.png | 59.56KB | 22.72KB | ▼ 61.85% |
documentation/assets/images/slide-buttons.png | 4.91KB | 2.71KB | ▼ 44.82% |
documentation/assets/images/html-editor.png | 11.26KB | 4.87KB | ▼ 56.77% |
documentation/assets/images/layers-editor.png | 17.73KB | 7.57KB | ▼ 57.29% |
documentation/assets/images/presets.png | 16.16KB | 6.90KB | ▼ 57.29% |