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 gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▼4.85ms] Passed 4 tests
An overview of server-side resources used by WPC Added To Cart Notification for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 38.54 ▼5.09 |
Dashboard /wp-admin | 3.58 ▲0.27 | 49.20 ▼5.00 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 52.25 ▲7.20 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 92.73 ▼8.10 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 35.61 ▼1.20 |
About /wp-admin/admin.php?page=wpclever | 3.47 | 31.56 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.47 | 31.53 |
Server storage [IO: ▲0.80MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WPC Added To Cart Notification for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲130 | 14.67 ▲0.44 | 1.97 ▲0.24 | 40.08 ▼1.66 |
Dashboard /wp-admin | 2,260 ▲83 | 5.52 ▼0.15 | 88.16 ▲1.18 | 73.01 ▲33.66 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 1.97 ▲0.02 | 37.89 ▼0.15 | 34.58 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,753 ▲227 | 22.44 ▼1.09 | 645.39 ▲27.52 | 53.55 ▼3.56 |
Media Library /wp-admin/upload.php | 1,468 ▲65 | 4.19 ▼0.06 | 95.38 ▼0.33 | 76.24 ▲34.84 |
About /wp-admin/admin.php?page=wpclever | 1,408 | 2.27 | 34.09 | 37.69 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,735 | 2.16 | 35.05 | 59.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in woo-added-to-cart-notification/assets to your readme.txt
woo-added-to-cart-notification/wpc-added-to-cart-notification.php 92% from 13 tests
The primary PHP file in "WPC Added To Cart Notification for WooCommerce" version 2.4.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-added-to-cart-notification.php" instead of "wpc-added-to-cart-notification.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
Success! There were no dangerous files found in this plugin5,835 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 375 | 177 | 1,855 |
CSS | 8 | 327 | 71 | 1,631 |
PHP | 5 | 149 | 48 | 1,145 |
SVG | 3 | 0 | 0 | 809 |
PO File | 4 | 140 | 180 | 395 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
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 | 4 | 11.43% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin