90% wp-duplicate-page

Code Review | WP Duplicate Page

WordPress plugin WP Duplicate Page scored90%from 54 tests.

About plugin

  • Plugin page: wp-duplicate-page
  • Plugin version: 1.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 5, 2020
  • Latest release: Sep 8, 2023
  • Number of updates: 16
  • Update frequency: every 62.9 days
  • Top authors: ninjateam (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

20,000+ active /78,307 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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼10.76ms] Passed 4 tests

Server-side resources used by WP Duplicate Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.18 ▼3.53
Dashboard /wp-admin3.40 ▲0.0549.95 ▼8.89
Posts /wp-admin/edit.php3.52 ▲0.1648.83 ▼22.64
Add New Post /wp-admin/post-new.php5.98 ▲0.0995.14 ▼7.97
Media Library /wp-admin/upload.php3.32 ▲0.0935.76 ▲2.19
Duplicate Page /wp-admin/options-general.php?page=njt-duplicate-settings3.3136.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Duplicate Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.31 ▼0.991.92 ▼0.1645.22 ▼0.92
Dashboard /wp-admin2,210 ▲194.88 ▼0.04106.29 ▲1.4240.31 ▼3.03
Posts /wp-admin/edit.php2,097 ▲52.02 ▼0.0338.56 ▼44.3936.09 ▼50.46
Add New Post /wp-admin/post-new.php1,536 ▲1323.34 ▲0.14679.72 ▲42.0062.28 ▲2.09
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.00105.70 ▼3.5647.73 ▼1.12
Duplicate Page /wp-admin/options-general.php?page=njt-duplicate-settings1,0282.1927.4169.62

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Everything seems fine, however this is by no means an exhaustive 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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: duplicate post, wordpress copy page, clone page, duplicate page, clone post

wp-duplicate-page/wp-duplicate-page.php 92% from 13 tests

The main PHP file in "WP Duplicate Page" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin968 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP109349578
CSS173336
JavaScript13054

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity14.50
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods32
▷ Static methods928.12%
▷ Public methods2371.88%
▷ Protected methods00.00%
▷ Private methods928.12%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin