Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/image-effects-generator/app/filters/black_and_white.php+4
Use of undefined constant yes_please - assumed 'yes_please' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.93MB] [CPU: ▼55.79ms] Passed 4 tests
Analyzing server-side resources used by Image Effects Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.52 ▼37.13 |
Dashboard /wp-admin | 2.09 ▼1.26 | 7.01 ▼49.66 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.27 ▼39.72 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.31 ▼96.63 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 7.01 ▼27.40 |
Image Effects Settings /wp-admin/options-general.php?page=image-effects-generator/settings/settings_page.php | 2.09 | 6.57 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Image Effects Generator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.29 ▼1.08 | 4.16 ▲2.25 | 45.00 ▲5.61 |
Dashboard /wp-admin | 2,210 ▲19 | 5.83 ▼0.07 | 97.85 ▼5.82 | 40.42 ▼6.75 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.06 | 34.18 ▼6.29 | 33.93 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.26 ▼0.02 | 593.64 ▼63.58 | 50.95 ▼3.84 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.02 | 97.76 ▼5.96 | 42.32 ▼2.78 |
Image Effects Settings /wp-admin/options-general.php?page=image-effects-generator/settings/settings_page.php | 830 | 2.07 | 22.28 | 24.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/image-effects-generator/app/filters/black_and_white.php+4
Use of undefined constant yes_please - assumed 'yes_please' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=image-effects-generator/settings/settings_page.php
- > Warning in wp-content/plugins/image-effects-generator/app/filters/pixelate.php+4
Use of undefined constant yes_please - assumed 'yes_please' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=image-effects-generator/settings/settings_page.php
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/image-effects-generator/app/filters/black_and_white.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/image-effects-generator/app/filters/sepia.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/image-effects-generator/app/filters/pixelate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/image-effects-generator/app/filters/sharpen.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-effects-generator/settings/settings_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/image-effects-generator/app/show_sizes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/image-effects-generator/app/filters/blurred.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/image-effects-generator/settings/settings_page_content.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/image-effects-generator/app/filters/black_and_white.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/image-effects-generator/app/filters/negative.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== image-effects-generator ===
) - Screenshots: Screenshot #1 (Displayed on front end) image missing
image-effects-generator/image-effect-generator.php 92% from 13 tests
The main PHP file in "Image Effects Generator" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
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 ("image-effects-generator.php" instead of "image-effect-generator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin352 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 92 | 10 | 352 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 22 | |
▷ Named functions | 22 | 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
PNG images were not found in this plugin