Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Error in wp-content/plugins/modify-profile-fields-dashboard-menu-buttons/library_wp.php+2677
Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/modify-profile-fields-dashboard-menu-buttons/library_wp.php:2677
Stack trace:
#0 wp-content/plugins/modify-profile-fields-dashboard-menu-buttons/library_wp.php(2611): Puvox\wp_plugin->is_not_bulk_activation()
#1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲2.24MB] [CPU: ▲8.72ms] Passed 4 tests
Server-side resources used by Profile & Dashboard fields [Modify/Disable/Remove]
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.75 ▲2.29 | 51.78 ▲15.74 |
Dashboard /wp-admin | 5.58 ▲2.28 | 56.39 ▲5.40 |
Posts /wp-admin/edit.php | 5.63 ▲2.27 | 57.72 ▲8.22 |
Add New Post /wp-admin/post-new.php | 8.10 ▲2.21 | 92.31 ▲5.51 |
Media Library /wp-admin/upload.php | 5.44 ▲2.21 | 55.08 ▲21.74 |
Modify Profile Fields /wp-admin/options-general.php?page=modify-profile-dashboard-fields | 5.41 | 48.24 |
Server storage [IO: ▲0.39MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_modify_profile_dashboard_fields__errors_log |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
modify-profile-dashboard-fields |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Profile & Dashboard fields [Modify/Disable/Remove]
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.35 ▼0.00 | 1.58 ▼0.12 | 37.57 ▼3.33 |
Dashboard /wp-admin | 2,205 ▲25 | 5.62 ▼0.05 | 83.34 ▼1.88 | 36.28 ▼0.22 |
Posts /wp-admin/edit.php | 2,104 ▼0 | 1.98 ▼0.02 | 33.31 ▼9.11 | 34.65 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.47 ▼1.24 | 679.32 ▲48.27 | 59.93 ▼17.25 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.05 | 108.69 ▲5.55 | 47.21 ▲2.74 |
Modify Profile Fields /wp-admin/options-general.php?page=modify-profile-dashboard-fields | 1,408 | 2.13 | 29.09 | 79.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_modify_profile_dashboard_fields__errors_log
- This plugin did not uninstall successfully, leaving 7 options in the database
- modify-profile-dashboard-fields
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/modify-profile-fields-dashboard-menu-buttons/library_wp.php:25
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
modify-profile-fields-dashboard-menu-buttons/index.php 85% from 13 tests
"Profile & Dashboard fields [Modify/Disable/Remove]" version 1.04's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("modify-profile-fields-dashboard-menu-buttons.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,832 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 1,291 | 5,123 | 3,832 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,076)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 356.60 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 1,076.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 877 | |
▷ Static methods | 102 | 11.63% |
▷ Public methods | 869 | 99.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 0.91% |
Functions | 91 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 91 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin