84% ultimate-watermark

Code Review | Image Watermark Plugin for WordPress, WordPress Watermark Plugin, Add Watermark on WordPress - Ultimate Watermark

WordPress plugin Image Watermark Plugin for WordPress, WordPress Watermark Plugin, Add Watermark on WordPress - Ultimate Watermark scored84%from 54 tests.

About plugin

  • Plugin page: ultimate-watermark
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 20, 2019
  • Latest release: Nov 25, 2023
  • Number of updates: 12
  • Update frequency: every 144.9 days
  • Top authors: mantrabrain (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /11,257 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.41MB] [CPU: ▼1.12ms] Passed 4 tests

An overview of server-side resources used by Image Watermark Plugin for WordPress, WordPress Watermark Plugin, Add Watermark on WordPress - Ultimate Watermark
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4137.14 ▼2.72
Dashboard /wp-admin3.73 ▲0.4347.40 ▼2.47
Posts /wp-admin/edit.php3.78 ▲0.4346.99 ▲0.31
Add New Post /wp-admin/post-new.php6.27 ▲0.3892.22 ▲0.42
Media Library /wp-admin/upload.php3.70 ▲0.4738.49 ▲6.05

Server storage [IO: ▲0.26MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
ultimate_watermark_plugin_db_version
can_compress_scripts
theysaidso_admin_options
db_upgraded
ultimate_watermark_plugin_version
ultimate_watermark_install_date
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Image Watermark Plugin for WordPress, WordPress Watermark Plugin, Add Watermark on WordPress - Ultimate Watermark: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7014.40 ▲0.071.82 ▲0.0235.87 ▼6.76
Dashboard /wp-admin2,206 ▲315.61 ▼0.0194.08 ▼22.7736.91 ▼8.99
Posts /wp-admin/edit.php2,120 ▲172.02 ▲0.0139.84 ▼3.8035.15 ▼5.84
Add New Post /wp-admin/post-new.php1,541 ▲723.21 ▼0.01591.17 ▼56.1750.42 ▼8.33
Media Library /wp-admin/upload.php1,478 ▲784.20 ▲0.0596.15 ▼0.5644.42 ▲2.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • ultimate_watermark_install_date
    • widget_theysaidso_widget
    • ultimate_watermark_plugin_db_version
    • can_compress_scripts
    • db_upgraded
    • ultimate_watermark_plugin_version
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Ultimate_Watermark\\Admin\\Settings\\Base' not found in wp-content/plugins/ultimate-watermark/includes/Admin/Settings/Image_Watermark.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: image, watermark, picture, media, photo

ultimate-watermark/ultimate-watermark.php Passed 13 tests

The entry point to "Image Watermark Plugin for WordPress, WordPress Watermark Plugin, Add Watermark on WordPress - Ultimate Watermark" version 1.0.11 is a PHP file that has certain tags in its header comment area
43 characters long description:
Image Watermark plugin for WordPress media.

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 detected5,075 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP318058733,122
CSS242481,223
JavaScript691122725
JSON1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity24.95
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity4.70
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes21
▷ Abstract classes14.76%
▷ Concrete classes2095.24%
▷ Final classes15.00%
Methods137
▷ Static methods4230.66%
▷ Public methods11684.67%
▷ Protected methods00.00%
▷ Private methods2115.33%
Functions32
▷ Named functions3196.88%
▷ Anonymous functions13.12%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected