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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.84ms] Passed 4 tests
This is a short check of server-side resources used by Order Audit Log for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.68 ▲0.13 |
Dashboard /wp-admin | 3.31 ▲0.00 | 56.28 ▲5.24 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.32 ▼6.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.18 ▼6.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.43 ▼2.74 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Order Audit Log for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.33 ▼0.33 | 1.96 ▲0.36 | 44.89 ▼0.03 |
Dashboard /wp-admin | 2,195 ▲31 | 5.59 ▲0.01 | 86.41 ▼21.41 | 40.03 ▼2.94 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.03 | 38.49 ▼3.65 | 34.57 ▼5.91 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.08 ▲0.03 | 669.78 ▼28.00 | 50.62 ▼12.82 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.00 | 95.29 ▼23.28 | 45.99 ▼5.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/order-audit-log-for-woocommerce/ic-woocommerce-audit-log-lite.php:24
- > PHP Fatal error
Uncaught Error: Class 'ic_commerce_audit_log_lite_function' not found in wp-content/plugins/order-audit-log-for-woocommerce/include/ic_commerce_audit_log_lite_class.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, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Order Audit Log Report), #2 (Audit Log Setting)
order-audit-log-for-woocommerce/ic-woocommerce-audit-log-lite.php 69% from 13 tests
The primary PHP file in "Order Audit Log for WooCommerce" version 2.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "3.5.x")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("order-audit-log-for-woocommerce.php" instead of "ic-woocommerce-audit-log-lite.php")
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
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 detected5,795 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 740 | 174 | 2,721 |
CSS | 5 | 576 | 169 | 1,990 |
SVG | 1 | 0 | 0 | 640 |
JavaScript | 2 | 142 | 85 | 444 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 75.86 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 180.00 |
Average method complexity | 5.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.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 | 108 | |
▷ Static methods | 3 | 2.78% |
▷ Public methods | 108 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
21 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/product-icon.png | 1.67KB | 1.28KB | ▼ 23.20% |
images/icons/sales-icon.png | 0.83KB | 0.96KB | 0.00% |
images/csv-icon.png | 0.64KB | 0.73KB | 0.00% |
images/close_button.png | 1.50KB | 1.39KB | ▼ 7.56% |
images/icons/customers-icon.png | 0.81KB | 0.83KB | 0.00% |