Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼140.86ms] Passed 4 tests
An overview of server-side resources used by Woocommerce Variable Product Ajax
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 32.90 ▲5.06 |
Dashboard /wp-admin | 3.06 ▲0.01 | 46.69 ▲0.74 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 41.17 ▼3.70 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 88.95 ▼563.01 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 34.14 ▲2.52 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Woocommerce Variable Product Ajax
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,883 ▲287 | 16.32 ▲0.98 | 15.63 ▲3.08 | 44.67 ▼5.38 |
Dashboard /wp-admin | 2,973 ▲45 | 5.87 ▼0.33 | 152.87 ▼4.03 | 108.06 ▲5.44 |
Posts /wp-admin/edit.php | 2,769 ▲30 | 2.72 ▲0.02 | 63.87 ▼1.65 | 87.06 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,517 ▼98 | 14.11 ▼6.85 | 312.42 ▲1.84 | 106.91 ▲3.48 |
Media Library /wp-admin/upload.php | 1,836 ▲100 | 5.01 ▼0.04 | 152.85 ▼2.27 | 114.63 ▼0.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-variable-product-ajax/woocommerce-variable-product-ajax.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-variable-product-ajax/inc/grid.php:2
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #7 (Woocommerce Variable Product Ajax 7) image not found
woocommerce-variable-product-ajax/woocommerce-variable-product-ajax.php Passed 13 tests
The primary PHP file in "Woocommerce Variable Product Ajax" version 1.00 is used by WordPress to initiate all plugin functionality
66 characters long description:
Add to cart functionality Ajax in Woocommerce for Variable Product
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected271 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 1 | 18 | 111 |
JavaScript | 3 | 16 | 11 | 107 |
CSS | 3 | 8 | 7 | 53 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/success.png | 3.33KB | 0.40KB | ▼ 88.13% |
img/jquery.fs.stepper-arrows.png | 0.30KB | 0.18KB | ▼ 40.52% |
img/bg01.png | 0.91KB | 0.09KB | ▼ 89.56% |
img/close.png | 0.95KB | 1.44KB | 0.00% |