83% wp-quick-post-duplicator

Code Review | WP Quick Post Duplicator

WordPress plugin WP Quick Post Duplicator scored83%from 54 tests.

About plugin

  • Plugin page: wp-quick-post-dup...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 16, 2020
  • Latest release: Mar 28, 2023
  • Number of updates: 15
  • Update frequency: every 55.5 days
  • Top authors: arulprasadj (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active /9,064 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.19ms] Passed 4 tests

An overview of server-side resources used by WP Quick Post Duplicator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.90 ▲3.28
Dashboard /wp-admin3.34 ▲0.0446.33 ▲1.68
Posts /wp-admin/edit.php3.39 ▲0.0447.67 ▼1.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.14 ▲0.49
Media Library /wp-admin/upload.php3.26 ▲0.0334.71 ▼1.35

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Quick Post Duplicator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.101.67 ▲0.0243.83 ▲2.90
Dashboard /wp-admin2,209 ▲245.90 ▲1.01100.60 ▲0.5940.38 ▲0.47
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0136.54 ▲0.5532.50 ▼2.70
Add New Post /wp-admin/post-new.php1,519 ▲523.15 ▲5.66691.08 ▲9.1852.29 ▲1.12
Media Library /wp-admin/upload.php1,382 ▼64.25 ▲0.0997.12 ▼1.6143.54 ▲1.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/wp-quick-post-duplicator/wp-quick-post-duplicator.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
  • Screenshots: Add an image for screenshot #1 (Click on Duplicate This Item)
The official readme.txt is a good inspiration

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

The main file in "WP Quick Post Duplicator" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected85 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2203685

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
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

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