Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/watermark-reloaded/watermark-reloaded.php+466
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.25ms] Passed 4 tests
Analyzing server-side resources used by Watermark RELOADED
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 33.49 ▼4.44 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.86 ▼0.67 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.97 ▲0.05 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.50 ▼7.39 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.71 ▼0.49 |
Watermark Reloaded /wp-admin/options-general.php?page=watermark-reloaded/watermark-reloaded.php | 3.22 | 34.23 |
Server storage [IO: ▲4.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
watermark_text |
Browser metrics Passed 4 tests
Watermark RELOADED: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲142 | 13.32 ▼1.08 | 1.76 ▼0.02 | 40.79 ▼5.61 |
Dashboard /wp-admin | 2,283 ▲97 | 4.88 ▼1.03 | 103.72 ▼7.26 | 42.37 ▼6.23 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.01 | 39.91 ▲2.31 | 36.46 ▲3.71 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.46 ▲0.84 | 687.02 ▲5.17 | 52.97 ▼1.18 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▲0.01 | 93.10 ▼5.43 | 41.24 ▼4.45 |
Watermark Reloaded /wp-admin/options-general.php?page=watermark-reloaded/watermark-reloaded.php | 1,211 | 1.95 | 32.35 | 32.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- watermark_text
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/watermark-reloaded/watermark-loader.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/watermark-reloaded/watermark-reloaded.php:440
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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: Please add images for these screenshots: #1 (Screenshot of Watermark RELOADED settings page), #2 (Example of a picture watermarked with above settings), #3 (Teaser screenshot of Watermark RELOADED Pro settings page)
watermark-reloaded/watermark-loader.php 92% from 13 tests
The principal PHP file in "Watermark RELOADED" v. 1.3.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("watermark-reloaded.php" instead of "watermark-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,045 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 796 | 660 | 3,790 |
PHP | 2 | 140 | 225 | 653 |
CSS | 3 | 11 | 2 | 419 |
HTML | 1 | 1 | 0 | 183 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 50.00% |
▷ Protected methods | 1 | 3.57% |
▷ Private methods | 13 | 46.43% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
23 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jQueryPlugins/colorpicker/images/custom_submit.png | 0.97KB | 0.99KB | 0.00% |
jQueryPlugins/colorpicker/images/colorpicker_background.png | 1.85KB | 2.14KB | 0.00% |
jQueryPlugins/colorpicker/images/custom_hex.png | 0.55KB | 0.39KB | ▼ 28.11% |
jQueryPlugins/colorpicker/images/custom_hsb_s.png | 1.14KB | 0.89KB | ▼ 21.75% |
jQueryPlugins/colorpicker/images/custom_hsb_h.png | 0.95KB | 0.73KB | ▼ 23.40% |