Benchmarks
Plugin footprint 65% 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.05MB] [CPU: ▼25.73ms] 75% from 4 tests
Server-side resources used by Trash Duplicate and 301 Redirect
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 669.91ms on /wp-admin/admin.php?page=about_trash_duplicates)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.50 ▼0.97 | 12.04 ▼29.80 |
Dashboard /wp-admin | 3.68 ▲0.38 | 1,245.16 ▲1,193.36 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 53.75 ▲6.07 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 96.61 ▼85.40 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 38.78 ▲6.20 |
Trash Log /wp-admin/admin.php?page=trash_log | 3.55 | 36.86 |
Settings /wp-admin/admin.php?page=trash_duplicates_settings | 3.57 | 35.15 |
301 Redirects /wp-admin/admin.php?page=301_redirects | 3.55 | 35.38 |
About Trash Duplicates /wp-admin/admin.php?page=about_trash_duplicates | 3.62 | 669.91 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_tdrd_log_details |
wp_tdrd_redirection |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
plugin_theme |
theysaidso_admin_options |
tdrd_promo_time |
widget_theysaidso_widget |
can_compress_scripts |
tdr_version |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Trash Duplicate and 301 Redirect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,017 ▲255 | 14.14 ▼0.57 | 1.86 ▲0.10 | 46.01 ▼1.23 |
Dashboard /wp-admin | 2,407 ▲227 | 5.71 ▲0.05 | 104.43 ▲14.71 | 86.13 ▲46.07 |
Posts /wp-admin/edit.php | 2,233 ▲133 | 1.98 ▼0.03 | 37.35 ▼9.52 | 34.08 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,657 ▲140 | 23.22 ▲4.64 | 722.99 ▲144.09 | 55.80 ▲9.32 |
Media Library /wp-admin/upload.php | 1,527 ▲130 | 4.28 ▲0.08 | 99.74 ▼5.76 | 67.59 ▲23.43 |
Trash Log /wp-admin/admin.php?page=trash_log | 909 | 1.69 | 28.07 | 26.62 |
Settings /wp-admin/admin.php?page=trash_duplicates_settings | 924 | 1.66 | 29.41 | 25.04 |
301 Redirects /wp-admin/admin.php?page=301_redirects | 1,100 | 1.97 | 26.13 | 45.62 |
About Trash Duplicates /wp-admin/admin.php?page=about_trash_duplicates | 1,121 | 1.69 | 25.78 | 34.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_tdrd_redirection
- wp_tdrd_log_details
- The uninstall procedure has failed, leaving 10 options in the database
- tdr_version
- tdrd_promo_time
- tdrd_is_optin
- plugin_theme
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=301_redirects
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=about_trash_duplicates
- > Warning in wp-content/plugins/trash-duplicate-and-301-redirect/includes/about_us.php+15
simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found
- > GET request to /wp-admin/admin.php?page=about_trash_duplicates
- > Warning in wp-content/plugins/trash-duplicate-and-301-redirect/includes/about_us.php+15
simplexml_load_string(): 502 - Bad Gateway | This is a temporary error. Please try again later.
- > GET request to /wp-admin/admin.php?page=about_trash_duplicates
- > Warning in wp-content/plugins/trash-duplicate-and-301-redirect/includes/about_us.php+15
simplexml_load_string(): ^
- > GET request to /wp-admin/admin.php?page=about_trash_duplicates
- > Notice in wp-content/plugins/trash-duplicate-and-301-redirect/includes/about_us.php+115
Trying to get property 'plugins' of non-object
- > GET request to /wp-admin/admin.php?page=about_trash_duplicates
- > Notice in wp-content/plugins/trash-duplicate-and-301-redirect/includes/about_us.php+134
Trying to get property 'themes' of non-object
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/trash-duplicate-and-301-redirect/includes/about_us.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/trash-duplicate-and-301-redirect/includes/promo_notice.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
trash-duplicate-and-301-redirect/trash-duplicates.php 85% from 13 tests
The entry point to "Trash Duplicate and 301 Redirect" version 1.4.9 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("trash-duplicate-and-301-redirect.php" instead of "trash-duplicates.php")
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
Success! There were no dangerous files found in this plugin3,762 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 95 | 252 | 2,376 |
CSS | 2 | 13 | 6 | 1,151 |
JavaScript | 2 | 19 | 3 | 235 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/down.png | 1.47KB | 1.28KB | ▼ 13.04% |
images/logo-200.png | 9.00KB | 4.86KB | ▼ 45.98% |
images/logo.png | 7.19KB | 4.19KB | ▼ 41.78% |
images/support-ticket.png | 3.78KB | 2.00KB | ▼ 47.16% |
images/up.png | 1.44KB | 1.26KB | ▼ 12.44% |