Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼0.82ms] Passed 4 tests
This is a short check of server-side resources used by Image Watermark
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 46.23 ▼0.70 |
Dashboard /wp-admin | 3.73 ▲0.42 | 54.03 ▼10.12 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 54.07 ▲1.11 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 101.81 ▲6.42 |
Media Library /wp-admin/upload.php | 3.76 ▲0.52 | 52.34 ▲13.81 |
Watermark /wp-admin/options-general.php?page=watermark-options | 3.65 | 46.44 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Image Watermark
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲4 | 13.24 ▼0.34 | 1.98 ▲0.01 | 43.96 ▼0.07 |
Dashboard /wp-admin | 2,210 ▲1 | 5.85 ▲1.00 | 109.32 ▼7.01 | 43.09 ▼1.13 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 42.00 ▲5.76 | 36.64 ▲2.47 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 24.18 ▲1.00 | 649.29 ▼153.86 | 56.29 ▼2.26 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.18 ▼0.03 | 108.83 ▲8.88 | 46.08 ▲0.79 |
Watermark /wp-admin/options-general.php?page=watermark-options | 1,626 | 3.59 | 74.38 | 82.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=watermark-options
- > Network (severe)
wp-content/plugins/image-watermark/images/df-black-sm.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: A description for screenshot #3 is missing in image-watermark/assets to your readme.txt
image-watermark/image-watermark.php 92% from 13 tests
The primary PHP file in "Image Watermark" version 1.7.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,733 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 357 | 615 | 1,304 |
JavaScript | 5 | 130 | 127 | 726 |
CSS | 2 | 51 | 160 | 703 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 102.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 73 | |
▷ Static methods | 1 | 1.37% |
▷ Public methods | 58 | 79.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 20.55% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-dfactory.png | 2.92KB | 1.92KB | ▼ 34.20% |
css/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/bg_fallback.png | 3.63KB | 0.30KB | ▼ 91.72% |
css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/slider_handles.png | 1.90KB | 1.31KB | ▼ 30.90% |