100% dokan-product-duplicator

Code Review | Dokan Product Duplicator

WordPress plugin Dokan Product Duplicator scored 100% from 54 tests.

About plugin

  • Plugin page: dokan-product-dup...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.1-4.4.2
  • WordPress version: 5.8.1
  • First release: Jul 4, 2015
  • Latest release: May 3, 2017
  • Number of updates: 13
  • Update frequency: every 51.5 days
  • Top authors: sk.shaikat (76.92%)sabbir1991 (30.77%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 6,293 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.68 ▼0.0421.13 ▼2.88
Dashboard /wp-admin3.10 ▲0.0447.22 ▲9.10
Posts /wp-admin/edit.php3.15 ▲0.0447.21 ▲4.08
Add New Post /wp-admin/post-new.php5.45 ▲0.0296.85 ▼571.05
Media Library /wp-admin/upload.php3.04 ▲0.0435.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,257 ▼31515.64 ▼0.350.46 ▼9.149.50 ▼41.84
Dashboard /wp-admin2,985 ▲486.06 ▲0.09151.98 ▼0.34115.67 ▲0.00
Posts /wp-admin/edit.php2,751 ▲122.69 ▼0.0073.93 ▲2.05100.31 ▼5.56
Add New Post /wp-admin/post-new.php1,680 ▼318.97 ▲0.08395.25 ▲11.75114.33 ▲3.60
Media Library /wp-admin/upload.php1,819 ▲125.01 ▼0.01162.96 ▲7.86130.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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.39
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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