Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.95ms] Passed 4 tests
An overview of server-side resources used by Duplicate Page or Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.16 ▲0.18 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.65 ▼1.31 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.76 ▼4.61 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.67 ▼16.03 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.34 ▼1.85 |
Featured Plugins /wp-admin/admin.php?page=wpda_duplicate_post_feature_plugin | 3.22 | 32.16 |
Duplicate Post /wp-admin/admin.php?page=wpda_duplicate_post_menu | 3.22 | 40.88 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Duplicate Page or Post: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.39 ▼1.38 | 1.73 ▼0.07 | 45.21 ▲0.12 |
Dashboard /wp-admin | 2,238 ▲47 | 5.85 ▲0.97 | 97.52 ▼4.44 | 40.03 ▼2.44 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.01 ▼0.03 | 35.58 ▼5.58 | 32.40 ▼2.19 |
Add New Post /wp-admin/post-new.php | 1,568 ▲35 | 23.40 ▲0.22 | 652.18 ▼24.86 | 58.47 ▲10.57 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.18 ▼0.05 | 94.36 ▼7.79 | 41.39 ▼3.71 |
Featured Plugins /wp-admin/admin.php?page=wpda_duplicate_post_feature_plugin | 1,099 | 2.02 | 21.67 | 38.97 |
Duplicate Post /wp-admin/admin.php?page=wpda_duplicate_post_menu | 1,207 | 1.68 | 25.89 | 28.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/duplicate-page-or-post/wpdevart-duplicate-post.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: clone, duplicate page, clone page, duplicate post, clone post
duplicate-page-or-post/wpdevart-duplicate-post.php 92% from 13 tests
The entry point to "Duplicate Page or Post" version 1.5.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("duplicate-page-or-post.php" instead of "wpdevart-duplicate-post.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected5,328 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 29 | 10,643 | 20,272 | 4,507 |
PHP | 2 | 43 | 39 | 657 |
CSS | 1 | 3 | 0 | 127 |
JavaScript | 1 | 2 | 0 | 37 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 36.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 63.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
14 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/featured_plugins/Pricing-table.png | 12.94KB | 4.08KB | ▼ 68.44% |
admin/images/featured_plugins/countdown-extended.png | 13.21KB | 5.74KB | ▼ 56.53% |
admin/images/featured_plugins/facebook-comments-icon.png | 35.59KB | 9.23KB | ▼ 74.06% |
admin/images/featured_plugins/chart-featured.png | 9.09KB | 4.30KB | ▼ 52.70% |
admin/images/featured_plugins/gallery-album-icon.png | 10.74KB | 4.69KB | ▼ 56.38% |