Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.09ms] Passed 4 tests
This is a short check of server-side resources used by CoCart - Decoupling WooCommerce Made Easy
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.64 ▼3.76 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.98 ▼16.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.22 ▼1.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.14 ▼3.81 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.76 ▼3.87 |
CoCart /wp-admin/admin.php?page=cocart | 3.00 | 21.97 |
Upgrade /wp-admin/admin.php?page=upgrade-cocart | 3.00 | 23.65 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 141 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
cocart_admin_notices |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for CoCart - Decoupling WooCommerce Made Easy
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲121 | 13.57 ▼1.12 | 1.71 ▼0.12 | 43.19 ▼0.83 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.96 | 100.26 ▼12.30 | 39.13 ▼8.72 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▲0.03 | 39.32 ▲1.48 | 34.22 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.45 ▼4.60 | 617.11 ▼73.83 | 62.06 ▲8.54 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.31 ▲0.07 | 96.04 ▼15.76 | 42.93 ▼3.57 |
CoCart /wp-admin/admin.php?page=cocart | 28 | 0.44 | 0.09 | 3.76 |
Upgrade /wp-admin/admin.php?page=upgrade-cocart | 28 | 0.44 | 0.05 | 3.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- cocart_admin_notices
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=cocart
- > Network (severe)
wp-admin/admin.php?page=cocart - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=upgrade-cocart
- > Network (severe)
wp-admin/admin.php?page=upgrade-cocart - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: session, decoupled, products, woocommerce, api...
cart-rest-api-for-woocommerce/cart-rest-api-for-woocommerce.php Passed 13 tests
The main PHP script in "CoCart - Decoupling WooCommerce Made Easy" version 3.9.0 is automatically included on every request by WordPress
84 characters long description:
CoCart makes it easy to decouple your WooCommerce store via a customizable REST API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin18,844 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 3,556 | 9,828 | 17,338 |
CSS | 12 | 124 | 4 | 1,364 |
JavaScript | 2 | 39 | 49 | 133 |
Markdown | 1 | 7 | 0 | 8 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 18.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 95 | |
▷ Abstract classes | 4 | 4.21% |
▷ Concrete classes | 91 | 95.79% |
▷ Final classes | 1 | 1.10% |
Methods | 691 | |
▷ Static methods | 149 | 21.56% |
▷ Public methods | 566 | 81.91% |
▷ Protected methods | 102 | 14.76% |
▷ Private methods | 23 | 3.33% |
Functions | 35 | |
▷ Named functions | 22 | 62.86% |
▷ Anonymous functions | 13 | 37.14% |
Constants | 31 | |
▷ Global constants | 22 | 70.97% |
▷ Class constants | 9 | 29.03% |
▷ Public constants | 9 | 100.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
2 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/brand/header-logo.png | 17.49KB | 7.39KB | ▼ 57.73% |
assets/images/testimonials/james-rowland.png | 149.58KB | 72.67KB | ▼ 51.42% |