89% wp-replicate-post

Code Review | WP Replicate Post

WordPress plugin WP Replicate Post scored89%from 54 tests.

About plugin

  • Plugin page: wp-replicate-post
  • Plugin version: 4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 13, 2018
  • Latest release: May 10, 2023
  • Number of updates: 44
  • Update frequency: every 40.8 days
  • Top authors: richa87 (77.27%)yudiz (25%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,048 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.05MB] [CPU: ▼4.50ms] Passed 4 tests

Server-side resources used by WP Replicate Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.81 ▲0.39
Dashboard /wp-admin3.36 ▲0.0550.26 ▼1.80
Posts /wp-admin/edit.php3.41 ▲0.0552.19 ▼1.52
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.37 ▼14.37
Media Library /wp-admin/upload.php3.28 ▲0.0538.81 ▼0.31

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Replicate Post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.37 ▼0.011.91 ▼0.3043.77 ▼0.43
Dashboard /wp-admin2,207 ▲305.64 ▼0.0184.50 ▼18.2938.18 ▼9.97
Posts /wp-admin/edit.php2,129 ▲292.04 ▲0.0343.06 ▲6.0636.27 ▼2.62
Add New Post /wp-admin/post-new.php1,536 ▲1017.66 ▼0.06638.59 ▲27.6762.61 ▲8.65
Media Library /wp-admin/upload.php1,406 ▲94.21 ▲0.0398.37 ▼6.6840.10 ▼3.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • replicate_item_enable
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • License: Not defined
  • Donate link: Please fix this invalid url: ""
  • Stable tag: Not defined
The official readme.txt is a good inspiration

wp-replicate-post/replicate_item.php 92% from 13 tests

The entry point to "WP Replicate Post" version 4.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-replicate-post.php" instead of "replicate_item.php")

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
Everything looks great! No dangerous files found in this plugin261 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32665261

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin