90% wp-post-page-clone

Code Review | WP Post Page Clone

WordPress plugin WP Post Page Clone scored90%from 54 tests.

About plugin

  • Plugin page: wp-post-page-clone
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 9, 2017
  • Latest release: Aug 23, 2023
  • Number of updates: 25
  • Update frequency: every 95.4 days
  • Top authors: gaurangsondagar (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100,000+ active /312,176 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.01MB] [CPU: ▼2.78ms] Passed 4 tests

This is a short check of server-side resources used by WP Post Page Clone
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.63 ▲3.28
Dashboard /wp-admin3.31 ▲0.0144.80 ▼9.10
Posts /wp-admin/edit.php3.36 ▲0.0146.60 ▲0.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.31 ▼0.88
Media Library /wp-admin/upload.php3.23 ▲0.0134.15 ▼1.34

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Post Page Clone
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.22 ▼1.181.91 ▲0.2138.72 ▼11.17
Dashboard /wp-admin2,203 ▲154.86 ▼0.06120.08 ▲13.6538.80 ▼7.93
Posts /wp-admin/edit.php2,093 ▲71.96 ▼0.0139.31 ▲0.9235.48 ▲3.19
Add New Post /wp-admin/post-new.php1,536 ▲1623.34 ▲0.19670.86 ▼17.2254.75 ▼6.97
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0197.86 ▼5.8443.02 ▼3.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: duplicate post, clone post, duplicate page, duplicate post and page, clone page...

wp-post-page-clone/wp-post-page-clone.php Passed 13 tests

The primary PHP file in "WP Post Page Clone" version 1.2 is used by WordPress to initiate all plugin functionality
76 characters long description:
A plugin to generate duplicate post or page with contents and it's settings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin92 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2383992

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin