Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.44MB] [CPU: ▼142.13ms] 75% from 4 tests
Analyzing server-side resources used by Responsive Slider - Sangar Slider
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 3,260.09ms on /wp-admin/admin.php?page=sslider_about_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.24 ▲0.52 | 38.40 ▲7.89 |
Dashboard /wp-admin | 3.53 ▲0.47 | 39.13 ▼6.17 |
Posts /wp-admin/edit.php | 3.58 ▲0.47 | 46.28 ▲1.02 |
Add New Post /wp-admin/post-new.php | 5.84 ▲0.41 | 96.31 ▼558.52 |
Media Library /wp-admin/upload.php | 3.41 ▲0.40 | 36.05 ▼4.85 |
All Slider /wp-admin/admin.php?page=sangar_slider_admin | 3.44 | 36.66 |
About Sangar Slider /wp-admin/admin.php?page=sslider_about_page | 3.48 | 3,260.09 |
Add Basic Slider /wp-admin/post-new.php?post_type=sangar_slider | 3.77 | 71.74 |
Server storage [IO: ▲6.24MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 246 new files
Database: no new tables, 1 new option
New WordPress options |
---|
sslider_start_date |
Browser metrics Passed 4 tests
A check of browser resources used by Responsive Slider - Sangar Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,754 ▲158 | 15.82 ▲0.35 | 8.28 ▲0.43 | 45.41 ▼4.56 |
Dashboard /wp-admin | 3,014 ▲83 | 5.92 ▼0.04 | 141.56 ▲1.41 | 120.58 ▲17.83 |
Posts /wp-admin/edit.php | 2,788 ▲49 | 2.58 ▼0.23 | 65.67 ▲0.11 | 92.73 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,674 ▲2 | 22.05 ▲3.18 | 287.68 ▼66.16 | 148.26 ▲32.89 |
Media Library /wp-admin/upload.php | 1,799 ▼8 | 4.99 ▼0.04 | 136.85 ▼28.31 | 142.10 ▲13.39 |
All Slider /wp-admin/admin.php?page=sangar_slider_admin | 1,353 | 2.70 | 68.16 | 107.82 |
About Sangar Slider /wp-admin/admin.php?page=sslider_about_page | 2,421 | 12.35 | 537.72 | 147.23 |
Add Basic Slider /wp-admin/post-new.php?post_type=sangar_slider | 8,344 | 12.14 | 319.03 | 158.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
- This plugin does not fully uninstall, leaving 1 option in the database
- sslider_start_date
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sangar-slider-lite/free-basic-slider/modal-mobile.php
- > /wp-content/plugins/sangar-slider-lite/free-basic-slider/modal-layer.php
- 36× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function print_select() on null in wp-content/plugins/sangar-slider-lite/free-basic-slider/modal-content-options.php:75
- > PHP Warning
Use of undefined constant SANGAR_SLIDER_DIR_URL - assumed 'SANGAR_SLIDER_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sangar-slider-lite/free-basic-slider/modal-presets.php on line 3
- > PHP Notice
Undefined variable: form_lib in wp-content/plugins/sangar-slider-lite/free-basic-slider/modal-content-options.php on line 75
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sangar-slider-lite/sangar-core/activate.php:3
- > PHP Notice
Undefined variable: form_lib in wp-content/plugins/sangar-slider-lite/free-basic-slider/modal-background.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/sangar-slider-lite/sangar-core/about-page.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function print_select() on null in wp-content/plugins/sangar-slider-lite/free-basic-slider/modal-background.php:25
- > PHP Warning
Use of undefined constant SANGAR_SLIDER_DIR_URL - assumed 'SANGAR_SLIDER_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sangar-slider-lite/free-basic-slider/modal-mobile.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sangar-slider-lite/tonjoo-notice.php:14
- > PHP Warning
Use of undefined constant SANGAR_SLIDER_DIR_URL - assumed 'SANGAR_SLIDER_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sangar-slider-lite/free-basic-slider/modal-layer.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 43 tag instead of maximum 10
sangar-slider-lite/sangar-slider-lite.php Passed 13 tests
The main file in "Responsive Slider - Sangar Slider" v. 1.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
Lite version of Sangar Slider, the modern WordPress slideshow for your project.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin26,511 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 37 | 2,639 | 1,914 | 15,357 |
CSS | 19 | 711 | 233 | 5,109 |
PHP | 43 | 1,003 | 501 | 5,106 |
HTML | 8 | 106 | 1 | 670 |
Markdown | 1 | 28 | 0 | 130 |
JSON | 3 | 0 | 0 | 97 |
SVG | 1 | 0 | 0 | 42 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 20.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 6 | 11.54% |
▷ Public methods | 24 | 46.15% |
▷ Protected methods | 1 | 1.92% |
▷ Private methods | 27 | 51.92% |
Functions | 65 | |
▷ Named functions | 61 | 93.85% |
▷ Anonymous functions | 4 | 6.15% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
95 PNG files occupy 2.15MB with 1.75MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sangar-core/assets/images/template/horizontal_image_pagination.png | 0.64KB | 0.53KB | ▼ 17.58% |
elements/pattern-images/overlay_carbon.png | 14.64KB | 0.11KB | ▼ 99.27% |
sangar-core/assets/images/thumb_video.png | 21.89KB | 1.10KB | ▼ 94.96% |
sangar-core/assets/images/transparent/white.png | 2.70KB | 0.09KB | ▼ 96.53% |
sangar-core/assets/bower_components/sangar-slider/dist/img/icon_autoplay.png | 31.28KB | 0.63KB | ▼ 97.99% |