Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/bulk-watermark/bulk-watermark-loader.php+25
Undefined index: action
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.28ms] Passed 4 tests
An overview of server-side resources used by Bulk Watermark
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.84 ▼5.25 |
Dashboard /wp-admin | 3.34 ▲0.04 | 51.07 ▼4.01 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 53.68 ▲3.13 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 98.84 ▼10.74 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 38.32 ▲2.90 |
Bulk Watermark /wp-admin/options-general.php?page=bulk-watermark-settings | 3.24 | 39.29 |
Server storage [IO: ▲5.47MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
bulk-watermark-settings |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Bulk Watermark
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.22 ▼1.15 | 6.12 ▲4.21 | 40.51 ▼4.82 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.08 | 111.54 ▼7.28 | 40.05 ▼5.16 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.00 | 39.17 ▲1.71 | 33.82 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.74 ▲1.24 | 626.14 ▼59.98 | 53.70 ▼7.12 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.16 ▼0.02 | 96.07 ▼0.73 | 42.77 ▼4.18 |
Bulk Watermark /wp-admin/options-general.php?page=bulk-watermark-settings | 1,842 | 11.17 | 377.14 | 59.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/admin.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-watermark/bulk-watermark-plugin-installer.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/bulk-watermark/bulk-watermark-plugin-installer.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bulk-watermark/bulk-watermark-loader.php:11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-watermark/bulk-watermark-plugin-installer.php on line 7
- > PHP Warning
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 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots require images: #1 (General Settings), #2 (Text Watermark Settings), #3 (Image Watermark Settings), #4 (Watermark Settings Preview), #5 (Select Images to Watermark with Image Preview Popup), #6 (Finished Example Image)
bulk-watermark/bulk-watermark-loader.php 92% from 13 tests
This is the main PHP file of "Bulk Watermark" version 1.6.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("bulk-watermark.php" instead of "bulk-watermark-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,548 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 838 | 297 | 1,525 |
JavaScript | 1 | 5 | 4 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 20.83% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
watermark-logo.png | 49.83KB | 23.65KB | ▼ 52.54% |