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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.68ms] Passed 4 tests
A check of server-side resources used by Cart Products for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.63 ▼3.72 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.69 ▼12.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.99 ▼0.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.14 ▼5.72 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.47 ▼1.13 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Cart Products for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.37 ▲0.02 | 1.62 ▼0.48 | 41.01 ▼9.26 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▲0.00 | 86.14 ▼28.13 | 37.27 ▼7.40 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.01 | 38.26 ▼0.57 | 35.55 ▲3.30 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.50 ▲0.41 | 617.53 ▼34.34 | 48.07 ▼13.97 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▲0.02 | 98.80 ▼3.77 | 41.16 ▼6.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- 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 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/cart-products-for-woocommerce/templates/cart-actions.php:1
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in cart-products-for-woocommerce/assets to your readme.txt
- Tags: There are too many tags (11 tag instead of maximum 10)
cart-products-for-woocommerce/card-products.php 85% from 13 tests
The main PHP script in "Cart Products for WordPress" version 1.0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cart-products-for-woocommerce.php" instead of "card-products.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.3" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,666 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 215 | 112 | 1,118 |
JavaScript | 5 | 59 | 43 | 293 |
CSS | 2 | 30 | 0 | 146 |
SVG | 2 | 0 | 2 | 70 |
Sass | 3 | 4 | 1 | 39 |
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.29 |
Average class complexity | 13.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 15 | 42.86% |
▷ Public methods | 32 | 91.43% |
▷ Protected methods | 2 | 5.71% |
▷ Private methods | 1 | 2.86% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 87.85KB | 24.47KB | ▼ 72.15% |
assets/screenshot-3.png | 69.62KB | 20.99KB | ▼ 69.85% |
assets/screenshot-1.png | 79.13KB | 22.53KB | ▼ 71.53% |