Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼386.68ms] Passed 4 tests
Server-side resources used by Ajax add to cart on hover Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.23 ▼5.78 |
Dashboard /wp-admin | 3.33 ▼0.05 | 44.56 ▼1,525.80 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.80 ▼4.29 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.11 ▼10.85 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.98 ▲1.92 |
Server storage [IO: ▲0.06MB] [DB: ▲0.31MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Ajax add to cart on hover Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲128 | 13.36 ▼0.99 | 7.58 ▲5.90 | 37.43 ▼2.86 |
Dashboard /wp-admin | 2,198 ▲36 | 5.63 ▼0.02 | 82.50 ▼11.08 | 37.41 ▼2.67 |
Posts /wp-admin/edit.php | 2,079 ▼10 | 1.97 ▼0.01 | 35.55 ▲0.84 | 30.59 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,526 ▲10 | 23.03 ▼0.03 | 589.85 ▼41.88 | 45.48 ▼23.25 |
Media Library /wp-admin/upload.php | 1,391 ▼9 | 4.19 ▼0.05 | 99.73 ▼12.04 | 41.84 ▼0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: ecommerce, variations, ajax add to cart, variable products, ajax...
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 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous 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
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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% |