Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.96MB] [CPU: ▲20.68ms] Passed 4 tests
This is a short check of server-side resources used by a3 Responsive Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.44 ▲4.97 | 61.61 ▲20.89 |
Dashboard /wp-admin | 8.26 ▲4.95 | 70.86 ▲18.97 |
Posts /wp-admin/edit.php | 8.40 ▲5.04 | 78.50 ▲30.52 |
Add New Post /wp-admin/post-new.php | 10.84 ▲4.95 | 106.76 ▲16.71 |
Media Library /wp-admin/upload.php | 8.20 ▲4.97 | 62.93 ▲26.13 |
Slider Skins /wp-admin/edit.php?post_type=a3_slider&page=a3-rslider-skins | 8.52 | 111.19 |
Widget Skin /wp-admin/edit.php?post_type=a3_slider&page=a3-rslider-template-widget | 8.51 | 69.96 |
All Sliders /wp-admin/edit.php?post_type=a3_slider | 8.54 | 65.78 |
Add New Slider /wp-admin/post-new.php?post_type=a3_slider | 8.68 | 76.97 |
Folders /wp-admin/edit-tags.php?taxonomy=slider_folder&post_type=a3_slider | 8.20 | 71.75 |
Card Skin /wp-admin/edit.php?post_type=a3_slider&page=a3-rslider-card-skin | 8.51 | 74.33 |
Touch Mobile Skin /wp-admin/edit.php?post_type=a3_slider&page=a3-rslider-template-mobile | 8.51 | 62.85 |
Server storage [IO: ▲2.97MB] [DB: ▲0.09MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 247 new files
Database: 1 new table, 51 new options
New tables |
---|
wp_a3_rslider_images |
New WordPress options |
---|
a3_rslider_template2_control_settings |
a3_rslider_template_widget_dimensions_settings |
a3rev_rslider_version |
a3_rslider_template1_pager_settings |
a3_rslider_template1_title_settings |
a3_rslider_template_card_title_settings |
a3_rslider_template1_control_settings |
a3_rslider_template2_title_settings |
a3_rslider_template_widget_global_settings |
a3_rslider_template_widget_readmore_settings |
... |
Browser metrics 75% from 4 tests
This is an overview of browser requirements for a3 Responsive Slider
You may want to improve the following
- Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 40,562 on /wp-admin/edit.php?post_type=a3_slider&page=a3-rslider-skins)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲97 | 14.14 ▼0.20 | 1.61 ▼0.27 | 37.91 ▼5.71 |
Dashboard /wp-admin | 2,249 ▲69 | 5.63 ▼0.03 | 94.12 ▼14.18 | 42.36 ▼1.30 |
Posts /wp-admin/edit.php | 2,154 ▲57 | 2.03 ▲0.07 | 40.67 ▲1.17 | 38.16 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,793 ▲260 | 23.35 ▲0.12 | 608.03 ▲14.79 | 50.13 ▲2.24 |
Media Library /wp-admin/upload.php | 1,454 ▲57 | 4.19 ▲0.00 | 99.66 ▼6.22 | 44.52 ▼0.94 |
Slider Skins /wp-admin/edit.php?post_type=a3_slider&page=a3-rslider-skins | 40,562 | 8.94 | 628.68 | 245.30 |
Widget Skin /wp-admin/edit.php?post_type=a3_slider&page=a3-rslider-template-widget | 1,269 | 3.67 | 73.34 | 89.00 |
All Sliders /wp-admin/edit.php?post_type=a3_slider | 1,237 | 2.13 | 37.35 | 32.27 |
Add New Slider /wp-admin/post-new.php?post_type=a3_slider | 4,523 | 9.00 | 240.22 | 82.90 |
Folders /wp-admin/edit-tags.php?taxonomy=slider_folder&post_type=a3_slider | 1,328 | 2.12 | 27.23 | 29.28 |
Card Skin /wp-admin/edit.php?post_type=a3_slider&page=a3-rslider-card-skin | 1,339 | 3.64 | 59.30 | 97.86 |
Touch Mobile Skin /wp-admin/edit.php?post_type=a3_slider&page=a3-rslider-template-mobile | 3,004 | 5.16 | 108.27 | 85.03 |
Uninstaller [IO: ▲0.03MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_a3_rslider_images
- This plugin did not uninstall successfully, leaving 50 options in the database
- a3_rslider_template1_readmore_settings
- a3_rslider_template_card_global_settings
- a3_rslider_template_widget_dimensions_settings
- widget_theysaidso_widget
- a3_rslider_template_mobile_title_settings
- db_upgraded
- a3rev_rslider_version
- a3_responsive_slider_style_version
- a3_rslider_template_2
- a3_rslider_template_widget_slider_styles_settings
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/a3-responsive-slider/a3_responsive_slider.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/a3-responsive-slider/includes/customized_style.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a3-responsive-slider/admin/a3-rslider-admin.php:37
- > PHP Fatal error
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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: image gallery, wordpress image slider, responsive slider, responsive image slider
a3-responsive-slider/a3_responsive_slider.php 85% from 13 tests
The primary PHP file in "a3 Responsive Slider" version 2.3.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("a3-responsive-slider.php" instead of "a3_responsive_slider.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 216 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected53,506 lines of code in 184 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 102 | 5,537 | 7,521 | 20,193 |
JavaScript | 46 | 2,328 | 1,567 | 14,264 |
JSON | 1 | 0 | 0 | 13,203 |
CSS | 22 | 316 | 155 | 3,693 |
LESS | 6 | 86 | 28 | 1,070 |
PO File | 1 | 452 | 1,240 | 981 |
SVG | 5 | 5 | 0 | 73 |
HTML | 1 | 2 | 0 | 29 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 410)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 27.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 801.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 410.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 94 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 94 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 952 | |
▷ Static methods | 76 | 7.98% |
▷ Public methods | 781 | 82.04% |
▷ Protected methods | 143 | 15.02% |
▷ Private methods | 28 | 2.94% |
Functions | 74 | |
▷ Named functions | 72 | 97.30% |
▷ Anonymous functions | 2 | 2.70% |
Constants | 29 | |
▷ Global constants | 15 | 51.72% |
▷ Class constants | 14 | 48.28% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
34 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/follow-twitter.png | 4.04KB | 2.07KB | ▼ 48.62% |
admin/assets/js/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
admin/assets/images/slider-container-start-disable.png | 1.53KB | 0.56KB | ▼ 63.40% |
admin/assets/images/ico-preview.png | 1.11KB | 0.36KB | ▼ 67.28% |
admin/assets/images/slider-container-end-disable.png | 1.59KB | 0.55KB | ▼ 65.24% |