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 gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.03ms] Passed 4 tests
Analyzing server-side resources used by Shopwarden - Automated WooCommerce monitoring & testing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.74 ▼0.62 |
Dashboard /wp-admin | 3.40 ▲0.05 | 46.93 ▼11.69 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.64 ▼3.36 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 92.46 ▼6.42 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 34.95 ▼2.64 |
Shopwarden /wp-admin/admin.php?page=shopwarden | 3.30 | 309.84 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
shopwarden_auto_delete_customer |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Shopwarden - Automated WooCommerce monitoring & testing
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.34 ▲0.10 | 1.62 ▲0.07 | 43.79 ▲4.22 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.03 | 82.67 ▼3.10 | 39.25 ▼3.91 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.08 ▲0.13 | 40.36 ▼0.64 | 36.33 ▼4.62 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.72 ▲0.61 | 606.61 ▼92.90 | 51.52 ▼15.09 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▲0.02 | 100.82 ▼3.65 | 42.15 ▼0.65 |
Shopwarden /wp-admin/admin.php?page=shopwarden | 764 | 2.01 | 25.79 | 24.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- shopwarden_auto_delete_customer
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/shopwarden/includes/fake-payment-gateway.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: monitoring, testing, woocommerce
shopwarden/shopwarden.php 92% from 13 tests
"Shopwarden - Automated WooCommerce monitoring & testing" version 1.0.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("5.9" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected583 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 296 | 69 | 583 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 57.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 7.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin