Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼288.39ms] Passed 4 tests
An overview of server-side resources used by WooCommerce added to cart popup (Ajax)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 64.07 ▲1.06 |
Dashboard /wp-admin | 3.52 ▲0.11 | 41.57 ▲5.52 |
Posts /wp-admin/edit.php | 3.75 ▲0.10 | 48.53 ▼1.86 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 101.73 ▼1,158.11 |
Media Library /wp-admin/upload.php | 3.40 ▲0.10 | 34.62 ▲5.35 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce added to cart popup (Ajax)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,196 ▼548 | 15.72 ▼0.04 | 0.38 ▼6.85 | 32.23 ▲28.88 |
Dashboard /wp-admin | 2,907 ▲46 | 6.02 ▼0.25 | 117.47 ▼20.71 | 156.76 ▼5.59 |
Posts /wp-admin/edit.php | 2,703 ▲9 | 3.24 ▼0.01 | 76.41 ▲9.25 | 149.79 ▲8.66 |
Add New Post /wp-admin/post-new.php | 1,671 ▲5 | 16.15 ▼4.47 | 416.34 ▼10.91 | 152.40 ▼6.58 |
Media Library /wp-admin/upload.php | 1,710 ▲12 | 5.48 ▼0.07 | 148.00 ▼5.72 | 191.29 ▼3.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/added-to-cart-popup-woocommerce/admin/xoo-cp-sidebar.php
- 1× PHP files trigger server errors when accessed directly:
- > 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 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: cart notification, woocommerce cart, cart popup, ajax add to cart, woocommerce cart popup...
added-to-cart-popup-woocommerce/xoo-cp-main.php 92% from 13 tests
"WooCommerce added to cart popup (Ajax)" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,614 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 225 | 76 | 814 |
CSS | 2 | 58 | 12 | 534 |
JavaScript | 3 | 68 | 33 | 253 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.88 |
▷ 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 | 17 | |
▷ Static methods | 4 | 23.53% |
▷ Public methods | 17 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
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% |