Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.63ms] Passed 4 tests
A check of server-side resources used by Confetti for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.43 ▼4.16 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.05 ▼6.17 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 49.81 ▲5.49 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 82.39 ▼18.90 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 34.09 ▼1.28 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 17 new options
New WordPress options |
---|
theysaidso_admin_options |
wcc_size |
wcc_font |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
wcc_text |
can_compress_scripts |
wcc_duration |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Confetti for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.72 ▲0.36 | 1.67 ▲0.03 | 37.53 ▼6.87 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.03 | 94.27 ▼9.19 | 39.66 ▼7.89 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.94 ▼0.06 | 40.73 ▲2.62 | 37.38 ▲4.68 |
Add New Post /wp-admin/post-new.php | 1,531 ▼0 | 23.32 ▲0.30 | 658.96 ▼9.63 | 69.31 ▲16.39 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.19 ▲0.02 | 103.93 ▼2.52 | 43.51 ▲0.82 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wc-confetti/admin/partials/wc-confetti-admin-display.php
- > /wp-content/plugins/wc-confetti/public/partials/wc-confetti-public-display.php
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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: woocommerce, confetti, cart
wc-confetti/wc-confetti.php 92% from 13 tests
The main PHP file in "Confetti for WooCommerce" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "2.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin391 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 118 | 540 | 325 |
JavaScript | 3 | 4 | 54 | 66 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 2.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin