Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.28ms] Passed 4 tests
Server-side resources used by WooCommerce added to cart popup (Ajax)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 30.29 ▼15.17 |
Dashboard /wp-admin | 3.41 ▲0.11 | 54.63 ▼0.56 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 53.39 ▲0.83 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 91.86 ▼2.21 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 48.74 ▲14.35 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
woocommerce_enable_ajax_add_to_cart |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WooCommerce added to cart popup (Ajax): an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,492 ▼294 | 13.20 ▼1.55 | 0.54 ▼1.33 | 17.51 ▼28.88 |
Dashboard /wp-admin | 2,233 ▲30 | 5.80 ▼0.11 | 105.50 ▼14.02 | 37.26 ▼7.84 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.01 ▼0.04 | 34.30 ▼3.50 | 33.31 ▼6.15 |
Add New Post /wp-admin/post-new.php | 1,541 ▲3 | 23.45 ▲0.20 | 629.62 ▼2.27 | 76.25 ▲24.41 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.23 ▲0.08 | 118.13 ▲12.00 | 48.47 ▲3.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- woocommerce_enable_ajax_add_to_cart
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/added-to-cart-popup-woocommerce/admin/xoo-cp-sidebar.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/added-to-cart-popup-woocommerce/admin/xoo-cp-fvsp-template.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: ajax, cart notification, woocommerce cart, cart popup, ajax add to cart...
added-to-cart-popup-woocommerce/xoo-cp-main.php 92% from 13 tests
Analyzing the main PHP file in "WooCommerce added to cart popup (Ajax)" version 1.7
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("added-to-cart-popup-woocommerce.php" instead of "xoo-cp-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,621 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 228 | 77 | 821 |
CSS | 2 | 58 | 12 | 534 |
JavaScript | 3 | 68 | 33 | 253 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 4 | 22.22% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
4 compressed PNG files occupy 0.06MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/1.png | 17.58KB | 17.99KB | 0.00% |
admin/images/4.png | 9.63KB | 10.27KB | 0.00% |
admin/images/2.png | 19.75KB | 19.79KB | 0.00% |
admin/images/3.png | 18.22KB | 18.21KB | 0.06% |