90% duplicate-me

Code Review | Duplicate Page/Post/Custom Post Type

WordPress plugin Duplicate Page/Post/Custom Post Type scored 90% from 54 tests.

About plugin

  • Plugin page: duplicate-me
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Mar 9, 2020
  • Latest release: Apr 5, 2023
  • Number of updates: 10
  • Update frequency: every 117.4 days
  • Top authors: viitorcloudvc (80%)mitalideva (30%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 780 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.85ms] Passed 4 tests

Analyzing server-side resources used by Duplicate Page/Post/Custom Post Type
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.62 ▼1.69
Dashboard /wp-admin3.34 ▲0.0352.33 ▲4.15
Posts /wp-admin/edit.php3.39 ▲0.0348.29 ▼7.56
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.99 ▼11.79
Media Library /wp-admin/upload.php3.26 ▲0.0334.14 ▲1.66

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Duplicate Page/Post/Custom Post Type
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.79 ▲0.492.06 ▲0.3344.38 ▲6.16
Dashboard /wp-admin2,206 ▲154.83 ▼1.22111.87 ▲12.2540.15 ▼3.26
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0442.88 ▼0.6534.87 ▼3.10
Add New Post /wp-admin/post-new.php1,542 ▲2318.34 ▼4.82615.17 ▼3.5153.26 ▲8.98
Media Library /wp-admin/upload.php1,385 ▼64.20 ▼0.0195.22 ▼0.3640.19 ▼7.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Duplicate Me option in backend) image required
Please take inspiration from this readme.txt

duplicate-me/duplicate-me.php Passed 13 tests

The main PHP file in "Duplicate Page/Post/Custom Post Type" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
Duplicate Me plugin is useful to duplicate page, post and custom post type.

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
There were no executable files found in this plugin156 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP346146156

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin