Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.27MB] [CPU: ▲2.58ms] Passed 4 tests
Analyzing server-side resources used by Saoshyant Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.60 | 42.24 ▲1.93 |
Dashboard /wp-admin | 4.85 ▲1.51 | 57.02 ▼1.85 |
Posts /wp-admin/edit.php | 4.90 ▲1.55 | 61.06 ▲15.12 |
Add New Post /wp-admin/post-new.php | 7.37 ▲1.48 | 90.41 ▼4.87 |
Media Library /wp-admin/upload.php | 4.71 ▲1.48 | 51.91 ▲17.17 |
Add New /wp-admin/post-new.php?post_type=sao_slide | 4.70 | 44.98 |
All Slides /wp-admin/edit.php?post_type=sao_slide | 4.82 | 49.93 |
Sliders /wp-admin/edit-tags.php?taxonomy=sao_sliders&post_type=sao_slide | 4.83 | 43.77 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Saoshyant Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 14.20 ▼0.09 | 1.85 ▲0.34 | 35.94 ▼5.12 |
Dashboard /wp-admin | 2,227 ▲50 | 5.50 ▼0.17 | 80.62 ▼7.65 | 38.94 ▼2.51 |
Posts /wp-admin/edit.php | 2,133 ▲30 | 1.96 ▼0.06 | 39.21 ▲1.87 | 35.11 ▲0.50 |
Add New Post /wp-admin/post-new.php | 1,554 ▲19 | 23.16 ▲4.96 | 664.52 ▲37.07 | 52.14 ▼6.63 |
Media Library /wp-admin/upload.php | 1,433 ▲30 | 4.20 ▲0.01 | 93.94 ▼1.71 | 39.32 ▼5.38 |
Add New /wp-admin/post-new.php?post_type=sao_slide | 2,771 | 6.04 | 145.27 | 55.86 |
All Slides /wp-admin/edit.php?post_type=sao_slide | 1,118 | 1.94 | 32.28 | 29.49 |
Sliders /wp-admin/edit-tags.php?taxonomy=sao_sliders&post_type=sao_slide | 1,310 | 2.13 | 28.11 | 38.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=sao_slide
- > Warning in wp-content/plugins/saoshyant-slider/saoshyant-slider.php+353
Use of undefined constant SAOPAGE_DIR - assumed 'SAOPAGE_DIR' (this will throw an Error in a future version of PHP)
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
Please fix the following
- 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saoshyant-slider/framework/perview.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/saoshyant-slider/options/fonts/flaticon_thin.php:846
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/saoshyant-slider/element/text_block.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saoshyant-slider/elementor_category.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saoshyant-slider/framework/builder.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/saoshyant-slider/options/responsive.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/saoshyant-slider/element/button.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saoshyant-slider/framework/builder-code.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/saoshyant-slider/options/fonts/metrizeicon.php:320
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saoshyant-slider/framework/builder-element.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=sao_slide
- > Network (severe)
saopage_dirassets/css/fonts/FontAwesome.css?ver=2.7.3 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: custom slider, slider builder
saoshyant-slider/saoshyant-slider.php Passed 13 tests
The entry point to "Saoshyant Slider" version 2.8 is a PHP file that has certain tags in its header comment area
25 characters long description:
Custom And Builder Slider
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin17,087 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 1,675 | 434 | 8,982 |
JavaScript | 12 | 1,084 | 338 | 3,858 |
CSS | 29 | 396 | 44 | 3,703 |
PO File | 1 | 264 | 372 | 544 |
PHP code Passed 2 tests
Analyzing 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.41 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 40.00% |
▷ Protected methods | 6 | 60.00% |
▷ Private methods | 0 | 0.00% |
Functions | 115 | |
▷ Named functions | 115 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/select.png | 15.35KB | 0.20KB | ▼ 98.70% |