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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.85MB] [CPU: ▲2.06ms] Passed 4 tests
An overview of server-side resources used by Yoast Duplicate Post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 43.29 ▼3.70 |
Dashboard /wp-admin | 4.26 ▲0.91 | 61.06 ▲6.50 |
Posts /wp-admin/edit.php | 4.31 ▲0.96 | 51.60 ▲7.00 |
Add New Post /wp-admin/post-new.php | 6.78 ▲0.89 | 92.91 ▼1.56 |
Media Library /wp-admin/upload.php | 4.12 ▲0.89 | 44.58 ▲10.17 |
Duplicate Post /wp-admin/options-general.php?page=duplicatepost | 4.11 | 38.92 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 61 new files
Database: no new tables, 31 new options
New WordPress options |
---|
duplicate_post_taxonomies_blacklist |
duplicate_post_copypassword |
widget_theysaidso_widget |
duplicate_post_copyattachments |
duplicate_post_copythumbnail |
duplicate_post_copyexcerpt |
duplicate_post_types_enabled |
duplicate_post_show_original_meta_box |
theysaidso_admin_options |
duplicate_post_copytemplate |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Yoast Duplicate Post
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲106 | 14.24 ▼0.11 | 1.95 ▲0.23 | 39.47 ▲1.83 |
Dashboard /wp-admin | 2,255 ▲86 | 5.60 ▼0.09 | 100.02 ▼0.07 | 96.30 ▲47.34 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 1.98 ▲0.03 | 36.95 ▲0.50 | 32.56 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 21.09 ▼1.85 | 716.77 ▲100.69 | 65.39 ▲4.86 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.18 ▼0.01 | 102.41 ▲4.43 | 41.57 ▲0.73 |
Duplicate Post /wp-admin/options-general.php?page=duplicatepost | 1,255 | 2.02 | 25.12 | 29.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 31 options in the database
- duplicate_post_copystatus
- duplicate_post_copytitle
- duplicate_post_copyauthor
- duplicate_post_show_original_column
- duplicate_post_version
- duplicate_post_show_link
- widget_recent-comments
- duplicate_post_copydate
- duplicate_post_copycontent
- duplicate_post_taxonomies_blacklist
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: copy, clone, duplicate post
duplicate-post/duplicate-post.php Passed 13 tests
"Yoast Duplicate Post" version 4.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,901 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 1,004 | 2,687 | 4,783 |
CSS | 2 | 18 | 2 | 113 |
JavaScript | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.01 |
▷ 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 | 249 | |
▷ Static methods | 32 | 12.85% |
▷ Public methods | 236 | 94.78% |
▷ Protected methods | 9 | 3.61% |
▷ 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
It is recommended to compress PNG files in your plugin to 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% |