84% page-or-post-clone

Code Review | Page and Post Clone

WordPress plugin Page and Post Clone scored84%from 54 tests.

About plugin

  • Plugin page: page-or-post-clone
  • Plugin version: 6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2016
  • Latest release: Feb 1, 2022
  • Number of updates: 21
  • Update frequency: every 100.6 days
  • Top authors: carlosfazenda (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

80,000+ active /401,346 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.88ms] Passed 4 tests

A check of server-side resources used by Page and Post Clone
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.22 ▼5.76
Dashboard /wp-admin3.32 ▲0.0246.01 ▼2.15
Posts /wp-admin/edit.php3.37 ▲0.0250.23 ▲6.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.50 ▼0.59
Media Library /wp-admin/upload.php3.25 ▲0.0232.60 ▲0.98

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Page and Post Clone: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.391.81 ▲0.1138.38 ▼5.65
Dashboard /wp-admin2,206 ▲145.85 ▲0.89100.51 ▼4.2640.00 ▼5.39
Posts /wp-admin/edit.php2,096 ▲72.03 ▼0.0040.81 ▲2.2133.16 ▼4.04
Add New Post /wp-admin/post-new.php1,519 ▼1423.23 ▲0.15687.05 ▲89.1654.54 ▼2.39
Media Library /wp-admin/upload.php1,385 ▼64.21 ▼0.0594.96 ▼3.4141.36 ▼4.01

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-or-post-clone/page-or-post-clone.php:115

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (screenshot.png), #2 (icon-128x128.png), #3 (banner-720x250.png)
  • Screenshots: Please describe screenshot #0 in page-or-post-clone/assets to your readme.txt
You can take inspiration from this readme.txt

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

"Page and Post Clone" version 6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
45 characters long description:
Permite a duplicação de Artigos ou Páginas

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin68 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1224568

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected