Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.64ms] Passed 4 tests
A check of server-side resources used by Dokan Product Duplicator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.68 ▼0.04 | 21.13 ▼2.88 |
Dashboard /wp-admin | 3.10 ▲0.04 | 47.22 ▲9.10 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 47.21 ▲4.08 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 96.85 ▼571.05 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 35.71 ▼0.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dokan Product Duplicator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,257 ▼315 | 15.64 ▼0.35 | 0.46 ▼9.14 | 9.50 ▼41.84 |
Dashboard /wp-admin | 2,985 ▲48 | 6.06 ▲0.09 | 151.98 ▼0.34 | 115.67 ▲0.00 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.69 ▼0.00 | 73.93 ▲2.05 | 100.31 ▼5.56 |
Add New Post /wp-admin/post-new.php | 1,680 ▼3 | 18.97 ▲0.08 | 395.25 ▲11.75 | 114.33 ▲3.60 |
Media Library /wp-admin/upload.php | 1,819 ▲12 | 5.01 ▼0.01 | 162.96 ▲7.86 | 130.30 ▼0.02 |
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 Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 | This is just a short smoke test looking for browser issues
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: woocommerce product duplicator, copy, dokan product duplicator, woocommerce, frontend...
dokan-product-duplicator/dokan-duplicate-product.php 92% from 13 tests
Analyzing the main PHP file in "Dokan Product Duplicator" version 0.3
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dokan-product-duplicator.php" instead of "dokan-duplicate-product.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected129 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 92 | 129 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin