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.03MB] [CPU: ▼2.36ms] Passed 4 tests
This is a short check of server-side resources used by Best Watermark - Protect images on your site with iLoveIMG
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 46.09 ▲2.39 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.29 ▼15.58 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 43.63 ▲0.66 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 96.45 ▲8.54 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.66 ▲3.10 |
Compress settings /wp-admin/admin.php?page=iloveimg-compress-admin-page | 3.32 | 34.06 |
Watermark settings /wp-admin/admin.php?page=iloveimg-watermark-admin-page | 3.42 | 31.31 |
Bulk Watermark /wp-admin/upload.php?page=iloveimg-media-watermark-page | 3.31 | 34.51 |
Server storage [IO: ▲1.09MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 117 new files
Database: no new tables, 8 new options
New WordPress options |
---|
ilove_img_wm_db_version |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
iloveimg_options_watermark |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Best Watermark - Protect images on your site with iLoveIMG
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲98 | 14.32 ▼0.03 | 1.86 ▲0.07 | 44.33 ▼2.19 |
Dashboard /wp-admin | 2,250 ▲69 | 5.73 ▲0.01 | 86.07 ▼17.95 | 89.54 ▲51.59 |
Posts /wp-admin/edit.php | 2,167 ▲67 | 2.25 ▲0.31 | 40.35 ▲4.22 | 46.65 ▲14.81 |
Add New Post /wp-admin/post-new.php | 1,575 ▲45 | 23.39 ▲0.30 | 792.35 ▲148.95 | 46.07 ▼5.89 |
Media Library /wp-admin/upload.php | 1,465 ▲62 | 4.23 ▲0.05 | 107.12 ▲8.28 | 86.79 ▲43.71 |
Compress settings /wp-admin/admin.php?page=iloveimg-compress-admin-page | 1,205 | 2.39 | 27.26 | 47.18 |
Watermark settings /wp-admin/admin.php?page=iloveimg-watermark-admin-page | 2,343 | 3.77 | 71.95 | 197.05 |
Bulk Watermark /wp-admin/upload.php?page=iloveimg-media-watermark-page | 1,135 | 2.16 | 31.58 | 44.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- ilove_img_wm_db_version
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- iloveimg_options_watermark
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=iloveimg-watermark-admin-page
- > Notice in wp-content/plugins/watermark-protect-images/admin/views/watermark.php+145
Undefined index: iloveimg_field_text_family
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 fix the following items
- 53× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/watermark-protect-images/vendor/ilovepdf/iloveimg-php/samples/rotate_basic.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/watermark-protect-images/admin/views/account.php:5
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/watermark-protect-images/vendor/ilovepdf/iloveimg-php/samples/rotate_advanced.php on line 3
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/watermark-protect-images/vendor/ilovepdf/iloveimg-php/samples/chained_task.php on line 3
- > PHP Fatal error
require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/watermark-protect-images/vendor/ilovepdf/iloveimg-php/samples/webhook_listen.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/watermark-protect-images/admin/views/compress.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/watermark-protect-images/vendor/ilovepdf/iloveimg-php/tests/Iloveimg/IloveTest.php:13
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/watermark-protect-images/vendor/ilovepdf/iloveimg-php/samples/resize_advanced.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Ilove_Img_Wm\\Ilove_Img_Wm_Media_List_Table' not found in wp-content/plugins/watermark-protect-images/admin/views/media-bulk.php:4
- > PHP Warning
require_once(wp-content/plugins/watermark-protect-images/vendor/ilovepdf/iloveimg-php/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/watermark-protect-images/vendor/ilovepdf/iloveimg-php/tests/bootstrap.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in watermark-protect-images/assets to your readme.txt
watermark-protect-images/ilove-img-watermark.php 77% from 13 tests
"Best Watermark - Protect images on your site with iLoveIMG" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("watermark-protect-images.php" instead of "ilove-img-watermark.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin16,039 lines of code in 111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 7,350 |
PHP | 70 | 1,003 | 2,239 | 4,062 |
JavaScript | 3 | 351 | 225 | 2,314 |
Sass | 8 | 37 | 14 | 1,316 |
CSS | 2 | 41 | 28 | 439 |
SVG | 15 | 0 | 15 | 325 |
Markdown | 3 | 66 | 0 | 154 |
XML | 3 | 0 | 0 | 71 |
YAML | 2 | 2 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 266 | |
▷ Static methods | 88 | 33.08% |
▷ Public methods | 247 | 92.86% |
▷ Protected methods | 4 | 1.50% |
▷ Private methods | 15 | 5.64% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 49 | |
▷ Global constants | 7 | 14.29% |
▷ Class constants | 42 | 85.71% |
▷ Public constants | 42 | 100.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
PNG images were not found in this plugin