Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.51MB] [CPU: ▲19.24ms] Passed 4 tests
Server-side resources used by visualslider Sldier
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 49.39 ▲3.04 |
Dashboard /wp-admin | 5.15 ▲1.81 | 84.66 ▲13.19 |
Posts /wp-admin/edit.php | 5.20 ▲1.85 | 84.79 ▲35.25 |
Add New Post /wp-admin/post-new.php | 7.71 ▲1.83 | 128.88 ▲30.01 |
Media Library /wp-admin/upload.php | 5.08 ▲1.85 | 79.26 ▲30.73 |
Add New /wp-admin/post-new.php?post_type=visualslider | 5.28 | 108.26 |
All Sliders /wp-admin/edit.php?post_type=visualslider | 5.12 | 70.69 |
Server storage [IO: ▲5.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 340 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_visualslider |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for visualslider Sldier
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲157 | 13.38 ▼0.78 | 10.00 ▲7.61 | 44.34 ▼0.26 |
Dashboard /wp-admin | 2,235 ▲55 | 5.80 ▲0.12 | 93.23 ▲7.01 | 42.55 ▲6.26 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 2.04 ▲0.01 | 36.86 ▲0.63 | 32.34 ▼3.49 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.64 ▼0.18 | 703.02 ▲26.78 | 55.54 ▼2.74 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.27 ▲0.07 | 98.83 ▼17.93 | 44.24 ▼3.91 |
Add New /wp-admin/post-new.php?post_type=visualslider | 3,971 | 4.93 | 160.73 | 223.47 |
All Sliders /wp-admin/edit.php?post_type=visualslider | 1,109 | 1.98 | 33.41 | 33.01 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_visualslider
- db_upgraded
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=visualslider
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/visual-slider/admin/includes/perview-global.php+92
Trying to get property 'ID' of non-object
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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/visual-slider/assets/css/phpfonts/flaticonarrow.php
- 100× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visual-slider/layer/mini/position_size.php:6
- > PHP Warning
include_once(): Failed opening 'VISUALSLIDER_PATHadmin/setting-options.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/visual-slider/admin/index.php on line 2
- > PHP Warning
include_once(): Failed opening 'VISUALSLIDER_PATHadmin/includes/template.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/visual-slider/admin/index.php on line 12
- > PHP Warning
Use of undefined constant VISUALSLIDER_PATH - assumed 'VISUALSLIDER_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/visual-slider/admin/index.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-slider/admin/index.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-slider/admin/includes/slide.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visual-slider/layer/mini/text_typography.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-slider/admin/includes/layer.php:17
- > PHP Warning
include_once(VISUALSLIDER_PATHadmin/includes/perview-glider-css.php): failed to open stream: No such file or directory in wp-content/plugins/visual-slider/admin/index.php on line 15
- > PHP Warning
Use of undefined constant VISUALSLIDER_PATH - assumed 'VISUALSLIDER_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/visual-slider/admin/index.php on line 18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=visualslider
- > Network (severe)
wp-content/plugins/visual-slider/admin/assets/css/admin-setting.css?ver=5560650 - Failed to load resource: the server responded with a status of 404 (Not Found)
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: slider builder, custom slider
visual-slider/visual-slider.php Passed 13 tests
"visualslider Sldier" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
17 characters long description:
Responsive Slider
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 plugin21,181 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 2,446 | 655 | 10,807 |
CSS | 29 | 898 | 217 | 5,163 |
JavaScript | 14 | 1,563 | 971 | 4,535 |
PO File | 1 | 314 | 480 | 656 |
SVG | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
A short 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.49 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 76.92% |
▷ Protected methods | 3 | 23.08% |
▷ Private methods | 0 | 0.00% |
Functions | 159 | |
▷ Named functions | 159 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
62 PNG files occupy 1.11MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/image/background.png | 17.41KB | 0.09KB | ▼ 99.48% |
admin/assets/image/floppy-disk.png | 8.33KB | 3.49KB | ▼ 58.05% |
admin/assets/image/cancel.png | 19.91KB | 8.96KB | ▼ 55.01% |
admin/assets/image/exchange.png | 8.42KB | 9.05KB | 0.00% |
admin/assets/image/download.png | 6.71KB | 3.70KB | ▼ 44.89% |