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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▲2.40ms] Passed 4 tests
A check of server-side resources used by Let Them Unsubscribe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 47.13 ▲7.45 |
Dashboard /wp-admin | 3.42 ▲0.12 | 64.25 ▲10.68 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 51.50 ▲1.24 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 102.05 ▼1.60 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 38.58 ▲2.50 |
Let Them Unsubscribe /wp-admin/options-general.php?page=ltu_settings | 3.32 | 35.07 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
iw_ltu_version |
widget_ltu-widget |
lt_unsubscribe_options |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Let Them Unsubscribe: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.16 ▼0.13 | 1.91 ▲0.12 | 44.65 ▲0.79 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▲0.01 | 89.42 ▼6.86 | 40.51 ▼6.29 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.09 | 38.68 ▲0.65 | 34.73 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,530 ▼1 | 23.10 ▼0.20 | 627.10 ▼29.43 | 57.50 ▲2.00 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.19 ▲0.02 | 99.70 ▲0.10 | 41.19 ▼3.12 |
Let Them Unsubscribe /wp-admin/options-general.php?page=ltu_settings | 910 | 2.18 | 27.27 | 28.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_ltu-widget
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'IW_LTU_Admin_Page' not found in wp-content/plugins/let-them-unsubscribe/admin/unsubscribe-menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function iw_ltu_get_settings() in wp-content/plugins/let-them-unsubscribe/inc/upgrade.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/let-them-unsubscribe/admin/user-profile.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/let-them-unsubscribe/let-them-unsubscribe.php:42
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/let-them-unsubscribe/inc/widget.php:3
- > PHP Notice
Undefined variable: current_version in wp-content/plugins/let-them-unsubscribe/inc/upgrade.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'IW_LTU_Admin_Page' not found in wp-content/plugins/let-them-unsubscribe/admin/settings-menu.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: users, profiles
let-them-unsubscribe/let-them-unsubscribe.php Passed 13 tests
The entry point to "Let Them Unsubscribe" version 1.2.2 is a PHP file that has certain tags in its header comment area
35 characters long description:
Let the users delete their accounts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin567 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 177 | 180 | 514 |
PO File | 1 | 24 | 30 | 53 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.20 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 80.56% |
▷ Protected methods | 3 | 8.33% |
▷ Private methods | 4 | 11.11% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
PNG images were not found in this plugin