Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼261.13ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Autoload Cart
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 31.34 ▲10.21 |
Dashboard /wp-admin | 3.06 ▲0.01 | 42.82 ▲6.35 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 43.57 ▲1.39 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 85.04 ▼1,049.11 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 33.92 ▼3.15 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Autoload Cart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲92 | 15.91 ▼0.07 | 8.87 ▼0.48 | 48.67 ▲1.06 |
Dashboard /wp-admin | 2,934 ▲84 | 5.89 ▲0.11 | 137.53 ▲2.28 | 104.14 ▼6.98 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▼0.00 | 63.74 ▼1.52 | 93.55 ▲2.91 |
Add New Post /wp-admin/post-new.php | 1,851 ▲198 | 17.75 ▼1.02 | 359.30 ▼18.51 | 106.25 ▼0.80 |
Media Library /wp-admin/upload.php | 1,775 ▲6 | 5.00 ▼0.01 | 147.50 ▼6.31 | 104.32 ▼5.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-autoload-cart/includes/class-icwoo.php
- > /wp-content/plugins/woo-autoload-cart/autoload-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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: products, instant, woocommerce, one click, checkout...
woo-autoload-cart/autoload-cart.php 92% from 13 tests
The main file in "WooCommerce Autoload Cart" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-autoload-cart.php" instead of "autoload-cart.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected484 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 101 | 27 | 462 |
HTML | 1 | 2 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 16 | 57.14% |
▷ Protected methods | 12 | 42.86% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin