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
Installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼3.46ms] Passed 4 tests
A check of server-side resources used by Easy Watermark
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 41.01 ▲3.28 |
Dashboard /wp-admin | 3.77 ▲0.47 | 49.40 ▼5.53 |
Posts /wp-admin/edit.php | 3.88 ▲0.53 | 53.78 ▲3.84 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 87.45 ▼15.41 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 44.61 ▲5.48 |
Easy Watermark /wp-admin/tools.php?page=easy-watermark | 3.74 | 37.28 |
Server storage [IO: ▲4.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 211 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
easy-watermark-version |
easy-watermark-first-booted |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Watermark
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.23 ▼0.30 | 1.74 ▼0.43 | 39.62 ▼1.16 |
Dashboard /wp-admin | 2,196 ▲19 | 5.59 ▼0.10 | 86.40 ▲0.75 | 39.92 ▼3.37 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▼0.02 | 36.07 ▼0.16 | 32.50 ▼8.15 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.99 ▼0.49 | 684.12 ▲7.98 | 61.16 ▲6.92 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.54 ▲0.44 | 115.66 ▼2.80 | 46.85 ▼1.16 |
Easy Watermark /wp-admin/tools.php?page=easy-watermark | 848 | 2.06 | 32.05 | 27.23 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- easy-watermark-version
Smoke tests 75% 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 | 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
- 146× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: field in wp-content/plugins/easy-watermark/src/views/dashboard/settings/field-one-column.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'EasyWatermark\\Metaboxes\\WatermarkMetabox' not found in wp-content/plugins/easy-watermark/src/classes/Metaboxes/Watermark/Alignment.php:15
- > PHP Fatal error
Uncaught Error: Class 'EasyWatermark\\Placeholders\\Abstracts\\StringPlaceholder' not found in wp-content/plugins/easy-watermark/src/classes/Placeholders/User/UserLogin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/easy-watermark/src/views/dashboard/pages/permissions.php:10
- > PHP Fatal error
Uncaught Error: Call to a member function get_layout() on null in wp-content/plugins/easy-watermark/src/views/dashboard/settings/fields/switch.php:13
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/easy-watermark/src/views/dashboard/pages/watermarks.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/easy-watermark/src/views/notices/success.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/easy-watermark/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'EasyWatermark\\Metaboxes\\WatermarkMetabox' not found in wp-content/plugins/easy-watermark/src/classes/Metaboxes/Watermark/WatermarkContent.php:16
- > PHP Fatal error
Uncaught Error: Class 'EasyWatermark\\Metaboxes\\WatermarkMetabox' not found in wp-content/plugins/easy-watermark/src/classes/Metaboxes/Watermark/Placeholders.php:16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: picture, upload, photo, watermark, signature...
easy-watermark/easy-watermark.php 85% from 13 tests
"Easy Watermark" version 1.0.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 453 characters long)
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected7,826 lines of code in 188 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 165 | 2,359 | 4,441 | 6,917 |
YAML | 4 | 16 | 8 | 411 |
PO File | 6 | 59 | 92 | 296 |
JSON | 1 | 0 | 0 | 160 |
XML | 1 | 2 | 0 | 23 |
JavaScript | 5 | 0 | 7 | 7 |
CSS | 5 | 0 | 0 | 6 |
Markdown | 1 | 4 | 0 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 124 | |
▷ Abstract classes | 14 | 11.29% |
▷ Concrete classes | 110 | 88.71% |
▷ Final classes | 0 | 0.00% |
Methods | 499 | |
▷ Static methods | 41 | 8.22% |
▷ Public methods | 442 | 88.58% |
▷ Protected methods | 24 | 4.81% |
▷ Private methods | 33 | 6.61% |
Functions | 14 | |
▷ Named functions | 3 | 21.43% |
▷ Anonymous functions | 11 | 78.57% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 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
No PNG files were detected