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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.87MB] [CPU: ▼4.49ms] Passed 4 tests
An overview of server-side resources used by Watermark Images, Stamp Images, WooCommerce Image Watermark, Product Watermark for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲0.86 | 45.46 ▲9.16 |
Dashboard /wp-admin | 4.17 ▲0.87 | 47.50 ▼12.67 |
Posts /wp-admin/edit.php | 4.22 ▲0.87 | 50.47 ▲0.49 |
Add New Post /wp-admin/post-new.php | 6.76 ▲0.88 | 89.24 ▼11.04 |
Media Library /wp-admin/upload.php | 4.09 ▲0.87 | 37.72 ▲5.28 |
Bulk Apply /wp-admin/edit.php?post_type=gpls-wmfw-watermark&page=gpls-wmfw-watermark-image-for-wordpress-bulk-apply-tab | 4.12 | 38.32 |
Watermarks Templates /wp-admin/edit.php?post_type=gpls-wmfw-watermark | 4.14 | 37.10 |
Add New /wp-admin/post-new.php?post_type=gpls-wmfw-watermark | 4.09 | 42.88 |
Single Editor /wp-admin/edit.php?post_type=gpls-wmfw-watermark&page=gpls-wmfw-watermark-image-for-wordpress-single-apply-tab | 3.93 | 31.39 |
Settings /wp-admin/edit.php?post_type=gpls-wmfw-watermark&page=gpls-wmfw-watermark-image-for-wordpress-settings-tab | 4.10 | 33.78 |
Server storage [IO: ▲8.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Watermark Images, Stamp Images, WooCommerce Image Watermark, Product Watermark for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.21 ▼0.14 | 2.13 ▲0.49 | 44.11 ▲2.35 |
Dashboard /wp-admin | 2,238 ▲58 | 5.56 ▼0.09 | 81.28 ▼6.88 | 79.07 ▲39.70 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.00 ▲0.03 | 35.63 ▼5.80 | 36.29 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,713 ▲187 | 22.18 ▼0.93 | 745.42 ▲98.37 | 47.42 ▼1.25 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.14 ▼0.10 | 94.00 ▼7.05 | 71.69 ▲24.67 |
Bulk Apply /wp-admin/edit.php?post_type=gpls-wmfw-watermark&page=gpls-wmfw-watermark-image-for-wordpress-bulk-apply-tab | 1,329 | 3.71 | 47.84 | 81.82 |
Watermarks Templates /wp-admin/edit.php?post_type=gpls-wmfw-watermark | 1,109 | 1.93 | 30.52 | 24.78 |
Add New /wp-admin/post-new.php?post_type=gpls-wmfw-watermark | 3,301 | 4.64 | 89.66 | 83.23 |
Single Editor /wp-admin/edit.php?post_type=gpls-wmfw-watermark&page=gpls-wmfw-watermark-image-for-wordpress-single-apply-tab | 2,084 | 3.87 | 54.28 | 27.56 |
Settings /wp-admin/edit.php?post_type=gpls-wmfw-watermark&page=gpls-wmfw-watermark-image-for-wordpress-settings-tab | 1,622 | 3.58 | 42.68 | 82.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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
- 15 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=gpls-wmfw-watermark&page=gpls-wmfw-watermark-image-for-wordpress-settings-tab
- > Warning in wp-admin/includes/file.php+152
opendir(wp-content/uploads/gpls-wmfw-watermark-image-for-wordpress/): failed to open dir: No such file or directory
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 take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WMFW\\Watermark_Base' not found in wp-content/plugins/watermark-images-for-wp-and-woo-grandpluginswp/includes/class-imagick-image.php:10
- > PHP Fatal error
Trait 'GPLSCore\\GPLS_PLUGIN_WMFW\\Helpers' not found in wp-content/plugins/watermark-images-for-wp-and-woo-grandpluginswp/includes/class-apply-watermarks-queries.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WMFW\\Watermark_Base' not found in wp-content/plugins/watermark-images-for-wp-and-woo-grandpluginswp/includes/class-gd-image.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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:
- Screenshots: Please describe screenshot #5 in watermark-images-for-wp-and-woo-grandpluginswp/assets to your readme.txt
watermark-images-for-wp-and-woo-grandpluginswp/gpls-wmfw-watermark-image-for-wordpress.php 92% from 13 tests
Analyzing the main PHP file in "Watermark Images, Stamp Images, WooCommerce Image Watermark, Product Watermark for WooCommerce" version 1.1.6
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("watermark-images-for-wp-and-woo-grandpluginswp.php" instead of "gpls-wmfw-watermark-image-for-wordpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin4,805 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 623 | 1,638 | 4,792 |
JavaScript | 10 | 0 | 19 | 8 |
CSS | 5 | 0 | 5 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 30.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 191 | |
▷ Static methods | 120 | 62.83% |
▷ Public methods | 168 | 87.96% |
▷ Protected methods | 8 | 4.19% |
▷ Private methods | 15 | 7.85% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
10 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/dist/images/full-logo.png | 6.58KB | 3.86KB | ▼ 41.28% |
core/assets/images/woo-quick-view-and-buy-now.png | 23.32KB | 8.67KB | ▼ 62.81% |
core/assets/dist/images/logo-icon-md.png | 0.91KB | 0.96KB | 0.00% |
core/assets/images/image-sizes-controller.png | 13.06KB | 5.90KB | ▼ 54.82% |
core/assets/dist/images/logo-icon-sm.png | 0.62KB | 0.72KB | 0.00% |