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.00MB] [CPU: ▼141.80ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Variations Per Page
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 41.90 ▲20.07 |
Dashboard /wp-admin | 3.07 ▲0.01 | 48.30 ▲0.88 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.49 ▼3.45 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 93.20 ▼560.94 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 27.67 ▼3.67 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Variations Per Page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲106 | 16.17 ▲0.63 | 7.92 ▼2.28 | 51.94 ▼5.85 |
Dashboard /wp-admin | 2,970 ▲33 | 5.87 ▼0.09 | 143.13 ▼6.42 | 114.09 ▼9.19 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.02 | 72.09 ▲2.18 | 90.63 ▲1.32 |
Add New Post /wp-admin/post-new.php | 1,683 ▲102 | 18.53 ▼1.74 | 394.83 ▲0.56 | 123.39 ▲4.27 |
Media Library /wp-admin/upload.php | 1,804 ▼0 | 5.02 ▼0.02 | 166.42 ▲9.49 | 122.54 ▼6.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: product variations, woocommerce variable products, product editing, variations per page, woocommerce
masterwoos-woocommerce-variations-per-page/masterwoos-woocommerce-product-variations-per-page.php 54% from 13 tests
The entry point to "WooCommerce Variations Per Page" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("masterwoos-woocommerce-variations-per-page.php" instead of "masterwoos-woocommerce-product-variations-per-page.php")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.1" instead of "3.4.1")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 240 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin35 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 38 | 35 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin