Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/simple-watermark/simple-watermark-loader.php+76
Undefined index: action
Server metrics [RAM: ▲0.31MB] [CPU: ▲2.69ms] Passed 4 tests
This is a short check of server-side resources used by Simple Watermark
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 52.52 ▲12.97 |
Dashboard /wp-admin | 3.65 ▲0.35 | 50.93 ▲1.23 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 58.44 ▲5.29 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 105.51 ▲4.09 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 39.40 ▲0.13 |
Simple Watermark /wp-admin/options-general.php?page=simple-watermark-settings | 3.38 | 29.51 |
Server storage [IO: ▲3.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Watermark
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.30 ▼1.08 | 1.80 ▼0.40 | 39.30 ▼2.99 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.02 | 110.68 ▲4.32 | 40.12 ▼1.77 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.02 | 40.00 ▲2.29 | 34.48 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.12 ▼0.32 | 597.49 ▼30.40 | 51.28 ▼1.33 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.21 ▼0.01 | 103.53 ▼9.82 | 44.44 ▼1.24 |
Simple Watermark /wp-admin/options-general.php?page=simple-watermark-settings | 1,780 | 9.95 | 298.05 | 45.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/simple-watermark/simple-watermark-loader.php+54
opendir(wp-content/watermark-cache/): failed to open dir: No such file or directory
- The uninstall procedure has failed, leaving 6 options in the database
- 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 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=simple-watermark-settings
- > Notice in wp-content/plugins/simple-watermark/simple-watermark-plugin.php+671
Undefined property: Simple_Watermark_Plugin::$youtube_id
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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-watermark/simple-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/simple-watermark/simple-watermark-plugin-installer.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-watermark/simple-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/simple-watermark/simple-watermark-plugin-installer.php on line 7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 17 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (General Watermark Settings Page), #2 (Image Watermark Settings Page), #3 (Text Watermark Settings Page), #4 (Watermark Preview Page)
simple-watermark/simple-watermark-loader.php 92% from 13 tests
The principal PHP file in "Simple Watermark" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-watermark.php" instead of "simple-watermark-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,433 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 859 | 296 | 1,433 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 41.75 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 69 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 52 | 75.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 24.64% |
Functions | 8 | |
▷ Named functions | 8 | 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.05MB 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 | 49.13KB | 23.52KB | ▼ 52.14% |