Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.22ms] Passed 4 tests
Server-side resources used by Duplicate Post - copy post, clone post, post draft
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.93 ▼3.08 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.63 ▼4.95 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.90 ▼4.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 96.32 ▼0.39 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.06 ▼4.59 |
Duplicate Post /wp-admin/admin.php?page=rb_duplicate_post_settings | 3.25 | 30.64 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Duplicate Post - copy post, clone post, post draft: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 14.80 ▲0.42 | 1.68 ▼0.29 | 44.96 ▼0.26 |
Dashboard /wp-admin | 2,233 ▲45 | 5.80 ▲0.92 | 101.25 ▼17.73 | 39.43 ▼7.22 |
Posts /wp-admin/edit.php | 2,121 ▲35 | 2.05 ▼0.00 | 36.26 ▼0.72 | 36.87 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,568 ▲54 | 23.11 ▲5.63 | 665.51 ▼18.95 | 53.34 ▼3.62 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 4.20 ▼0.01 | 99.35 ▲2.18 | 44.38 ▲2.05 |
Duplicate Post /wp-admin/admin.php?page=rb_duplicate_post_settings | 938 | 2.13 | 28.03 | 28.78 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 smoke test targeting browser errors/issues
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
2 plugin tags: duplicate post, clone post
duplicate-post-rb/duplicate-post-rb.php Passed 13 tests
"Duplicate Post - copy post, clone post, post draft" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Duplicate Post RB is a simple and lightweight plugin that allows you to duplicate any post easily
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected582 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 83 | 41 | 403 |
SVG | 1 | 1 | 1 | 107 |
PO File | 1 | 21 | 21 | 72 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 12 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 40.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected