Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.71MB] [CPU: ▼59.42ms] Passed 4 tests
A check of server-side resources used by WP Before After Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 5.02 ▼40.17 |
Dashboard /wp-admin | 2.30 ▼1.04 | 7.32 ▼60.95 |
Posts /wp-admin/edit.php | 2.30 ▼1.05 | 6.50 ▼42.68 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.58 | 7.36 ▼93.86 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 6.74 ▼32.11 |
All Sliders /wp-admin/admin.php?page=wpbaslider | 2.30 | 6.39 |
/wp-admin/admin.php?page=add-wpbaslider | 2.30 | 7.58 |
/wp-admin/admin.php?page=wpbaslider-settings | 2.30 | 5.61 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Before After Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲30 | 14.15 ▼0.59 | 1.77 ▼0.29 | 38.58 ▼5.30 |
Dashboard /wp-admin | 2,225 ▲51 | 5.64 ▲0.11 | 84.91 ▼14.57 | 39.10 ▼5.57 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▲0.07 | 39.39 ▼0.38 | 36.04 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 22.98 ▲0.16 | 643.13 ▲20.59 | 76.06 ▲25.41 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.19 ▼0.03 | 99.32 ▼11.90 | 45.49 ▼2.26 |
All Sliders /wp-admin/admin.php?page=wpbaslider | 1,147 | 3.04 | 44.47 | 39.21 |
/wp-admin/admin.php?page=add-wpbaslider | 1,115 | 3.05 | 41.37 | 29.85 |
/wp-admin/admin.php?page=wpbaslider-settings | 1,370 | 3.06 | 50.72 | 39.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-before-after-slider/inc/class-wp-before-after-slider.php+855
Use of undefined constant HFWE_DIR - assumed 'HFWE_DIR' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpbaslider-settings
- > Warning in wp-content/plugins/wp-before-after-slider/inc/class-wp-before-after-slider.php+855
Use of undefined constant HFWE_DIR - assumed 'HFWE_DIR' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpbaslider-settings
- > Notice in wp-content/plugins/wp-before-after-slider/inc/admin/templates/slider-settings.php+13
Undefined index: slider
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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
3 plugin tags: before-after-slider, image-slider, before after image slider
wp-before-after-slider/wp-after-before-slider.php 85% from 13 tests
Analyzing the main PHP file in "WP Before After Slider" version 1.0.0
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-before-after-slider.php" instead of "wp-after-before-slider.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 179 characters long)
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
Everything looks great! No dangerous files found in this plugin3,890 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 319 | 646 | 1,809 |
PHP | 9 | 367 | 281 | 1,103 |
CSS | 6 | 61 | 17 | 675 |
SVG | 2 | 1 | 1 | 303 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 84.00 |
▷ Minimum class complexity | 84.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/images/close-icon.png | 2.34KB | 2.42KB | 0.00% |
assets/libs/bxslider/css/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
inc/admin/assets/images/pencil-icon.png | 2.15KB | 2.15KB | 0.05% |
inc/admin/assets/images/gear-icon.png | 1.95KB | 1.82KB | ▼ 6.76% |
assets/images/wp-bas-logo.png | 13.71KB | 6.46KB | ▼ 52.90% |