Benchmarks
Plugin footprint 40% 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
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/signature-watermark/signature-watermark-plugin.php+76
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.72MB] [CPU: ▼54.71ms] Passed 4 tests
A check of server-side resources used by Signature Watermark
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.54 ▼1.19 | 9.62 ▼34.73 |
Dashboard /wp-admin | 2.56 ▼1.00 | 9.52 ▼45.04 |
Posts /wp-admin/edit.php | 2.56 ▼1.12 | 11.24 ▼43.05 |
Add New Post /wp-admin/post-new.php | 2.56 ▼3.59 | 10.48 ▼96.01 |
Media Library /wp-admin/upload.php | 2.56 ▼0.93 | 9.97 ▼29.70 |
Signature Watermark /wp-admin/options-general.php?page=signature-watermark-settings | 2.56 | 9.20 |
Server storage [IO: ▲5.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Signature Watermark
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.37 ▼0.06 | 1.71 ▼0.30 | 43.40 ▲2.90 |
Dashboard /wp-admin | 2,199 ▲19 | 5.64 ▼0.04 | 99.62 ▲8.84 | 42.80 ▲1.24 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.01 | 38.17 ▼4.96 | 35.42 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.32 ▲0.28 | 654.14 ▼59.57 | 49.72 ▼7.96 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.21 ▲0.00 | 98.74 ▼8.72 | 44.18 ▼3.81 |
Signature Watermark /wp-admin/options-general.php?page=signature-watermark-settings | 1,998 | 13.38 | 394.64 | 42.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/signature-watermark/signature-watermark-plugin.php+76
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=signature-watermark-settings
- > Notice in wp-content/plugins/signature-watermark/signature-watermark-plugin.php+76
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=signature-watermark-settings
- > Notice in wp-content/plugins/signature-watermark/signature-watermark-plugin.php+76
Trying to access array offset on value of type null
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-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/admin.php): failed to open stream: No such file or directory in wp-content/plugins/signature-watermark/signature-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/signature-watermark/signature-watermark-plugin-installer.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/signature-watermark/signature-watermark-plugin-installer.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/signature-watermark/signature-watermark-loader.php:11
- > PHP Warning
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please add images for these screenshots: #1 (General Settings Page), #2 (Text Watermark Settings Page), #3 (Image Watermark Settings Page), #4 (Watermark Preview Page), #5 (Finished Example Image)
signature-watermark/signature-watermark-loader.php 92% from 13 tests
The main PHP script in "Signature Watermark" version 1.7.12 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("signature-watermark.php" instead of "signature-watermark-loader.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
There were no executable files found in this plugin1,639 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 932 | 317 | 1,613 |
JavaScript | 1 | 10 | 4 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 56 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 22.22% |
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.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
watermark-logo.png | 74.58KB | 34.65KB | ▼ 53.54% |