Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.45ms] Passed 4 tests
Server-side resources used by WooCommerce Product Reorder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.09 ▲2.50 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.19 ▼2.02 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.44 ▼1.14 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.58 ▼13.13 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.69 ▲5.58 |
Reorder Products /wp-admin/admin.php?page=xonja_wc_reorder | 3.20 | 31.84 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
recovery_mode_email_last_sent |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Product Reorder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲227 | 13.38 ▼1.21 | 2.31 ▲0.40 | 44.64 ▼12.75 |
Dashboard /wp-admin | 2,369 ▲189 | 6.08 ▲0.41 | 99.53 ▲3.70 | 40.70 ▲4.42 |
Posts /wp-admin/edit.php | 2,280 ▲180 | 2.58 ▲0.57 | 44.89 ▲6.49 | 35.48 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.32 ▲0.24 | 682.29 ▼27.21 | 41.01 ▼16.41 |
Media Library /wp-admin/upload.php | 1,574 ▲177 | 4.73 ▲0.56 | 116.40 ▲18.26 | 48.87 ▲4.60 |
Reorder Products /wp-admin/admin.php?page=xonja_wc_reorder | 678 | 1.51 | 6.90 | 14.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=xonja_wc_reorder
- > Error in wp-content/plugins/xonja-woocommerce-product-reorder/index.php+24
Uncaught Error: Call to undefined function woocommerce_get_page_id() in wp-content/plugins/xonja-woocommerce-product-reorder/index.php:24
Stack trace:
#0 wp-includes/class-wp-hook.php(310): xonja_wc_reorder_do_page()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/xonja-woocommerce-product-reorder/index.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xonja-woocommerce-product-reorder/classes/Class_Xonja_Reorder_Handler.php:69
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Description of screenshot-1.jpg), #2 (Description of screenshot-2.jpg)
xonja-woocommerce-product-reorder/index.php 85% from 13 tests
The main PHP file in "WooCommerce Product Reorder" ver. 1.00 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("xonja-woocommerce-product-reorder.php" instead of "index.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected575 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 118 | 93 | 344 |
PHP | 2 | 19 | 17 | 111 |
CSS | 1 | 10 | 0 | 94 |
PO File | 1 | 6 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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