Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼293.68ms] Passed 4 tests
A check of server-side resources used by Wc Cart Automation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 52.84 ▼1.69 |
Dashboard /wp-admin | 3.45 ▲0.04 | 40.61 ▲8.81 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 38.96 ▲3.39 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 95.31 ▼1,169.28 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 24.32 ▼7.12 |
Automations /wp-admin/edit.php?post_type=wcca | 3.37 | 24.72 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Wc Cart Automation: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,875 ▲121 | 16.17 ▼0.13 | 6.12 ▼0.15 | 2.72 ▲0.30 |
Dashboard /wp-admin | 2,971 ▲84 | 6.47 ▼0.01 | 143.42 ▲2.73 | 160.90 ▼1.92 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.56 ▲0.01 | 64.05 ▲1.55 | 139.37 ▼3.90 |
Add New Post /wp-admin/post-new.php | 1,666 ▲6 | 16.63 ▼0.09 | 408.43 ▼27.08 | 153.82 ▼27.88 |
Media Library /wp-admin/upload.php | 1,704 ▲6 | 5.72 ▲0.00 | 139.73 ▲3.42 | 184.83 ▼1.45 |
Automations /wp-admin/edit.php?post_type=wcca | 1,390 | 3.48 | 58.06 | 113.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: cart, automation, shop, ecommerce, woocommerce
wc-cart-automation/wc-cart-automation.php Passed 13 tests
"Wc Cart Automation" version 0.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Enhance your sales with custom cart automation process.
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
Good job! No executable or dangerous file extensions detected766 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 114 | 170 | 541 |
PO File | 1 | 38 | 42 | 87 |
Markdown | 1 | 16 | 0 | 48 |
Sass | 1 | 8 | 0 | 37 |
CSS | 1 | 1 | 1 | 35 |
JavaScript | 1 | 6 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 28.67 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 17 | 60.71% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.71% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG images were found in this plugin