Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▼3.23ms] Passed 4 tests
Analyzing server-side resources used by Image Watermark WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 42.13 ▼4.38 |
Dashboard /wp-admin | 3.58 ▲0.27 | 48.26 ▼9.18 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 55.03 ▲9.09 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 97.14 ▼4.58 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 40.13 ▲5.21 |
Watermark /wp-admin/options-general.php?page=watermark-options | 3.50 | 39.43 |
Server storage [IO: ▲2.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Image Watermark WP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 13.29 ▼1.09 | 4.86 ▲2.69 | 42.56 ▼2.71 |
Dashboard /wp-admin | 2,225 ▲19 | 4.84 ▼1.05 | 108.70 ▲1.59 | 42.73 ▼0.90 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.04 | 41.01 ▲4.26 | 35.57 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,552 ▲20 | 23.37 ▲0.22 | 668.28 ▼51.25 | 69.19 ▲12.03 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.28 ▲0.01 | 99.06 ▼2.68 | 42.63 ▼0.92 |
Watermark /wp-admin/options-general.php?page=watermark-options | 1,540 | 3.51 | 62.94 | 71.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/image-watermark-wp/image-watermark-wp.php+117
Undefined index: image_watermark_image
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=watermark-options
- > Network (severe)
http://logicsfort.com/img/paypal-donate-button.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=watermark-options
- > Network (severe)
http://www.logicsfort.com/img/c-logo.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (/assets/watermark-screenshot-1.png), #2 (/assets/watermark-screenshot-2.png), #3 (/assets/watermark-screenshot-3.png)
image-watermark-wp/image-watermark-wp.php 92% from 13 tests
The main PHP script in "Image Watermark WP" version 1.0.3 is automatically included on every request by WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,676 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 395 | 532 | 920 |
PHP | 2 | 186 | 236 | 819 |
CSS | 2 | 39 | 160 | 608 |
JavaScript | 3 | 32 | 21 | 329 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 162.00 |
▷ Minimum class complexity | 162.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 4.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 86.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 13.95% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 2.43MB with 1.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 608.52KB | 234.69KB | ▼ 61.43% |
css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/bg_fallback.png | 3.63KB | 0.30KB | ▼ 91.72% |
css/images/slider_handles@2x.png | 3.52KB | 2.66KB | ▼ 24.54% |
assets/watermark-screenshot-2.png | 115.83KB | 33.89KB | ▼ 70.74% |