Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼299.15ms] Passed 4 tests
Analyzing server-side resources used by Ajax add to cart on hover Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 55.66 ▲2.13 |
Dashboard /wp-admin | 3.45 ▲0.04 | 32.24 ▼0.38 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 36.37 ▲1.23 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 93.49 ▼1,192.50 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 26.59 ▼4.96 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax add to cart on hover Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,875 ▲121 | 16.18 ▲0.52 | 9.60 ▲3.95 | 2.26 ▼0.43 |
Dashboard /wp-admin | 2,892 ▲38 | 6.14 ▲0.04 | 117.96 ▼12.33 | 155.86 ▼5.86 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.22 ▼0.00 | 66.05 ▲0.57 | 140.71 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,781 ▲64 | 22.84 ▲2.10 | 437.39 ▼0.27 | 160.31 ▲1.76 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.46 ▼0.08 | 141.41 ▼1.67 | 185.89 ▼4.61 |
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 Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: ajax add to cart, ajax, variable products, add-to-cart on hover, e-commerce...
ajax-add-to-cart-on-hover/ajax-add-to-cart-on-hover.php Passed 13 tests
The primary PHP file in "Ajax add to cart on hover Plugin" version 1.0.0 is used by WordPress to initiate all plugin functionality
133 characters long description:
Ajax add to cart on hover Plugin is used for adding variable products to cart using overlay on image when hovered over product image.
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
There were no executable files found in this plugin438 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 112 | 3 | 181 |
JavaScript | 4 | 39 | 30 | 123 |
PHP | 1 | 79 | 33 | 118 |
SVG | 1 | 0 | 1 | 16 |
PHP code Passed 2 tests
A short review 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.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
check-mark.png | 6.35KB | 4.30KB | ▼ 32.29% |
cross.png | 4.09KB | 2.37KB | ▼ 42.16% |