Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/cyberprojekt-image-watermark/libs/Config/trait-config-set_data-main.php+17
array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
Server metrics [RAM: ▼1.29MB] [CPU: ▼55.21ms] Passed 4 tests
Analyzing server-side resources used by CyberProjekt Image Watermark
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.69 ▼0.77 | 8.86 ▼36.77 |
Dashboard /wp-admin | 2.71 ▼0.59 | 10.39 ▼42.21 |
Posts /wp-admin/edit.php | 2.71 ▼0.64 | 10.08 ▼42.53 |
Add New Post /wp-admin/post-new.php | 2.71 ▼3.17 | 9.23 ▼99.34 |
Media Library /wp-admin/upload.php | 2.71 ▼0.52 | 12.66 ▼23.96 |
Image Watermark /wp-admin/options-general.php?page=image_watermark | 2.71 | 10.85 |
Server storage [IO: ▲6.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 156 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for CyberProjekt Image Watermark
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.31 ▲0.09 | 1.82 ▲0.33 | 44.16 ▲2.46 |
Dashboard /wp-admin | 2,196 ▲19 | 5.65 ▼0.06 | 94.41 ▲6.61 | 41.85 ▼1.92 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.08 | 33.48 ▼6.86 | 33.66 ▼2.65 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 17.80 ▼5.55 | 623.46 ▼36.35 | 51.68 ▼7.21 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.05 | 106.35 ▲4.90 | 45.29 ▼2.31 |
Image Watermark /wp-admin/options-general.php?page=image_watermark | 1,728 | 3.66 | 80.93 | 88.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/cyberprojekt-image-watermark/libs/Config/trait-config-set_data-main.php+17
array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 66 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=image_watermark
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/cyberprojekt-image-watermark/libs/Config/trait-config-set_data-main.php+17
array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
- > GET request to /wp-admin/options-general.php?page=image_watermark
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/cyberprojekt-image-watermark/libs/class-dispatcher.php+36
filter_input(): FILTER_SANITIZE_MAGIC_QUOTES is deprecated, use FILTER_SANITIZE_ADD_SLASHES instead
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Cyberprojekt\\Iw\\Parser\\Parser' not found in wp-content/plugins/cyberprojekt-image-watermark/libs/Parser/class-parser-gif.php:9
- > PHP Fatal error
Trait 'Cyberprojekt\\Iw\\Config\\Config_To_Flat_Array' not found in wp-content/plugins/cyberprojekt-image-watermark/libs/Config/class-config.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Cyberprojekt\\Iw\\Form\\Element' not found in wp-content/plugins/cyberprojekt-image-watermark/libs/Form/class-text.php:9
- > PHP Fatal error
Trait 'Cyberprojekt\\Iw\\Config\\Config_To_Flat_Array' not found in wp-content/plugins/cyberprojekt-image-watermark/libs/Config/class-config-image.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Cyberprojekt\\Iw\\Form\\Element' not found in wp-content/plugins/cyberprojekt-image-watermark/libs/Form/class-hidden.php:4
- > PHP Fatal error
Trait 'Cyberprojekt\\Iw\\Config\\Config_To_Flat_Array' not found in wp-content/plugins/cyberprojekt-image-watermark/libs/Config/class-config-text.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Cyberprojekt\\Iw\\Form\\Multi' not found in wp-content/plugins/cyberprojekt-image-watermark/libs/Form/class-select.php:4
- > PHP Fatal error
Uncaught Error: Class 'Cyberprojekt\\Iw\\Controller\\Ajax_Controller' not found in wp-content/plugins/cyberprojekt-image-watermark/libs/Controller/class-watermark-multiple-controller.php:13
- > PHP Fatal error
Uncaught Error: Class 'Cyberprojekt\\Iw\\Form\\Radio_Checkbox' not found in wp-content/plugins/cyberprojekt-image-watermark/libs/Form/class-checkbox.php:4
- > PHP Fatal error
Uncaught Error: Class 'Cyberprojekt\\Iw\\Controller\\Ajax_Controller' not found in wp-content/plugins/cyberprojekt-image-watermark/libs/Controller/class-font-image-preview-controller.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg), #3 (screenshot-3.jpg), #4 (screenshot-4.jpg), #5 (screenshot-5.jpg)
cyberprojekt-image-watermark/cyberprojekt_image_watermark.php 92% from 13 tests
"CyberProjekt Image Watermark" version 0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("cyberprojekt-image-watermark.php" instead of "cyberprojekt_image_watermark.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected7,907 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 586 | 1,300 | 5,196 |
JSON | 1 | 0 | 0 | 1,455 |
JavaScript | 1 | 26 | 12 | 712 |
CSS | 1 | 42 | 14 | 283 |
PO File | 1 | 106 | 114 | 233 |
Markdown | 1 | 10 | 0 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 56 | |
▷ Abstract classes | 7 | 12.50% |
▷ Concrete classes | 49 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 256 | |
▷ Static methods | 9 | 3.52% |
▷ Public methods | 189 | 73.83% |
▷ Protected methods | 65 | 25.39% |
▷ Private methods | 2 | 0.78% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/pics.png | 7.01KB | 1.22KB | ▼ 82.59% |
inc/images/settings.png | 7.44KB | 1.64KB | ▼ 77.91% |
inc/images/browser.png | 4.37KB | 1.96KB | ▼ 55.19% |
inc/images/reload.png | 1.36KB | 1.39KB | 0.00% |
inc/images/jquery.minicolors.png | 75.64KB | 34.31KB | ▼ 54.64% |