89% wp-clone-any-post-type

Code Review | WP Clone any post type

WordPress plugin WP Clone any post type scored89%from 54 tests.

About plugin

  • Plugin page: wp-clone-any-post...
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 18, 2019
  • Latest release: Nov 4, 2022
  • Number of updates: 11
  • Update frequency: every 103.9 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /4,962 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by WP Clone any post type
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0746.70 ▲1.67
Dashboard /wp-admin3.37 ▲0.0749.26 ▲5.57
Posts /wp-admin/edit.php3.43 ▲0.0744.81 ▼0.56
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.85 ▼15.68
Media Library /wp-admin/upload.php3.30 ▲0.0732.49 ▼2.95

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

WP Clone any post type: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲5214.20 ▼0.081.86 ▼0.0243.22 ▼0.84
Dashboard /wp-admin2,218 ▲385.65 ▼0.0194.30 ▲3.9842.73 ▲2.42
Posts /wp-admin/edit.php2,123 ▲232.00 ▼0.0034.73 ▼1.0332.60 ▼5.44
Add New Post /wp-admin/post-new.php1,546 ▲1823.12 ▼0.06653.31 ▼19.4161.20 ▼2.58
Media Library /wp-admin/upload.php1,423 ▲234.29 ▲0.1196.25 ▼10.1741.73 ▼4.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires at least: Version format is invalid
  • Requires php: Version format is invalid
You can look at the official readme.txt

wp-clone-any-post-type/wp-clone-any-post-type.php 92% from 13 tests

The primary PHP file in "WP Clone any post type" version 3.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 198 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected403 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35735293
CSS19067
JavaScript14243

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 were not PNG files found in your plugin