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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.52ms] Passed 4 tests
Analyzing server-side resources used by Duplicate Page
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.46 ▼5.97 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.20 ▼4.88 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.28 ▼2.07 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 98.65 ▼5.15 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.41 ▲4.30 |
Duplicate Page /wp-admin/options-general.php?page=duplicate_page_settings | 3.28 | 38.43 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
duplicate_page_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Duplicate Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.68 ▼0.57 | 1.70 ▼0.13 | 44.85 ▲2.84 |
Dashboard /wp-admin | 2,210 ▲19 | 4.87 ▼0.01 | 107.30 ▲2.18 | 41.45 ▼4.37 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▲0.02 | 40.34 ▼0.58 | 37.61 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.16 ▼0.01 | 642.95 ▼28.55 | 65.51 ▲8.20 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▲0.08 | 99.61 ▼7.23 | 43.64 ▼0.95 |
Duplicate Page /wp-admin/options-general.php?page=duplicate_page_settings | 967 | 2.35 | 27.64 | 28.35 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- duplicate_page_options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > 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 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
duplicate-page/duplicatepage.php 92% from 13 tests
"Duplicate Page" version 4.5.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected977 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 113 | 151 | 449 |
PHP | 2 | 21 | 93 | 373 |
CSS | 2 | 12 | 0 | 101 |
JavaScript | 2 | 2 | 0 | 54 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 64.00 |
▷ Minimum class complexity | 64.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 4.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin