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.03MB] [CPU: ▼3.71ms] Passed 4 tests
A check of server-side resources used by CartStack for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.37 ▼0.95 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.22 ▼5.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.29 ▲1.50 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.57 ▼8.76 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.42 ▼0.03 |
CartStack /wp-admin/admin.php?page=cartstack | 3.23 | 30.91 |
Server storage [IO: ▲2.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
CartStack for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲70 | 13.65 ▼1.11 | 1.62 ▼0.16 | 39.14 ▼6.34 |
Dashboard /wp-admin | 2,208 ▲17 | 5.79 ▲0.92 | 95.19 ▼7.67 | 35.46 ▼5.12 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.97 ▼0.00 | 40.06 ▲5.32 | 35.39 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,539 ▲18 | 23.08 ▼0.10 | 666.97 ▼9.25 | 50.21 ▼4.72 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.24 ▲0.06 | 96.06 ▼6.58 | 45.32 ▼0.99 |
CartStack /wp-admin/admin.php?page=cartstack | 887 | 1.90 | 28.64 | 24.14 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cartstack-for-woocommerce/CartStack.php:34
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("")
- Tags: You are using too many tags: 11 tag instead of maximum 10
cartstack-for-woocommerce/CartStack.php 92% from 13 tests
The main PHP script in "CartStack for WooCommerce" version 1.1.4 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("cartstack-for-woocommerce.php" instead of "CartStack.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected366 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 83 | 51 | 256 |
CSS | 3 | 28 | 18 | 89 |
JavaScript | 3 | 9 | 23 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 86.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.04% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/help.png | 37.27KB | 20.76KB | ▼ 44.30% |