Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲0.38ms] Passed 4 tests
This is a short check of server-side resources used by WPC Share Cart for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 39.53 ▲5.00 |
Dashboard /wp-admin | 3.54 ▲0.24 | 46.77 ▼4.07 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 49.84 ▲3.18 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 95.07 ▲1.58 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 37.00 ▲0.82 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.43 | 30.95 |
About /wp-admin/admin.php?page=wpclever | 3.43 | 29.23 |
Server storage [IO: ▲0.47MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WPC Share Cart for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.32 ▼0.24 | 1.77 ▲0.22 | 43.33 ▲5.22 |
Dashboard /wp-admin | 2,257 ▲80 | 5.65 ▼0.00 | 83.57 ▼3.76 | 86.16 ▲46.73 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 2.02 ▲0.00 | 39.99 ▲3.79 | 37.87 ▲5.24 |
Add New Post /wp-admin/post-new.php | 1,609 ▲81 | 24.73 ▲1.57 | 687.02 ▼4.57 | 73.96 ▲19.30 |
Media Library /wp-admin/upload.php | 1,471 ▲71 | 4.20 ▼0.01 | 100.35 ▲1.88 | 83.85 ▲37.71 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,741 | 2.15 | 32.51 | 53.11 |
About /wp-admin/admin.php?page=wpclever | 1,399 | 2.14 | 30.55 | 42.98 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce, share, woo, wpc, cart
wpc-share-cart/wpc-share-cart.php Passed 13 tests
The main file in "WPC Share Cart for WooCommerce" v. 1.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
90 characters long description:
WPC Share Cart is a simple but powerful tool that can help your customer share their cart.
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 plugin2,301 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 151 | 41 | 1,118 |
CSS | 4 | 100 | 6 | 543 |
SVG | 2 | 0 | 0 | 521 |
JavaScript | 3 | 25 | 12 | 119 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 4.40 |
▷ 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 | 40 | |
▷ Static methods | 4 | 10.00% |
▷ Public methods | 40 | 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 | 8 | |
▷ Global constants | 8 | 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
There were not PNG files found in your plugin