Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.36ms] Passed 4 tests
This is a short check of server-side resources used by Before After Image Comparison Slider for Elementor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.76 ▼4.57 |
Dashboard /wp-admin | 3.50 ▲0.15 | 57.25 ▼6.15 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 54.17 ▲2.25 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 99.08 ▲5.66 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.91 ▲3.05 |
Custom JS /wp-admin/admin.php?page=wbel-before-after-custom-js | 3.39 | 36.70 |
Support /wp-admin/admin.php?page=wb-page-wbebaic-support | 3.40 | 30.09 |
Custom CSS /wp-admin/admin.php?page=wbel-before-after-custom-css | 3.39 | 34.83 |
AddOns /wp-admin/admin.php?page=wbel-before-after-addons | 3.40 | 38.20 |
Server storage [IO: ▲4.77MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Before After Image Comparison Slider for Elementor: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 13.25 ▼1.12 | 2.08 ▲0.12 | 33.25 ▼8.51 |
Dashboard /wp-admin | 2,262 ▲74 | 5.86 ▲0.04 | 98.58 ▼4.92 | 43.65 ▲0.75 |
Posts /wp-admin/edit.php | 2,147 ▲61 | 2.01 ▲0.02 | 40.06 ▲4.32 | 39.35 ▲4.45 |
Add New Post /wp-admin/post-new.php | 1,561 ▲42 | 23.10 ▼0.26 | 646.22 ▲42.47 | 55.33 ▼4.57 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.22 ▲0.05 | 111.85 ▲14.17 | 49.31 ▲5.43 |
Custom JS /wp-admin/admin.php?page=wbel-before-after-custom-js | 1,038 | 3.24 | 70.83 | 62.33 |
Support /wp-admin/admin.php?page=wb-page-wbebaic-support | 1,609 | 2.07 | 42.44 | 123.50 |
Custom CSS /wp-admin/admin.php?page=wbel-before-after-custom-css | 1,028 | 3.13 | 59.50 | 37.72 |
AddOns /wp-admin/admin.php?page=wbel-before-after-addons | 921 | 2.15 | 30.61 | 54.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/before-after-image-comparison-slider-for-elementor/support-page/class-support-page.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/before-after-image-comparison-slider-for-elementor/admin/admin-pages.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/before-after-image-comparison-slider-for-elementor/admin/addons/admin_ui2.php:6
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/before-after-image-comparison-slider-for-elementor/widgets/before-after.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/before-after-image-comparison-slider-for-elementor/before-after-image-comparison-slider-for-elementor.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid version format
before-after-image-comparison-slider-for-elementor/before-after-image-comparison-slider-for-elementor.php 77% from 13 tests
This is the main PHP file of "Before After Image Comparison Slider for Elementor" version 1.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin8,204 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 536 | 121 | 3,294 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 8 | 383 | 382 | 1,478 |
JavaScript | 13 | 183 | 87 | 731 |
PO File | 1 | 6 | 6 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 39 | 92.86% |
▷ Protected methods | 3 | 7.14% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.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
20 PNG files occupy 2.21MB with 1.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/addons/images/before-after-carousel-full.png | 620.47KB | 286.79KB | ▼ 53.78% |
support-page/images/icon-pack/service-06.png | 2.38KB | 1.13KB | ▼ 52.68% |
support-page/images/feature04.png | 6.35KB | 2.85KB | ▼ 55.08% |
support-page/images/icon-pack/service-04.png | 1.67KB | 0.90KB | ▼ 46.47% |
support-page/images/icon-pack/service-07.png | 1.67KB | 0.86KB | ▼ 48.39% |