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.94ms] Passed 4 tests
An overview of server-side resources used by Duplicate Post, Page and Any Custom Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.29 ▼6.58 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.09 ▲1.55 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.41 ▼5.25 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 93.36 ▼5.49 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.24 ▲7.27 |
Duplicate PP /wp-admin/tools.php?page=duplicate-pp | 3.29 | 30.84 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Duplicate Post, Page and Any Custom Post
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲75 | 14.59 ▲0.19 | 1.75 ▼0.07 | 45.28 ▲1.93 |
Dashboard /wp-admin | 2,242 ▲62 | 5.51 ▼0.13 | 87.99 ▼13.65 | 42.61 ▼1.13 |
Posts /wp-admin/edit.php | 2,152 ▲55 | 2.15 ▲0.12 | 37.71 ▼1.55 | 31.45 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,570 ▲44 | 22.92 ▼0.45 | 606.58 ▼89.66 | 54.74 ▼5.88 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.20 ▼0.01 | 99.14 ▼5.80 | 43.20 ▼5.00 |
Duplicate PP /wp-admin/tools.php?page=duplicate-pp | 962 | 1.99 | 24.32 | 50.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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: 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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/duplicate-pp/admin/admin.php:11
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Requires at least: Version format is invalid
duplicate-pp/duplicate-pp.php 85% from 13 tests
"Duplicate Post, Page and Any Custom Post" version 3.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin708 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 103 | 190 | 516 |
CSS | 2 | 27 | 0 | 161 |
JavaScript | 1 | 1 | 0 | 31 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin