Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼6.43ms] Passed 4 tests
An overview of server-side resources used by Add Watermarks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 37.27 ▼2.92 |
Dashboard /wp-admin | 3.49 ▲0.19 | 49.71 ▼1.70 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 49.77 ▼2.49 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 83.39 ▼18.60 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 39.33 ▲2.53 |
Add watermark /wp-admin/options-general.php?page=add-watermark-menu | 3.42 | 41.50 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add Watermarks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 13.97 ▼0.65 | 1.62 ▲0.11 | 39.23 ▼0.31 |
Dashboard /wp-admin | 2,202 ▲22 | 5.31 ▼0.32 | 122.22 ▲32.89 | 36.77 ▼10.12 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.51 ▲0.54 | 51.08 ▲11.82 | 34.56 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 24.66 ▲1.25 | 688.99 ▲77.06 | 39.75 ▼26.63 |
Media Library /wp-admin/upload.php | 1,505 ▲105 | 4.98 ▲0.77 | 108.45 ▲10.62 | 41.00 ▼0.83 |
Add watermark /wp-admin/options-general.php?page=add-watermark-menu | 1,347 | 3.36 | 53.29 | 28.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/add-watermark/php/add-watermark.php:895
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=add-watermark-menu
- > Network (severe)
wp-content/plugins/add-watermark/php/js/settings.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: watermark, media, htaccess
add-watermark/add-watermark.php Passed 13 tests
Analyzing the main PHP file in "Add Watermarks" version 2.0.2
71 characters long description:
Adds watermarks to selected images without changing the original image.
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
Everything looks great! No dangerous files found in this plugin886 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 118 | 74 | 754 |
PO File | 1 | 46 | 103 | 111 |
CSS | 1 | 1 | 0 | 20 |
JavaScript | 1 | 0 | 0 | 1 |
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.30 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 58 | |
▷ Static methods | 10 | 17.24% |
▷ Public methods | 58 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
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
PNG images were not found in this plugin