Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼287.44ms] Passed 4 tests
This is a short check of server-side resources used by Add To Cart Popup For Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 52.53 ▲2.34 |
Dashboard /wp-admin | 3.41 ▲0.00 | 31.61 ▼0.27 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 38.05 ▲1.67 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 94.33 ▼1,152.28 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.81 ▲1.13 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add To Cart Popup For Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,861 ▲117 | 16.19 ▲0.56 | 5.89 ▲0.29 | 2.42 ▲0.26 |
Dashboard /wp-admin | 2,895 ▲37 | 6.15 ▼0.03 | 119.65 ▼14.51 | 155.63 ▼7.34 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▲0.01 | 63.01 ▼2.10 | 138.25 ▼13.01 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 16.95 ▲0.88 | 388.10 ▼34.74 | 156.28 ▼2.24 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.52 ▼0.01 | 145.74 ▲10.91 | 195.10 ▲12.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/add-to-cart-popup-for-woocommerce/atcpw_main.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Contributors: Plugin contributors field is missing
- Screenshots: These screenshots need descriptions #0, #0, #0 in add-to-cart-popup-for-woocommerce/assets to your readme.txt
add-to-cart-popup-for-woocommerce/atcpw_main.php 77% from 13 tests
The entry point to "Add To Cart Popup For Woocommerce" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-to-cart-popup-for-woocommerce.php" instead of "atcpw_main.php")
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin6,336 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 596 | 1,112 | 2,596 |
PHP | 4 | 226 | 20 | 2,109 |
CSS | 8 | 28 | 57 | 1,100 |
SVG | 30 | 0 | 4 | 531 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 7.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.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 | 33 | |
▷ Static methods | 4 | 12.12% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
7 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/owlcarousel/assets/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
assets/images/cancel-music.png | 0.52KB | 0.37KB | ▼ 28.52% |
assets/images/support.png | 6.44KB | 5.59KB | ▼ 13.09% |
assets/images/shopping-cart (4).png | 0.75KB | 0.90KB | 0.00% |
assets/images/ShoppingCart2-512.png | 31.67KB | 11.09KB | ▼ 64.97% |