84% clone-replace

Code Review | Clone & Replace

WordPress plugin Clone & Replace scored84%from 54 tests.

About plugin

  • Plugin page: clone-replace
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: May 27, 2013
  • Latest release: May 31, 2013
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: mboynes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /20,982 total downloads


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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.88ms] Passed 4 tests

This is a short check of server-side resources used by Clone & Replace
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.92 ▼4.02
Dashboard /wp-admin3.41 ▲0.0746.80 ▼14.05
Posts /wp-admin/edit.php3.53 ▲0.1749.79 ▼4.91
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.37 ▼4.52
Media Library /wp-admin/upload.php3.33 ▲0.1133.77 ▲0.14

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Clone & Replace
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.25 ▼0.101.72 ▼0.2742.33 ▼1.04
Dashboard /wp-admin2,195 ▲155.56 ▼0.1481.82 ▼6.3439.17 ▼0.33
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0344.10 ▲3.3842.55 ▲5.02
Add New Post /wp-admin/post-new.php1,532 ▲623.13 ▼0.15662.97 ▼29.8250.47 ▼16.31
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.0195.54 ▼0.1240.98 ▼5.01

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/clone-replace/clone-replace.php:27

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === clone-replace === )
You can take inspiration from this readme.txt

clone-replace/clone-replace.php Passed 13 tests

"Clone & Replace" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
128 characters long description:
Gives you the ability to clone posts, and replace posts. Together, you have a very powerful tool for a fork/merge editing model.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin488 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity32.50
▷ Minimum class complexity20.00
▷ Maximum class complexity45.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods25.71%
▷ Public methods2777.14%
▷ Protected methods00.00%
▷ Private methods822.86%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin