Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.95ms] Passed 4 tests
This is a short check of server-side resources used by Caddy - Smart Side Cart for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.01 | 41.22 ▼0.72 |
Dashboard /wp-admin | 3.35 ▼0.03 | 46.94 ▼23.43 |
Posts /wp-admin/edit.php | 3.41 ▲0.01 | 48.73 ▲2.06 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.01 | 108.50 ▲2.48 |
Media Library /wp-admin/upload.php | 3.28 ▲0.01 | 34.41 ▼5.72 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Caddy - Smart Side Cart for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲50 | 13.87 ▼0.78 | 1.70 ▲0.09 | 44.72 ▼0.44 |
Dashboard /wp-admin | 2,199 ▲22 | 5.53 ▼0.14 | 86.77 ▼6.16 | 42.61 ▲3.44 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.14 ▲0.17 | 37.49 ▼1.25 | 37.07 ▼3.89 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 18.45 ▼4.70 | 648.69 ▼72.36 | 52.24 ▲0.70 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▲0.08 | 105.44 ▼13.77 | 46.39 ▼0.80 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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 no errors were found, this is by no means 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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/caddy/admin/partials/caddy-addons-page.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/caddy/includes/class-caddy-saved-items-widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/caddy/includes/class-caddy-cart-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/caddy/admin/partials/caddy-admin-style-screen.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/caddy/admin/partials/caddy-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/caddy/admin/partials/caddy-admin-settings-screen.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
caddy/caddy.php 92% from 13 tests
The principal PHP file in "Caddy - Smart Side Cart for WooCommerce" v. 1.9.7 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin6,955 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 429 | 25 | 2,434 |
PHP | 21 | 469 | 849 | 2,352 |
JavaScript | 9 | 205 | 234 | 834 |
SVG | 7 | 0 | 0 | 788 |
PO File | 2 | 244 | 321 | 547 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 24.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 2 | 2.70% |
▷ Public methods | 69 | 93.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.76% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/box-emoji.png | 25.34KB | 11.35KB | ▼ 55.23% |
public/img/voltage-emoji.png | 10.04KB | 4.52KB | ▼ 54.95% |
public/img/sparkles-emoji.png | 11.90KB | 5.22KB | ▼ 56.18% |