Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.12ms] Passed 4 tests
An overview of server-side resources used by Super Fast Side Cart for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.78 ▲0.47 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.31 ▼21.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.12 ▲0.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.25 ▲2.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.34 ▼4.25 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Super Fast Side Cart for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.25 ▼0.16 | 1.93 ▲0.06 | 42.22 ▼3.03 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.06 | 85.69 ▼11.66 | 38.49 ▼5.99 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▲0.03 | 39.62 ▲1.29 | 36.25 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.41 ▲0.25 | 662.39 ▼33.83 | 52.87 ▼10.07 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.14 ▼0.15 | 103.85 ▼20.30 | 46.55 ▼6.98 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/super-fast-side-cart-for-woocommerce/sp_side_cart.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: ajax, popup cart, woocommerce, floating cart, cart...
super-fast-side-cart-for-woocommerce/sp_side_cart.php 92% from 13 tests
The principal PHP file in "Super Fast Side Cart for WooCommerce" v. 1.0.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("super-fast-side-cart-for-woocommerce.php" instead of "sp_side_cart.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
There were no executable files found in this plugin990 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 215 | 55 | 724 |
JavaScript | 5 | 40 | 11 | 255 |
CSS | 2 | 0 | 0 | 11 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 34.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 31 | 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 | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/float-scart-icon.png | 31.67KB | 11.09KB | ▼ 64.97% |
assets/images/close-scart.png | 0.52KB | 0.37KB | ▼ 28.52% |