Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲3.81ms] Passed 4 tests
Server-side resources used by Marekkis Watermark-Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.52 ▲1.37 |
Dashboard /wp-admin | 3.36 ▲0.05 | 54.77 ▲3.26 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 54.38 ▲7.39 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 99.48 ▲3.98 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 45.14 ▲6.62 |
Watermark /wp-admin/options-general.php?page=marekkis-watermark/index.php | 3.30 | 39.89 |
Watermark-Dir /wp-admin/options-general.php?page=marekkis-watermark/wm_dir.php | 3.29 | 38.43 |
Server storage [IO: ▲1.70MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Marekkis Watermark-Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 14.23 ▼0.03 | 2.42 ▲0.13 | 50.89 ▲0.45 |
Dashboard /wp-admin | 2,211 ▲20 | 5.84 ▲0.93 | 108.20 ▼17.55 | 41.17 ▼8.46 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.00 ▲0.01 | 37.67 ▼11.22 | 33.51 ▼5.49 |
Add New Post /wp-admin/post-new.php | 1,539 ▲9 | 23.19 ▲0.28 | 711.58 ▼25.50 | 62.72 ▲2.37 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.18 ▼0.10 | 103.85 ▼2.62 | 44.13 ▼2.92 |
Watermark /wp-admin/options-general.php?page=marekkis-watermark/index.php | 1,185 | 1.70 | 26.55 | 34.73 |
Watermark-Dir /wp-admin/options-general.php?page=marekkis-watermark/wm_dir.php | 872 | 2.03 | 30.36 | 30.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 23 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=marekkis-watermark/index.php
- > Notice in wp-content/plugins/marekkis-watermark/wm_functions.php+75
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=marekkis-watermark/index.php
- > Notice in wp-content/plugins/marekkis-watermark/wm_functions.php+141
Undefined variable: imageLogo
- > GET request to /wp-admin/options-general.php?page=marekkis-watermark/index.php
- > Warning in wp-content/plugins/marekkis-watermark/wm_functions.php+141
imagedestroy() expects parameter 1 to be resource, null given
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=marekkis-watermark/wm_dir.php
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=marekkis-watermark/wm_dir.php
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 44 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=marekkis-watermark/wm_dir.php
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=marekkis-watermark/wm_dir.php
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
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
Almost there! Just fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WM_PLUGIN_PATH - assumed 'WM_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/marekkis-watermark/index.php on line 41
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/marekkis-watermark/watermark.php:30
- > PHP Warning
opendir(WM_PLUGIN_PATH/fonts): failed to open dir: No such file or directory in wp-content/plugins/marekkis-watermark/index.php on line 50
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/marekkis-watermark/index.php:143
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/marekkis-watermark/wm_dir.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/marekkis-watermark/drop_wm_table.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/marekkis-watermark/wm_functions.php:169
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== marekkis-watermark ===
)
marekkis-watermark/watermark.php 92% from 13 tests
The main file in "Marekkis Watermark-Plugin" v. 0.9.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("marekkis-watermark.php" instead of "watermark.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin792 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 56 | 29 | 792 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
stempel.png | 2.32KB | 1.83KB | ▼ 21.00% |