Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼0.43ms] Passed 4 tests
An overview of server-side resources used by Omnify - The Best Scheduling Widgets for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.80 ▲1.93 |
Dashboard /wp-admin | 3.44 ▲0.14 | 53.40 ▲1.39 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.13 ▲1.67 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 82.62 ▼6.70 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.97 ▲3.12 |
Omnify Widget /wp-admin/options-general.php?page=omnify-widget | 3.34 | 33.32 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Omnify - The Best Scheduling Widgets for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.43 ▼0.96 | 2.18 ▲0.45 | 41.23 ▼3.41 |
Dashboard /wp-admin | 2,222 ▲40 | 4.99 ▼0.04 | 96.66 ▼19.02 | 37.25 ▼5.69 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 2.27 ▲0.28 | 37.62 ▲3.22 | 47.74 ▲13.23 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 18.33 ▼4.72 | 613.28 ▲0.42 | 36.12 ▼15.61 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.45 ▲0.17 | 94.67 ▼2.47 | 43.17 ▼0.51 |
Omnify Widget /wp-admin/options-general.php?page=omnify-widget | 869 | 2.39 | 47.38 | 43.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/omnify-widget/admin/partials/omnify-widget-setup-token.php:23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/omnify-widget/admin/partials/omnify-widget-update-iframe.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/omnify-widget/admin/partials/omnify-widget-update-iframe.php on line 3
- > PHP Notice
Undefined index: widget in wp-content/plugins/omnify-widget/admin/partials/omnify-widget-update-button.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/omnify-widget/admin/partials/omnify-widget-update-iframe.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/omnify-widget/admin/partials/omnify-widget-index.php:16
- > PHP Notice
Undefined variable: widget in wp-content/plugins/omnify-widget/admin/partials/omnify-widget-update-iframe.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/omnify-widget/admin/partials/omnify-widget-shortcodes-data.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/omnify-widget/admin/partials/omnify-widget-update-iframe.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/omnify-widget/admin/partials/omnify-widget-create-button.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=omnify-widget
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris&ver=6.3.1 1:28609 "jQuery.Deferred exception: token is not defined" "ReferenceError: token is not defined\n at syncIframeWidgets (/wp-content/plugins/omnify-widget/admin/js/omnify-widget-admin.js?ver=2.0.3:749:99)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/omnify-widget/admin/js/omnify-widget-admin.js?ver=2.0.3:54:13)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=omnify-widget
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris&ver=6.3.1 1:28721 Uncaught ReferenceError: token is not defined
- > GET request to /wp-admin/options-general.php?page=omnify-widget
- > Javascript (severe) in unknown
/wp-content/plugins/omnify-widget/admin/js/omnify-widget-admin.js?ver=2.0.3 800:64 Uncaught ReferenceError: token is not defined
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
omnify-widget/omnify-widget.php Passed 13 tests
The principal PHP file in "Omnify - The Best Scheduling Widgets for WordPress" v. 2.0.3 is loaded by WordPress automatically on each request
112 characters long description:
Easily embed Omnify buttons and iframes onto your existing WordPress website and start selling right from there.
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 detected15,937 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,578 | 33 | 14,143 |
PHP | 19 | 166 | 601 | 1,200 |
JavaScript | 4 | 115 | 170 | 594 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.50% |
Functions | 3 | |
▷ Named functions | 3 | 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
6 PNG files occupy 0.32MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 81.95KB | 31.02KB | ▼ 62.14% |
admin/partials/images/omnifylogo.png | 11.64KB | 4.50KB | ▼ 61.31% |
assets/screenshot-2.png | 35.47KB | 14.49KB | ▼ 59.15% |
admin/partials/images/generate-token.png | 120.89KB | 36.11KB | ▼ 70.13% |
admin/partials/images/copy-token.png | 50.47KB | 13.02KB | ▼ 74.19% |