Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.04ms] Passed 4 tests
This is a short check of server-side resources used by Before After Image Comparison - Image comparison for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 33.42 ▼6.21 |
Dashboard /wp-admin | 3.34 ▼0.01 | 44.89 ▼13.89 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.66 ▲1.47 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.76 ▼9.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.89 ▲2.55 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Before After Image Comparison - Image comparison for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲137 | 13.86 ▼0.86 | 13.84 ▲11.88 | 38.41 ▼6.21 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.02 | 93.59 ▼5.59 | 43.36 ▲1.75 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 41.00 ▼1.98 | 36.26 ▼0.38 |
Add New Post /wp-admin/post-new.php | 6,371 ▲4,845 | 28.05 ▲4.52 | 910.81 ▲302.03 | 39.16 ▼11.20 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.22 ▼0.01 | 99.21 ▲3.14 | 40.26 ▼3.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ICB_PLUGIN_VERSION - assumed 'ICB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/before-after-image-compare/dist/script.asset.php on line 4
- > PHP Warning
Use of undefined constant ICB_PLUGIN_VERSION - assumed 'ICB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/before-after-image-compare/dist/editor.asset.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #5 is missing in before-after-image-compare/assets to your readme.txt
- Requires at least: Version format is invalid
before-after-image-compare/plugin.php 85% from 13 tests
The main PHP script in "Before After Image Comparison - Image comparison for WordPress" version 1.1.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("before-after-image-compare.php" instead of "plugin.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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
There were no executable files found in this plugin271 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 147 |
PO File | 1 | 31 | 57 | 80 |
PHP | 4 | 11 | 14 | 40 |
CSS | 2 | 0 | 2 | 2 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin