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.08MB] [CPU: ▼3.10ms] Passed 4 tests
A check of server-side resources used by Clone Page Or Post Plugin for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 37.38 ▼1.23 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.12 ▼3.50 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.76 ▼1.88 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 85.57 ▼5.78 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.11 ▲2.76 |
Clone Page or Post Page /wp-admin/options-general.php?page=clone_page_post_settings | 3.32 | 36.57 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
clone_page_post_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Clone Page Or Post Plugin for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.24 ▲0.04 | 1.94 ▲0.19 | 45.09 ▲1.03 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▲0.04 | 89.97 ▼3.58 | 39.59 ▼0.75 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.99 ▼0.02 | 35.39 ▼6.06 | 37.46 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.13 ▲4.99 | 651.28 ▲12.33 | 47.83 ▼14.25 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▼0.02 | 96.88 ▼7.37 | 43.70 ▲0.81 |
Clone Page or Post Page /wp-admin/options-general.php?page=clone_page_post_settings | 950 | 1.99 | 22.82 | 25.68 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- clone_page_post_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/clone-page-or-post/inc/clone-page-post-admin-settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (This screenshot shows Where the clone option available for pages or posts.)
clone-page-or-post/clone-page-or-post.php 92% from 13 tests
The main PHP script in "Clone Page Or Post Plugin for WordPress" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected475 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 33 | 106 | 368 |
CSS | 2 | 8 | 0 | 81 |
JavaScript | 1 | 2 | 0 | 26 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 63.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 5.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There are no PNG files in this plugin