Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.22ms] Passed 4 tests
An overview of server-side resources used by Next Watermark
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 38.92 ▲2.33 |
Dashboard /wp-admin | 3.37 ▲0.06 | 33.27 ▼12.48 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 45.11 ▼2.07 |
Add New Post /wp-admin/post-new.php | 5.60 ▼0.29 | 70.65 ▼19.80 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.24 ▲1.46 |
Watermark Image /wp-admin/admin.php?page=nwm-acp&tab=wm_image | 3.78 | 46.85 |
Watermark Text /wp-admin/admin.php?page=nwm-acp&tab=wm_text | 3.78 | 46.64 |
Backup/Restore /wp-admin/admin.php?page=nwm-acp&tab=wm_media | 3.78 | 45.40 |
Next Watermark /wp-admin/admin.php?page=nwm-acp | 3.78 | 49.31 |
General Settings /wp-admin/admin.php?page=nwm-acp&tab=wm_settings | 3.78 | 46.62 |
Server storage [IO: ▲3.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
nwmCurrentType |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
nwmCurrentVersion |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Next Watermark
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲207 | 14.70 ▲0.41 | 1.71 ▼0.14 | 41.06 ▼1.31 |
Dashboard /wp-admin | 2,359 ▲182 | 6.18 ▲0.53 | 109.81 ▲22.27 | 81.82 ▲42.02 |
Posts /wp-admin/edit.php | 2,302 ▲202 | 3.41 ▲1.33 | 52.00 ▲18.07 | 63.56 ▲24.61 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 23.11 ▼0.63 | 629.92 ▼60.50 | 36.76 ▼10.96 |
Media Library /wp-admin/upload.php | 1,445 ▲48 | 4.18 ▼0.03 | 82.97 ▼29.51 | 83.20 ▲34.91 |
Watermark Image /wp-admin/admin.php?page=nwm-acp&tab=wm_image | 1,322 | 3.28 | 40.31 | 93.56 |
Watermark Text /wp-admin/admin.php?page=nwm-acp&tab=wm_text | 1,356 | 3.23 | 40.80 | 62.92 |
Backup/Restore /wp-admin/admin.php?page=nwm-acp&tab=wm_media | 1,103 | 3.29 | 40.99 | 71.96 |
Next Watermark /wp-admin/admin.php?page=nwm-acp | 1,221 | 3.27 | 42.46 | 72.76 |
General Settings /wp-admin/admin.php?page=nwm-acp&tab=wm_settings | 1,221 | 3.19 | 42.13 | 73.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- nwmCurrentType
- nwmCurrentVersion
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/next-watermark/next-watermark.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/next-watermark/includes/nwm-acp-page.php:169
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/next-watermark/includes/nwm-functions.php:55
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=nwm-acp&tab=wm_text
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'value')" "TypeError: Cannot read properties of null (reading 'value')\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=nwm-acp&tab=wm_text:226:78)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=nwm-acp&tab=wm_text
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'value')
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:
- Requires php: The plugin version is formatted incorrectly
- Tags: You are using too many tags: 11 tag instead of maximum 10
next-watermark/next-watermark.php 92% from 13 tests
The primary PHP file in "Next Watermark" version 1.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 171 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,818 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 181 | 16 | 1,500 |
PO File | 1 | 105 | 109 | 222 |
CSS | 1 | 3 | 0 | 69 |
JavaScript | 1 | 5 | 1 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.22KB | 1.30KB | 0.00% |