Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/scissors-watermark/functions.php+1476
Methods with the same name as their class will not be constructors in a future version of PHP; Scissors has a deprecated constructor
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.23ms] Passed 4 tests
Analyzing server-side resources used by Scissors and Watermark
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.82 ▲1.84 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.33 ▼5.55 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 44.44 ▼2.93 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 80.31 ▼14.91 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.21 ▼1.52 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 23 new options
New WordPress options |
---|
scissors_watermark_size |
large_adaptive |
scissors_watermark_path |
medium_crop |
scissors_crop_defaultaspect |
medium_adaptive |
scissors_crop_defaultreir |
large_crop |
widget_recent-comments |
scissors_watermark_size_relative |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Scissors and Watermark
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.21 ▼1.17 | 1.68 ▼0.29 | 44.55 ▼1.55 |
Dashboard /wp-admin | 2,226 ▲41 | 4.80 ▼0.09 | 96.15 ▼2.52 | 41.84 ▲2.72 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.15 ▲0.09 | 34.49 ▼2.12 | 34.71 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,544 ▲25 | 17.43 ▼5.60 | 682.44 ▼8.50 | 54.62 ▼2.00 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.30 ▲0.00 | 108.98 ▼5.84 | 49.34 ▲1.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 23 options
- scissors_watermark_path
- large_crop
- theysaidso_admin_options
- widget_recent-comments
- scissors_watermark_size
- scissors_watermark_halign
- scissors_crop_useraspectx
- can_compress_scripts
- widget_theysaidso_widget
- scissors_watermark_size_relative
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/scissors-watermark/functions.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== scissors-watermark ===
) - Screenshots: Please add images for these screenshots: #1 (Cropping a picture from within WordPress), #2 (Extended media settings for automatic resizing, cropping, and watermarking)
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
scissors-watermark/scissors-and-watermark.php 85% from 13 tests
The primary PHP file in "Scissors and Watermark" version 3.2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("scissors-watermark.php" instead of "scissors-and-watermark.php")
- Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,802 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 19 | 1,277 | 1,905 | 2,904 |
PHP | 2 | 237 | 131 | 1,469 |
JavaScript | 4 | 44 | 30 | 383 |
CSS | 2 | 6 | 1 | 46 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 5.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 63 | |
▷ Named functions | 63 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/checkers.png | 0.11KB | 0.09KB | ▼ 13.51% |
screenshot-2.png | 72.48KB | 28.95KB | ▼ 60.05% |