Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼304.66ms] Passed 4 tests
This is a short check of server-side resources used by Duplicate Page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.05 | 60.40 ▲7.48 |
Dashboard /wp-admin | 3.44 ▲0.03 | 33.61 ▼5.63 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 38.24 ▼35.41 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 95.37 ▼1,176.71 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 25.68 ▼0.90 |
Duplicate Page /wp-admin/options-general.php?page=duplicate_page_settings | 3.35 | 24.48 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 1 new option
New WordPress options |
---|
duplicate_page_options |
Browser metrics Passed 4 tests
Duplicate Page: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,791 ▲37 | 15.89 ▲0.66 | 6.01 ▲0.02 | 2.51 ▲0.02 |
Dashboard /wp-admin | 2,893 ▲35 | 6.10 ▼0.07 | 119.26 ▼18.68 | 224.72 ▲55.08 |
Posts /wp-admin/edit.php | 2,702 ▲11 | 3.24 ▼0.00 | 62.92 ▼3.47 | 145.91 ▼5.03 |
Add New Post /wp-admin/post-new.php | 1,763 ▲97 | 17.62 ▼3.72 | 416.18 ▼62.81 | 211.50 ▲45.53 |
Media Library /wp-admin/upload.php | 1,699 ▲4 | 5.55 ▲0.11 | 157.58 ▲11.89 | 203.11 ▲1.88 |
Duplicate Page /wp-admin/options-general.php?page=duplicate_page_settings | 1,239 | 2.67 | 55.29 | 130.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- duplicate_page_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
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/duplicate-page/duplicatepage.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/duplicate-page/inc/admin-settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
duplicate-page/duplicatepage.php 92% from 13 tests
The entry point to "Duplicate Page" version 4.4.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("duplicate-page.php" instead of "duplicatepage.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin965 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 113 | 151 | 449 |
PHP | 2 | 21 | 89 | 361 |
CSS | 2 | 12 | 0 | 101 |
JavaScript | 2 | 2 | 0 | 54 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 16 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected