Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/transparent-image-watermark-plugin/transparent-watermark-plugin.php+78
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.46MB] [CPU: ▼51.89ms] Passed 4 tests
Analyzing server-side resources used by Transparent Image Watermark
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.54 ▼0.93 | 8.96 ▼31.53 |
Dashboard /wp-admin | 2.56 ▼0.79 | 10.62 ▼50.29 |
Posts /wp-admin/edit.php | 2.56 ▼0.80 | 9.51 ▼42.84 |
Add New Post /wp-admin/post-new.php | 2.56 ▼3.33 | 11.70 ▼82.91 |
Media Library /wp-admin/upload.php | 2.56 ▼0.67 | 10.54 ▼27.08 |
Transparent Watermark /wp-admin/options-general.php?page=transparent-watermark-settings | 2.56 | 10.18 |
Server storage [IO: ▲5.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Transparent Image Watermark: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.65 ▼0.78 | 4.50 ▲2.79 | 42.96 ▲2.32 |
Dashboard /wp-admin | 2,213 ▲22 | 4.89 ▼0.99 | 107.54 ▲9.61 | 37.75 ▼5.13 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.04 | 33.96 ▼1.25 | 32.20 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,545 ▲7 | 18.37 ▼4.72 | 598.15 ▼74.48 | 59.45 ▲6.24 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.19 ▼0.10 | 96.61 ▼0.89 | 40.59 ▼4.54 |
Transparent Watermark /wp-admin/options-general.php?page=transparent-watermark-settings | 1,940 | 11.13 | 356.79 | 61.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/transparent-image-watermark-plugin/transparent-watermark-plugin.php+78
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=transparent-watermark-settings
- > Notice in wp-content/plugins/transparent-image-watermark-plugin/transparent-watermark-plugin.php+78
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=transparent-watermark-settings
- > Notice in wp-content/plugins/transparent-image-watermark-plugin/transparent-watermark-plugin.php+78
Trying to access array offset on value of type null
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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/transparent-image-watermark-plugin/transparent-watermark-loader.php:11
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/admin.php): failed to open stream: No such file or directory in wp-content/plugins/transparent-image-watermark-plugin/transparent-watermark-plugin-installer.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/transparent-image-watermark-plugin/transparent-watermark-plugin-installer.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/transparent-image-watermark-plugin/transparent-watermark-plugin-installer.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (General Watermark Settings Page), #2 (Text Watermark Settings Page), #3 (Image Watermark Settings Page), #4 (Watermark Preview Page), #6 (Finished Example Image)
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
transparent-image-watermark-plugin/transparent-watermark-loader.php 92% from 13 tests
Analyzing the main PHP file in "Transparent Image Watermark" version 2.3.15
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("transparent-image-watermark-plugin.php" instead of "transparent-watermark-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,641 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 962 | 316 | 1,615 |
JavaScript | 1 | 10 | 4 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 43.25 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 56 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 22.22% |
Functions | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
watermark-logo.png | 61.89KB | 27.67KB | ▼ 55.30% |