Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.61ms] Passed 4 tests
This is a short check of server-side resources used by Add to order
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 45.98 ▲0.14 |
Dashboard /wp-admin | 3.39 ▲0.00 | 51.72 ▼13.22 |
Posts /wp-admin/edit.php | 3.51 ▲0.11 | 56.07 ▲2.83 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.04 | 99.68 ▲8.57 |
Media Library /wp-admin/upload.php | 3.32 ▲0.04 | 39.61 ▲3.82 |
Add to order /wp-admin/options-general.php?page=mjato | 3.26 | 34.13 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
recovery_mode_email_last_sent |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Add to order: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.35 | 1.74 ▲0.08 | 45.75 ▲4.76 |
Dashboard /wp-admin | 2,202 ▲25 | 5.60 ▼0.05 | 86.15 ▼0.53 | 40.16 ▲2.67 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.97 ▲0.00 | 40.66 ▲0.96 | 38.14 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.06 ▲4.82 | 616.04 ▼23.62 | 63.39 ▲2.96 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.11 ▼0.07 | 103.16 ▲4.80 | 44.77 ▲1.52 |
Add to order /wp-admin/options-general.php?page=mjato | 704 | 1.51 | 6.82 | 23.13 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- recovery_mode_email_last_sent
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=mjato
- > Error in wp-content/plugins/add-to-order/options.php+73
Uncaught Error: Call to undefined function MJATO\wc_get_order_statuses() in wp-content/plugins/add-to-order/options.php:73
Stack trace:
#0 wp-admin/includes/template.php(1824): MJATO\Options->default_status()
#1 wp-admin/includes/template.php(1778): do_settings_fields()
#2 wp-content/plugins/add-to-order/options.php(38): do_settings_sections()
#3 wp-includes/class-wp-hook.php(310): MJATO\Options->options_page()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#8 {main}
thrown- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mjato
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mjato
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function MJATO\\add_action() in wp-content/plugins/add-to-order/options.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
6 plugin tags: wc, add to cart, wc order, woocommerce order, order...
add-to-order/add_to_order.php 85% from 13 tests
The main PHP file in "Add to order" ver. 1.0.0.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-to-order.php" instead of "add_to_order.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin185 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 16 | 148 |
PO File | 1 | 6 | 10 | 31 |
Markdown | 1 | 3 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin