Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼12.22ms] Passed 4 tests
A check of server-side resources used by Duplicate Variations for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 33.42 ▼8.20 |
Dashboard /wp-admin | 3.32 ▼0.02 | 44.52 ▼13.50 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 45.49 ▼2.78 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 79.29 ▼23.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.52 ▼3.62 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Duplicate Variations for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.29 ▲0.25 | 1.70 ▼0.01 | 39.47 ▼3.88 |
Dashboard /wp-admin | 2,215 ▲27 | 5.79 ▲0.77 | 96.94 ▼16.20 | 40.40 ▼4.25 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.05 | 35.58 ▼4.32 | 34.70 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 23.48 ▲0.50 | 664.64 ▲7.24 | 52.44 ▼24.47 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.16 ▼0.06 | 95.10 ▼9.49 | 43.98 ▼0.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/variation-duplicator-for-woocommerce/includes/class-variation-duplicator-for-woocommerce-variation-image-clone.php
- > /wp-content/plugins/variation-duplicator-for-woocommerce/includes/html-variation-duplicator-form.php
- > /wp-content/plugins/variation-duplicator-for-woocommerce/includes/class-variation-duplicator-for-woocommerce-backend.php
- > /wp-content/plugins/variation-duplicator-for-woocommerce/includes/class-variation-duplicator-for-woocommerce.php
- > /wp-content/plugins/variation-duplicator-for-woocommerce/includes/class-variation-duplicator-for-woocommerce-variation-clone.php
- > /wp-content/plugins/variation-duplicator-for-woocommerce/variation-duplicator-for-woocommerce.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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
5 plugin tags: product variation image copy, variation images clone, woocommerce variations duplicate, product variation image duplicate, variation image duplicate
variation-duplicator-for-woocommerce/variation-duplicator-for-woocommerce.php 92% from 13 tests
The entry point to "Duplicate Variations for WooCommerce" version 2.0.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)
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
Everything looks great! No dangerous files found in this plugin1,049 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 184 | 50 | 549 |
JavaScript | 2 | 50 | 66 | 339 |
CSS | 2 | 4 | 8 | 161 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 6 | 12.00% |
▷ Public methods | 46 | 92.00% |
▷ Protected methods | 4 | 8.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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