Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.03MB] [CPU: ▲5.00ms] 75% from 4 tests
Server-side resources used by Master Slider - Responsive Touch Slider
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 3,423.93ms on /wp-admin/admin.php?page=master-slider)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 45.34 ▲4.41 |
Dashboard /wp-admin | 4.54 ▲1.20 | 62.73 ▼3.52 |
Posts /wp-admin/edit.php | 4.60 ▲1.24 | 54.39 ▲9.80 |
Add New Post /wp-admin/post-new.php | 7.08 ▲1.19 | 102.31 ▲20.42 |
Media Library /wp-admin/upload.php | 4.40 ▲1.17 | 43.84 ▲9.30 |
Settings /wp-admin/admin.php?page=master-slider-setting | 4.38 | 40.89 |
Master Slider /wp-admin/admin.php?page=master-slider | 5.73 | 3,423.93 |
Server storage [IO: ▲7.10MB] [DB: ▲0.24MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 273 new files
Database: 2 new tables, 15 new options
New tables |
---|
wp_masterslider_sliders |
wp_masterslider_options |
New WordPress options |
---|
upgrade_to_pro |
msp_advanced |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
master-slider_ab_pro_feature_panel_content_type |
widget_recent-posts |
widget_master-slider-main-widget |
master-slider_ab_pro_feature_setting_content_type |
msp_general_setting |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Master Slider - Responsive Touch Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,109 ▲362 | 13.21 ▼1.50 | 4.38 ▲2.74 | 47.83 ▲3.63 |
Dashboard /wp-admin | 2,505 ▲328 | 5.79 ▲0.22 | 112.96 ▲13.68 | 96.82 ▲52.35 |
Posts /wp-admin/edit.php | 2,405 ▲305 | 2.49 ▲0.35 | 39.25 ▲3.52 | 43.65 ▲10.49 |
Add New Post /wp-admin/post-new.php | 1,799 ▲273 | 25.17 ▲2.02 | 721.60 ▲64.29 | 36.04 ▼13.57 |
Media Library /wp-admin/upload.php | 1,708 ▲308 | 4.46 ▲0.26 | 100.06 ▲3.22 | 91.99 ▲52.09 |
Settings /wp-admin/admin.php?page=master-slider-setting | 1,502 | 2.33 | 42.23 | 103.80 |
Master Slider /wp-admin/admin.php?page=master-slider | 3,833 | 2.40 | 57.74 | 196.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.24MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_masterslider_sliders
- wp_masterslider_options
- This plugin does not fully uninstall, leaving 15 options in the database
- upgrade_to_pro
- msp_general_setting
- can_compress_scripts
- widget_recent-posts
- master-slider_ab_pro_feature_panel_content_type
- widget_recent-comments
- master-slider_ab_pro_feature_setting_content_type
- widget_theysaidso_widget
- masterslider_lite_plugin_version
- masterslider_db_version
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/master-slider/public/views/public.php
- > /wp-content/plugins/master-slider/uninstall.php
- > /wp-content/plugins/master-slider/master-slider.php
- 24× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant MSWP_AVERTA_PUB_URL - assumed 'MSWP_AVERTA_PUB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/master-slider/public/includes/class-msp-frontend-assets.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/master-slider/admin/includes/msp-admin-functions.php:142
- > PHP Warning
include_once(): Failed opening 'MSWP_AVERTA_INC_DIR/index.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/master-slider/public/class-master-slider.php on line 67
- > PHP Fatal error
Uncaught Error: Class 'Axiom_Screen_Help' not found in wp-content/plugins/master-slider/admin/includes/classes/class-msp-screen-help.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/master-slider/admin/includes/classes/class-msp-admin-ajax.php:13
- > PHP Warning
include_once(MSWP_AVERTA_INC_DIR/index.php): failed to open stream: No such file or directory in wp-content/plugins/master-slider/public/class-master-slider.php on line 67
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/master-slider/includes/msp-shortcodes.php:7
- > PHP Warning
Use of undefined constant MSWP_AVERTA_ADMIN_URL - assumed 'MSWP_AVERTA_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/master-slider/admin/views/slider-panel/index.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function msp_get_panel_header() in wp-content/plugins/master-slider/admin/views/slider-dashboard/list-sliders.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/master-slider/admin/includes/msp-compatibility.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Tags: There are too many tags (33 tag instead of maximum 10)
master-slider/master-slider.php Passed 13 tests
The principal PHP file in "Master Slider - Responsive Touch Slider" v. 3.9.5 is loaded by WordPress automatically on each request
139 characters long description:
Master Slider is the most advanced responsive HTML5 WordPress slider plugin with touch swipe navigation that works smoothly on devices too.
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
Everything looks great! No dangerous files found in this plugin34,868 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 6 | 4,149 | 14,617 | 8,449 |
PHP | 43 | 2,681 | 2,382 | 7,270 |
JSON | 1 | 0 | 0 | 7,104 |
CSS | 12 | 1,083 | 274 | 6,255 |
JavaScript | 15 | 1,729 | 700 | 5,610 |
SVG | 4 | 4 | 2 | 151 |
HTML | 1 | 5 | 0 | 29 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 32.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 278 | |
▷ Static methods | 11 | 3.96% |
▷ Public methods | 252 | 90.65% |
▷ Protected methods | 3 | 1.08% |
▷ Private methods | 23 | 8.27% |
Functions | 106 | |
▷ Named functions | 105 | 99.06% |
▷ Anonymous functions | 1 | 0.94% |
Constants | 15 | |
▷ Global constants | 14 | 93.33% |
▷ Class constants | 1 | 6.67% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
115 PNG files occupy 1.13MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/views/slider-panel/images/layertypes/text.png | 0.31KB | 0.31KB | 0.00% |
admin/views/slider-panel/images/templates/flat-tablet-land.png | 3.22KB | 1.51KB | ▼ 53.07% |
public/assets/css/templates/staff-arrows.png | 0.67KB | 0.59KB | ▼ 11.66% |
public/assets/css/templates/flat-phone.png | 8.81KB | 4.22KB | ▼ 52.08% |
admin/assets/images/misc/where-is-ms-shortcode.png | 8.97KB | 2.98KB | ▼ 66.79% |