Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.05ms] Passed 4 tests
An overview of server-side resources used by Clone Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.68 ▲0.63 |
Dashboard /wp-admin | 3.41 ▲0.11 | 47.21 ▼3.54 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.45 ▼8.21 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 95.09 ▼1.89 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.73 ▼2.57 |
Clone Posts /wp-admin/options-general.php?page=clone-posts-options | 3.30 | 32.36 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
clone_posts_post_date |
clone_posts_post_status |
clone_posts_post_type |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Clone Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 13.19 ▼1.24 | 1.61 ▼0.26 | 41.33 ▲0.20 |
Dashboard /wp-admin | 2,225 ▲19 | 5.86 ▲0.99 | 99.64 ▼5.39 | 39.30 ▼4.99 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▼0.03 | 36.50 ▼4.80 | 35.61 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.17 ▲5.42 | 656.34 ▼108.46 | 58.27 ▼0.59 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.05 | 96.12 ▼12.32 | 41.13 ▼6.78 |
Clone Posts /wp-admin/options-general.php?page=clone-posts-options | 912 | 2.02 | 22.35 | 30.87 |
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 does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/clone-posts/admin/partials/clone-posts-admin-display.php:20
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
clone-posts/clone-posts.php Passed 13 tests
Analyzing the main PHP file in "Clone Posts" version 2.0.4
103 characters long description:
Easily clone (duplicate) Posts, Pages and Custom Post Types, including their custom fields (post_meta).
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
There were no executable files found in this plugin497 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 150 | 496 | 497 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 26 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.33% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin