Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.14ms] Passed 4 tests
This is a short check of server-side resources used by Before After Images Slide
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 27.18 ▼9.96 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.74 ▼9.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.73 ▲0.29 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.45 ▲2.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.60 ▲3.49 |
OT Before After Images Slide /wp-admin/options-general.php?page=otbfimg | 3.25 | 29.59 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Before After Images Slide
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.61 ▼1.04 | 7.37 ▲5.83 | 43.63 ▲4.68 |
Dashboard /wp-admin | 2,210 ▲19 | 5.03 ▲0.11 | 108.17 ▲2.00 | 41.85 ▼0.69 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.14 ▲0.13 | 38.70 ▲2.74 | 35.51 ▲2.98 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 18.28 ▼5.15 | 587.09 ▼94.69 | 49.21 ▼2.69 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.30 ▲0.11 | 93.82 ▼7.26 | 42.93 ▼4.69 |
OT Before After Images Slide /wp-admin/options-general.php?page=otbfimg | 1,348 | 2.06 | 27.40 | 140.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=otbfimg
- > Notice in wp-content/plugins/ot-before-after-images-slide/functions.php+23
Undefined index: otbfimg_otcolumnwidth
- > GET request to /wp-admin/options-general.php?page=otbfimg
- > Notice in wp-content/plugins/ot-before-after-images-slide/functions.php+34
Undefined index: otbfimg_otdisplay
- > GET request to /wp-admin/options-general.php?page=otbfimg
- > Notice in wp-content/plugins/ot-before-after-images-slide/functions.php+45
Undefined index: otbfimg_otbeforeafter
- > GET request to /wp-admin/options-general.php?page=otbfimg
- > Notice in wp-content/plugins/ot-before-after-images-slide/functions.php+56
Undefined index: otbfimg_otmove
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ot-before-after-images-slide/functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ot-before-after-images-slide/otbfimg-shortcode.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/ot-before-after-images-slide/otbfimg-setting.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ot-before-after-images-slide/otbfimg.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=otbfimg
- > Javascript (severe) in unknown
/wp-content/plugins/ot-before-after-images-slide/assets/js/bootstrap.min.js?ver=6.3.1 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
Optimizations
Plugin configuration 93% from 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: before and after image, images slide
ot-before-after-images-slide/otbfimg.php 85% from 13 tests
Analyzing the main PHP file in "Before After Images Slide" version 1.2.2
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 200 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ot-before-after-images-slide.php" instead of "otbfimg.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,036 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 233 | 40 | 988 |
JavaScript | 5 | 158 | 103 | 561 |
SVG | 1 | 0 | 0 | 288 |
PHP | 4 | 30 | 17 | 199 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/powered_icon.png | 1.43KB | 0.45KB | ▼ 68.87% |