Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/before-after-image-comparison-slider/includes/Metabox.php+26
Undefined index: id
Server metrics [RAM: ▼1.73MB] [CPU: ▼58.87ms] Passed 4 tests
This is a short check of server-side resources used by Before After Image Comparison Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.26 ▼1.21 | 7.14 ▼36.34 |
Dashboard /wp-admin | 2.28 ▼1.03 | 7.99 ▼50.81 |
Posts /wp-admin/edit.php | 2.28 ▼1.08 | 9.45 ▼44.87 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.61 | 8.26 ▼103.45 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 9.18 ▼30.68 |
All Sliders /wp-admin/edit.php?post_type=baics | 2.28 | 8.36 |
Add New /wp-admin/post-new.php?post_type=baics | 2.28 | 7.28 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Before After Image Comparison Slider: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲220 | 14.87 ▲0.52 | 2.11 ▲0.42 | 41.77 ▼3.81 |
Dashboard /wp-admin | 2,380 ▲203 | 6.37 ▲0.72 | 110.60 ▲19.43 | 41.59 ▼2.43 |
Posts /wp-admin/edit.php | 2,308 ▲205 | 3.65 ▲1.70 | 48.46 ▲7.87 | 31.35 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,565 ▲36 | 23.69 ▲0.67 | 662.46 ▼9.74 | 36.82 ▼21.14 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.33 ▲0.15 | 84.02 ▼34.59 | 43.55 ▼5.03 |
All Sliders /wp-admin/edit.php?post_type=baics | 1,288 | 3.51 | 45.64 | 27.52 |
Add New /wp-admin/post-new.php?post_type=baics | 2,158 | 4.46 | 86.58 | 38.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/before-after-image-comparison-slider/includes/Metabox.php+26
Undefined index: id
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=baics
- > Notice in wp-content/plugins/before-after-image-comparison-slider/includes/Metabox.php+26
Undefined index: id
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=baics
- > Notice in wp-content/plugins/before-after-image-comparison-slider/includes/Metabox.php+34
Undefined index: fields
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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/before-after-image-comparison-slider/includes/functions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/before-after-image-comparison-slider/includes/functions.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
before-after-image-comparison-slider/before-after-image-comparison-slider.php 92% from 13 tests
The main file in "Before After Image Comparison Slider" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin1,761 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 204 | 415 | 1,278 |
CSS | 2 | 8 | 1 | 261 |
JavaScript | 2 | 32 | 30 | 195 |
JSON | 2 | 0 | 0 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 18 | 27.69% |
▷ Public methods | 63 | 96.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.08% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin