Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.61ms] Passed 4 tests
Server-side resources used by Duplicate Pages and Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.07 | 38.38 ▼2.81 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.15 ▼2.47 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 49.20 ▲0.29 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 91.94 ▼5.20 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.56 ▲0.06 |
Duplicate Page & Post /wp-admin/options-general.php?page=options-duplicate-page-post | 3.34 | 30.10 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
gwdp_allowed_options |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Duplicate Pages and Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.19 ▼1.08 | 1.61 ▼0.13 | 39.94 ▼3.60 |
Dashboard /wp-admin | 2,212 ▲24 | 4.87 ▼0.18 | 110.31 ▲2.22 | 38.39 ▼7.24 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.01 ▲0.00 | 39.60 ▼1.11 | 34.31 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.06 ▼0.05 | 595.33 ▼87.15 | 57.84 ▲7.18 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.24 ▲0.05 | 99.80 ▼15.50 | 42.02 ▼8.51 |
Duplicate Page & Post /wp-admin/options-general.php?page=options-duplicate-page-post | 1,051 | 2.02 | 23.92 | 56.75 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- gwdp_allowed_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
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
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: duplicate post, duplicate custom post, clone post, duplicate page, clone page
duplicate-pages-and-posts/duplicate-pages-and-posts.php Passed 13 tests
"Duplicate Pages and Posts" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
52 characters long description:
A plugin to add Duplicate Page, post and custom post
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected476 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 62 | 23 | 446 |
CSS | 1 | 5 | 0 | 30 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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