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.05MB] [CPU: ▲1.70ms] Passed 4 tests
A check of server-side resources used by Simple Image watermark
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 46.55 ▲6.06 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.28 ▼0.71 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.96 ▼1.35 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 103.89 ▲6.93 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.51 ▲2.81 |
Watermark options /wp-admin/options-general.php?page=siw_options_page | 3.25 | 33.76 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
siw_plugin_options |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Simple Image watermark: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.27 ▼1.11 | 2.01 ▲0.29 | 36.88 ▼7.91 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼1.01 | 110.03 ▲7.09 | 43.73 ▲0.94 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.13 | 40.34 ▼0.22 | 34.58 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.60 ▲0.09 | 668.44 ▲52.74 | 58.34 ▲3.95 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.35 ▲0.10 | 97.47 ▼13.28 | 42.93 ▼1.46 |
Watermark options /wp-admin/options-general.php?page=siw_options_page | 935 | 2.00 | 40.05 | 28.27 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- siw_plugin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-image-watermark/simple-image-watermark.php:13
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: admin, image, watermark, image watermark, simple image watermark...
simple-image-watermark/simple-image-watermark.php Passed 13 tests
The primary PHP file in "Simple Image watermark" version 1.0 is used by WordPress to initiate all plugin functionality
23 characters long description:
Add watermark to images
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
No dangerous file extensions were detected265 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 68 | 24 | 253 |
JavaScript | 1 | 1 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin