10% wp-bulk-post-duplicator

Code Review | WP Bulk Post Duplicator

WordPress plugin WP Bulk Post Duplicator scored10%from 54 tests.

About plugin

  • Plugin page: wp-bulk-post-dupl...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Feb 7, 2015
  • Latest release: Aug 25, 2017
  • Number of updates: 17
  • Update frequency: every 54.9 days
  • Top authors: rajeshsantosh (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active /16,177 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-bulk-post-duplicator/bulk_duplicate_posts.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; WPPostsDuplicator has a deprecated constructor

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

An overview of server-side resources used by WP Bulk Post Duplicator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.69 ▼9.40
Dashboard /wp-admin3.31 ▲0.0146.18 ▼9.06
Posts /wp-admin/edit.php3.36 ▲0.0150.71 ▼2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.19 ▼16.66
Media Library /wp-admin/upload.php3.23 ▲0.0138.97 ▲1.80
WP Bulk Posts Duplicator /wp-admin/options-general.php?page=wp-blk-posts-duplicator3.1731.45

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Bulk Post Duplicator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.58 ▼1.202.07 ▲0.3241.08 ▼3.57
Dashboard /wp-admin2,213 ▲255.85 ▲0.03100.59 ▼18.4939.79 ▼3.81
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0539.56 ▲2.8935.32 ▲1.04
Add New Post /wp-admin/post-new.php1,540 ▲723.18 ▲0.18675.79 ▲37.1455.54 ▲5.07
Media Library /wp-admin/upload.php1,395 ▲44.24 ▲0.06100.57 ▼1.4143.72 ▼3.15
WP Bulk Posts Duplicator /wp-admin/options-general.php?page=wp-blk-posts-duplicator9291.6827.8326.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-blk-posts-duplicator
    • > Notice in wp-content/plugins/wp-bulk-post-duplicator/bulk_duplicate_posts.php+122
    Undefined index: wp_psd_types

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-bulk-post-duplicator/bulk_duplicate_posts.php:361

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: bulk duplicate posts, duplicate bulk pages, huge posts duplicate, bulk duplicate, duplicate posts...

wp-bulk-post-duplicator/bulk_duplicate_posts.php 92% from 13 tests

The main PHP file in "WP Bulk Post Duplicator" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-bulk-post-duplicator.php" instead of "bulk_duplicate_posts.php")

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
Everything looks great! No dangerous files found in this plugin317 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1389317

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity9.50
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.PNG52.73KB20.88KB▼ 60.41%