Benchmarks
Plugin footprint 83% 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: ▲0.01MB] [CPU: ▼8.64ms] Passed 4 tests
This is a short check of server-side resources used by WunderSlider Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.93 ▼0.44 |
Dashboard /wp-admin | 3.33 ▼0.02 | 52.26 ▼13.44 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.65 ▼4.80 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.21 ▼15.87 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 44.91 ▲7.96 |
WunderSlider Gallery /wp-admin/themes.php?page=wunderslider-gallery | 3.37 | 36.55 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WunderSlider Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.15 | 1.86 ▼0.12 | 42.50 ▼1.42 |
Dashboard /wp-admin | 2,196 ▲16 | 5.54 ▼0.17 | 82.76 ▼24.98 | 37.97 ▼16.71 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▲0.04 | 36.41 ▼1.90 | 34.65 ▲4.19 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.51 ▲5.00 | 630.25 ▼4.35 | 53.06 ▼21.89 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.16 ▼0.06 | 99.10 ▲1.29 | 44.16 ▲0.70 |
WunderSlider Gallery /wp-admin/themes.php?page=wunderslider-gallery | 1,725 | 2.04 | 26.78 | 35.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wunderslider-gallery/lib/core/boot.php:22
- > PHP Warning
require_once(WSG_UTY_LIB/class-wsg-utility.php): failed to open stream: No such file or directory in wp-content/plugins/wunderslider-gallery/lib/admin/admin-options-set.php on line 29
- > PHP Fatal error
require_once(): Failed opening required 'WSG_UTY_LIB/class-wsg-utility.php' (include_path='.:/usr/share/php') in wp-content/plugins/wunderslider-gallery/lib/admin/admin-options-set.php on line 29
- > PHP Warning
Use of undefined constant WSG_UTY_LIB - assumed 'WSG_UTY_LIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/wunderslider-gallery/lib/admin/admin-options-set.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wunderslider-gallery/lib/core/class-wunderslider-gallery.php:298
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wunderslider-gallery/wunderslider-gallery.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wunderslider-gallery/lib/admin/admin-options-form.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wunderslider-gallery/lib/core/class-wunderslider-nggallery.php:298
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wunderslider-gallery/lib/admin/class-wsg-admin-options.php:96
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 34 tag instead of maximum 10
wunderslider-gallery/wunderslider-gallery.php 92% from 13 tests
The main PHP script in "WunderSlider Gallery" version 1.3.9 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 257 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,405 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 156 | 371 | 1,131 |
PO File | 1 | 74 | 89 | 219 |
CSS | 1 | 3 | 19 | 55 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 6.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 23 | 100.00% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wunderslider-gallery-160x100.png | 9.00KB | 4.21KB | ▼ 53.19% |