Benchmarks
Plugin footprint 83% from 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.03MB] [CPU: ▼3.97ms] Passed 4 tests
An overview of server-side resources used by WP Image Mask
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.28 ▼3.59 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.20 ▼4.50 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.40 ▼3.13 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.60 ▼4.64 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.65 ▼1.17 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Image Mask
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.58 ▼0.96 | 1.48 ▼0.34 | 40.94 ▼2.66 |
Dashboard /wp-admin | 2,206 ▲24 | 4.85 ▼0.96 | 102.45 ▼2.93 | 39.72 ▼4.50 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.07 | 41.50 ▲6.92 | 36.15 ▼1.40 |
Add New Post /wp-admin/post-new.php | 6,186 ▲4,653 | 19.22 ▼4.16 | 916.65 ▲236.52 | 54.31 ▼0.72 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.21 ▼0.02 | 97.93 ▼2.12 | 41.79 ▼2.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: mask, shortcode, gutenberg, image
wp-image-mask/wp-image-mask.php Passed 13 tests
This is the main PHP file of "WP Image Mask" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
Add the ability to set a mask to image
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin561 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 6 | 1 | 4 | 190 |
PHP | 4 | 37 | 75 | 136 |
JSON | 2 | 0 | 0 | 90 |
JavaScript | 1 | 8 | 49 | 53 |
PO File | 1 | 15 | 18 | 48 |
CSS | 2 | 12 | 23 | 44 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected