Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/woptifications/admin/redux-framework/inc/class.redux_filesystem.php+29
Creating default object from empty value
Server metrics [RAM: ▼0.73MB] [CPU: ▼50.41ms] Passed 4 tests
An overview of server-side resources used by Woptifications
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.27 ▼0.19 | 13.52 ▼27.64 |
Dashboard /wp-admin | 3.29 ▼0.06 | 15.47 ▼51.58 |
Posts /wp-admin/edit.php | 3.29 ▼0.07 | 14.51 ▼40.38 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.60 | 15.65 ▼82.05 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 12.87 ▼22.42 |
Redux Framework /wp-admin/tools.php?page=redux-about | 3.29 | 14.08 |
Content settings /wp-admin/admin.php?page=woptifications_options_options&tab=3 | 3.29 | 14.18 |
Notification type /wp-admin/admin.php?page=woptifications_options_options&tab=1 | 3.29 | 14.54 |
Options Object /wp-admin/admin.php?page=woptifications_options_options&tab=10 | 3.29 | 19.59 |
Hooks settings /wp-admin/admin.php?page=woptifications_options_options&tab=2 | 3.29 | 15.63 |
Import / Export /wp-admin/admin.php?page=woptifications_options_options&tab=11 | 3.29 | 13.32 |
Notification settings /wp-admin/admin.php?page=woptifications_options_options&tab=7 | 3.29 | 17.96 |
Server storage [IO: ▲5.53MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 528 new files
Database: no new tables, 9 new options
New WordPress options |
---|
woptifications_options |
widget_recent-posts |
redux_version_upgraded_from |
can_compress_scripts |
woptifications_options-transients |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Woptifications
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,055 ▲309 | 14.13 ▼0.18 | 10.36 ▲8.68 | 42.91 ▼0.87 |
Dashboard /wp-admin | 2,357 ▲172 | 4.96 ▼0.88 | 95.10 ▼10.91 | 82.49 ▲40.31 |
Posts /wp-admin/edit.php | 2,174 ▲85 | 1.97 ▼0.06 | 33.01 ▼4.95 | 33.06 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,753 ▲234 | 24.60 ▲1.41 | 621.52 ▼62.67 | 29.07 ▼21.75 |
Media Library /wp-admin/upload.php | 1,468 ▲86 | 4.15 ▼0.06 | 107.99 ▲6.29 | 76.76 ▲34.16 |
Redux Framework /wp-admin/tools.php?page=redux-about | 1,153 | 3.64 | 73.70 | 72.05 |
Content settings /wp-admin/admin.php?page=woptifications_options_options&tab=3 | 3,694 | 9.90 | 243.71 | 138.67 |
Notification type /wp-admin/admin.php?page=woptifications_options_options&tab=1 | 3,657 | 10.02 | 233.77 | 102.41 |
Options Object /wp-admin/admin.php?page=woptifications_options_options&tab=10 | 3,645 | 9.96 | 229.72 | 95.50 |
Hooks settings /wp-admin/admin.php?page=woptifications_options_options&tab=2 | 3,655 | 9.70 | 218.26 | 96.88 |
Import / Export /wp-admin/admin.php?page=woptifications_options_options&tab=11 | 3,646 | 9.97 | 234.17 | 96.29 |
Notification settings /wp-admin/admin.php?page=woptifications_options_options&tab=7 | 3,676 | 9.95 | 240.43 | 110.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/woptifications/admin/redux-framework/inc/class.redux_filesystem.php+29
Creating default object from empty value
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- redux_version_upgraded_from
- woptifications_options
- woptifications_options-transients
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 13 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=7
- > Warning in wp-content/plugins/woptifications/admin/redux-framework/inc/class.redux_filesystem.php+29
Creating default object from empty value
- 52 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=7
- > Notice in wp-content/plugins/woptifications/admin/options-init.php+158
Undefined index: user_custom_fields
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=7
- > Notice in wp-content/plugins/woptifications/inc/new_publish.php+14
Undefined property: woptificationsNewPublish::$woptifications_options
- 49 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=7
- > Notice in wp-content/plugins/woptifications/inc/new_publish.php+145
Trying to access array offset on value of type null
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=7
- > Notice in wp-content/plugins/woptifications/inc/enqueue_scripts.php+82
Undefined variable: cat_match
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=7
- > Notice in wp-content/plugins/woptifications/inc/enqueue_scripts.php+83
Undefined variable: product_cat_match
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=7
- > Notice in wp-content/plugins/woptifications/inc/enqueue_scripts.php+84
Undefined variable: push_icon
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=7
- > Error in wp-includes/Requests/src/Exception/InvalidArgument.php+29
Uncaught WpOrg\Requests\Exception\InvalidArgument: WpOrg\Requests\Cookie::__construct(): Argument #1 ($name) must be of type string, integer given in wp-includes/Requests/src/Exception/InvalidArgument.php:29
Stack trace:
#0 wp-includes/Requests/src/Cookie.php(84): WpOrg\Requests\Exception\InvalidArgument::create()
#1 wp-includes/class-wp-http.php(472): WpOrg\Requests\Cookie->__construct()
#2 wp-includes/class-wp-http.php(352): WP_Http::normalize_cookies()
#3 wp-includes/http.php(150): WP_Http->request()
#4 wp-content/plugins/woptifications/admin/redux-framework/inc/class.p.php(230): wp_remote_request()
#5 wp-includes/class-wp-hook.php(310): Redux_P->proxy()
#6 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#7 wp-includes/plugin.php(517): WP_Hook->do_action()
#8 wp-admin/admin-ajax.php(188): do_action()
#9 {ma
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
The following issues need your attention
- 30× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/woptifications/admin/redux-framework/inc/themecheck/checks/full_package.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woptifications/admin/redux-framework/templates/panel/footer.tpl.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woptifications/admin/redux-framework/templates/panel/content.tpl.php:12
- > PHP Fatal error
Uncaught Error: Class 'Redux' not found in wp-content/plugins/woptifications/woptifications_Plugin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woptifications/admin/redux-framework/inc/welcome/views/about.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woptifications/admin/redux-framework/inc/welcome/views/support.php:2
- > PHP Fatal error
Uncaught Error: Class 'Redux_Customizer_Control' not found in wp-content/plugins/woptifications/admin/redux-framework/inc/extensions/customizer/inc/customizer_fields.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/woptifications/admin/redux-framework/inc/extensions/customizer/inc/customizer_devs.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woptifications/admin/redux-framework/templates/panel/menu_container.tpl.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woptifications/inc/user_registration.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=7
- > Network (severe)
wp-admin/admin-ajax.php?action=redux_p&nonce=c8ec9e72b7&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dc8ec9e72b7%26url%3D - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=3
- > Security (severe) in unknown
/wp-admin/admin.php?page=woptifications_options_options&tab=3 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=c8ec9e72b7&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dc8ec9e72b7%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=1
- > Security (severe) in unknown
/wp-admin/admin.php?page=woptifications_options_options&tab=1 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=c8ec9e72b7&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dc8ec9e72b7%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=10
- > Security (severe) in unknown
/wp-admin/admin.php?page=woptifications_options_options&tab=10 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=c8ec9e72b7&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dc8ec9e72b7%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=2
- > Security (severe) in unknown
/wp-admin/admin.php?page=woptifications_options_options&tab=2 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=c8ec9e72b7&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dc8ec9e72b7%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=11
- > Security (severe) in unknown
/wp-admin/admin.php?page=woptifications_options_options&tab=11 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=c8ec9e72b7&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dc8ec9e72b7%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
- > GET request to /wp-admin/admin.php?page=woptifications_options_options&tab=7
- > Security (severe) in unknown
/wp-admin/admin.php?page=woptifications_options_options&tab=7 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=c8ec9e72b7&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dc8ec9e72b7%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
woptifications/woptifications.php 92% from 13 tests
"Woptifications" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin43,208 lines of code in 402 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 3,903 | 5,494 | 16,692 |
JavaScript | 170 | 3,267 | 2,579 | 15,434 |
Sass | 54 | 1,181 | 60 | 7,568 |
CSS | 51 | 146 | 59 | 1,060 |
JSON | 2 | 184 | 0 | 945 |
SVG | 1 | 0 | 0 | 934 |
PO File | 2 | 111 | 117 | 336 |
Markdown | 2 | 44 | 0 | 103 |
LESS | 2 | 2 | 0 | 81 |
Bourne Shell | 1 | 24 | 0 | 55 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 30.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 880.00 |
Average method complexity | 6.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 110 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 110 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 598 | |
▷ Static methods | 101 | 16.89% |
▷ Public methods | 457 | 76.42% |
▷ Protected methods | 91 | 15.22% |
▷ Private methods | 50 | 8.36% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 57 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 57 | 100.00% |
▷ Public constants | 57 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
33 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/redux-framework/inc/fields/spinner/arrow_right.png | 0.15KB | 0.12KB | ▼ 18.18% |
admin/redux-framework/assets/img/3cr.png | 2.98KB | 0.34KB | ▼ 88.66% |
admin/redux-framework/inc/fields/spinner/arrow_left.png | 0.15KB | 0.12KB | ▼ 16.67% |
admin/redux-framework/inc/fields/switch/slider-control.png | 1.65KB | 0.75KB | ▼ 54.62% |
admin/redux-framework/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |