Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.84MB] [CPU: ▼297.57ms] Passed 4 tests
An overview of server-side resources used by Yoast Duplicate Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.88 ▲0.68 | 83.25 ▲20.82 |
Dashboard /wp-admin | 5.00 ▲0.97 | 45.58 ▲7.73 |
Posts /wp-admin/edit.php | 5.23 ▲0.90 | 56.01 ▲13.69 |
Add New Post /wp-admin/post-new.php | 8.46 ▲0.87 | 120.07 ▼1,220.06 |
Media Library /wp-admin/upload.php | 4.88 ▲0.90 | 37.32 ▲8.38 |
Duplicate Post /wp-admin/options-general.php?page=duplicatepost | 4.88 | 37.43 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 25 new options
New WordPress options |
---|
duplicate_post_copypassword |
duplicate_post_show_original_column |
duplicate_post_show_link |
duplicate_post_copyformat |
duplicate_post_copytemplate |
duplicate_post_copyslug |
duplicate_post_copychildren |
duplicate_post_show_original_in_post_states |
duplicate_post_copythumbnail |
duplicate_post_copystatus |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Yoast Duplicate Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,886 ▲128 | 15.46 ▼0.56 | 7.36 ▲0.91 | 3.01 ▲0.17 |
Dashboard /wp-admin | 2,980 ▲126 | 6.24 ▲0.06 | 154.74 ▲4.62 | 223.25 ▲63.94 |
Posts /wp-admin/edit.php | 2,728 ▲37 | 3.24 ▲0.01 | 72.14 ▲4.29 | 198.29 ▼5.91 |
Add New Post /wp-admin/post-new.php | 1,731 ▲70 | 21.61 ▼0.86 | 453.08 ▲7.27 | 166.33 ▲6.11 |
Media Library /wp-admin/upload.php | 1,697 ▼1 | 5.49 ▼0.02 | 141.37 ▼7.34 | 200.14 ▼48.50 |
Duplicate Post /wp-admin/options-general.php?page=duplicatepost | 1,659 | 2.53 | 87.59 | 131.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 25 options
- duplicate_post_types_enabled
- duplicate_post_copyformat
- duplicate_post_version
- duplicate_post_copytitle
- duplicate_post_copydate
- duplicate_post_copystatus
- duplicate_post_show_notice
- duplicate_post_copyauthor
- duplicate_post_show_original_column
- duplicate_post_copytemplate
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/duplicate-post/compat/jetpack-functions.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/duplicate-post/admin-functions.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/duplicate-post/compat/wpml-functions.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: duplicate post, clone, copy
duplicate-post/duplicate-post.php Passed 13 tests
"Yoast Duplicate Post" version 4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
The go-to tool for cloning posts and pages, including the powerful Rewrite & Republish feature.
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
There were no executable files found in this plugin4,891 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 1,002 | 2,679 | 4,773 |
CSS | 2 | 18 | 2 | 113 |
JavaScript | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 248 | |
▷ Static methods | 32 | 12.90% |
▷ Public methods | 235 | 94.76% |
▷ Protected methods | 9 | 3.63% |
▷ Private methods | 4 | 1.61% |
Functions | 36 | |
▷ Named functions | 32 | 88.89% |
▷ Anonymous functions | 4 | 11.11% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
duplicate_post_yoast_icon-125x125.png | 18.35KB | 3.74KB | ▼ 79.62% |