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.00MB] [CPU: ▼1.22ms] Passed 4 tests
Analyzing server-side resources used by Popup Cart Lite for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.44 ▼0.41 |
Dashboard /wp-admin | 3.31 ▲0.00 | 57.98 ▲6.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.81 ▼2.61 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.90 ▼1.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.44 ▼0.33 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Popup Cart Lite for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.27 ▼0.12 | 1.83 ▼0.14 | 44.71 ▲0.14 |
Dashboard /wp-admin | 2,192 ▲12 | 5.74 ▲0.07 | 90.65 ▼1.27 | 39.96 ▼3.52 |
Posts /wp-admin/edit.php | 2,100 ▼6 | 2.00 ▼0.02 | 36.98 ▼5.12 | 36.51 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.40 ▲0.29 | 667.74 ▼12.94 | 49.46 ▼15.95 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.20 ▼0.05 | 98.17 ▼2.03 | 45.76 ▲0.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WooCartPopUpFestiPlugin' not found in wp-content/plugins/woocommerce-woocart-popup-lite/common/WooCartPopUpBackendFestiPlugin.php:3
- > PHP Fatal error
Uncaught Error: Class 'WooCartPopUpFestiPlugin' not found in wp-content/plugins/woocommerce-woocart-popup-lite/common/WooCartPopUpFrontendFestiPlugin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/woocommerce-woocart-popup-lite/common/FestiPlugin.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (How it looks like after click on Add to Cart button), #2 (Settings)
woocommerce-woocart-popup-lite/plugin.php 92% from 13 tests
The main PHP script in "Popup Cart Lite for WooCommerce" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-woocart-popup-lite.php" instead of "plugin.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
Everything looks great! No dangerous files found in this plugin5,922 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 418 | 14 | 3,536 |
CSS | 6 | 148 | 47 | 1,508 |
JavaScript | 7 | 88 | 20 | 755 |
PO File | 1 | 52 | 65 | 123 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 14.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 81 | 75.00% |
▷ Protected methods | 8 | 7.41% |
▷ Private methods | 19 | 17.59% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
44 PNG files occupy 0.16MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/images/color_picker/custom_hsb_h.png | 0.95KB | 0.73KB | ▼ 23.40% |
static/images/color_picker/colorpicker_hsb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |
static/images/color_picker/colorpicker_overlay.png | 10.11KB | 8.24KB | ▼ 18.50% |
static/images/slider/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |
static/images/color_picker/select.png | 0.49KB | 0.33KB | ▼ 33.40% |