99% post-duplicator-plus

Code Review | Post Duplicator Plus

WordPress plugin Post Duplicator Plus scored 99% from 53 tests.

About plugin

  • Plugin page: post-duplicator-plus
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Aug 1, 2018
  • Latest release: Apr 10, 2019
  • Number of updates: 6
  • Update frequency: every 42.0 days
  • Top authors: mymizan (100%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 769 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼259.36ms] Passed 4 tests

Server-side resources used by Post Duplicator Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1332.72 ▲14.03
Dashboard /wp-admin3.07 ▲0.0243.77 ▼0.09
Posts /wp-admin/edit.php3.13 ▲0.0241.53 ▲2.90
Add New Post /wp-admin/post-new.php5.44 ▲0.0191.40 ▼1,034.74
Media Library /wp-admin/upload.php3.02 ▲0.0133.17 ▼5.50

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Duplicator Plus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲12015.76 ▼0.148.15 ▼0.4848.26 ▲4.00
Dashboard /wp-admin2,962 ▲1095.92 ▲0.02132.56 ▼5.71104.42 ▲8.45
Posts /wp-admin/edit.php2,712 ▲62.69 ▼0.0164.63 ▼0.1288.51 ▼5.98
Add New Post /wp-admin/post-new.php1,653 ▼38518.80 ▼0.43366.39 ▲17.04105.08 ▼3.57
Media Library /wp-admin/upload.php1,772 ▼04.97 ▼0.03142.74 ▼14.16112.30 ▼8.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

post-duplicator-plus/post-duplicator-plus.php 92% from 13 tests

Analyzing the main PHP file in "Post Duplicator Plus" version 1.0.1
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected82 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3173069
Markdown111013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected