Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼147.54ms] Passed 4 tests
Analyzing server-side resources used by watermark
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.09 | 25.51 ▲1.74 |
Dashboard /wp-admin | 3.15 ▲0.09 | 35.48 ▼6.95 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 32.60 ▲0.03 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.08 | 72.57 ▼584.99 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 26.61 ▲4.00 |
Watermark /wp-admin/upload.php?page=alti-watermark-settings-page | 3.10 | 28.95 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- The plugin illegally modified 1 file (0.09KB) outside of "wp-content/plugins/alti-watermark/" and "wp-content/uploads/"
- (new file) wp-content/plugins/alti-watermark-data/watermark.png
Filesystem: 30 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
watermark: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,732 ▲131 | 15.92 ▼0.05 | 7.27 ▲2.45 | 73.81 ▼2.35 |
Dashboard /wp-admin | 2,944 ▲48 | 6.05 ▼0.10 | 115.00 ▼18.31 | 161.18 ▼11.89 |
Posts /wp-admin/edit.php | 2,748 ▲8 | 3.25 ▲0.01 | 62.99 ▼0.94 | 139.28 ▼1.07 |
Add New Post /wp-admin/post-new.php | 2,082 ▼1,622 | 15.68 ▼3.25 | 371.28 ▼61.68 | 159.77 ▲0.96 |
Media Library /wp-admin/upload.php | 1,762 ▲10 | 5.53 ▲0.06 | 143.92 ▲4.09 | 182.34 ▼2.99 |
Watermark /wp-admin/upload.php?page=alti-watermark-settings-page | 1,544 | 2.68 | 58.48 | 201.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/alti-watermark/admin/views/includes/alti-watermark-admin-sidebar.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/alti-watermark/admin/views/alti-watermark-admin-settings-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/alti-watermark/admin/views/includes/alti-watermark-admin-image-size-label.php:1
- > PHP Fatal error
Uncaught Error: Class 'Alti_Watermark' not found in wp-content/plugins/alti-watermark/includes/class-alti-watermark-deactivator.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/alti-watermark/admin/views/includes/alti-watermark-admin-message.php:1
- > PHP Fatal error
Uncaught Error: Class 'Alti_Watermark' not found in wp-content/plugins/alti-watermark/includes/class-alti-watermark-activator.php:5
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (16 tag instead of maximum 10)
alti-watermark/alti-watermark.php 92% from 13 tests
This is the main PHP file of "watermark" version 0.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 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
Everything looks great! No dangerous files found in this plugin1,174 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 198 | 283 | 861 |
PO File | 2 | 66 | 76 | 245 |
CSS | 1 | 1 | 1 | 57 |
JavaScript | 1 | 5 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 3 | 5.77% |
▷ Public methods | 45 | 86.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 13.46% |
Functions | 2 | |
▷ Named functions | 2 | 100.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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin