Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/wp-duplicate-posts-pages-cpt/includes/dp_manage.php+3
Uncaught ArgumentCountError: Too few arguments to function DPWP_add_row_actions(), 0 passed in wp-content/plugins/wp-duplicate-posts-pages-cpt/duplicate-post-page.php on line 18 and exactly 1 expected in wp-content/plugins/wp-duplicate-posts-pages-cpt/includes/dp_manage.php:3
Stack trace:
#0 wp-content/plugins/wp-duplicate-posts-pages-cpt/duplicate-post-page.php(18): DPWP_add_row_actions()
#1 wp-includes/class-wp-hook.php(310): DPWP_install_dupl()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.73ms] Passed 4 tests
Server-side resources used by WP Duplicate posts pages & CPT
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 46.61 ▲9.84 |
Dashboard /wp-admin | 3.31 ▼0.04 | 39.26 ▼22.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.24 ▼0.85 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 76.36 ▼24.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.51 ▲0.88 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Duplicate posts pages & CPT: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.40 ▼0.19 | 1.72 ▼0.27 | 38.24 ▼1.16 |
Dashboard /wp-admin | 2,209 ▲17 | 4.87 ▼0.09 | 111.67 ▲5.71 | 44.03 ▲3.63 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.08 | 39.83 ▼2.75 | 36.42 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,537 ▲17 | 23.30 ▼0.08 | 602.53 ▼60.99 | 56.68 ▲7.73 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.01 | 97.95 ▼0.13 | 40.17 ▼4.96 |
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 detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- 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
Even though no errors were found, 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-duplicate-posts-pages-cpt/includes/dp_manage.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-duplicate-posts-pages-cpt/includes/dp_manage.php:79
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-duplicate-posts-pages-cpt/duplicate-post-page.php 77% from 13 tests
The entry point to "WP Duplicate posts pages & CPT" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "4.1")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-duplicate-posts-pages-cpt.php" instead of "duplicate-post-page.php")
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
Everything looks great! No dangerous files found in this plugin80 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 13 | 80 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin