Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.37ms] Passed 4 tests
Analyzing server-side resources used by Dapre Custom Fields Tools
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.20 ▼1.76 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.72 ▼5.46 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 42.88 ▼3.85 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.25 ▼6.41 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.84 ▲6.05 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
dapre_cft_previous_options |
dapre_cft_previous_user_fields |
db_upgraded |
widget_theysaidso_widget |
dapre_cft_previous_post_fields |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dapre Custom Fields Tools
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲59 | 13.23 ▼0.98 | 1.73 ▼1.02 | 37.32 ▼2.56 |
Dashboard /wp-admin | 2,225 ▲37 | 5.06 ▲0.18 | 96.82 ▼4.83 | 39.94 ▼1.76 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 1.97 ▼0.03 | 33.00 ▼5.19 | 33.06 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 17.42 ▼5.68 | 665.34 ▼11.15 | 54.13 ▲1.40 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.22 ▼0.02 | 93.70 ▼8.38 | 42.08 ▼1.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- theysaidso_admin_options
- dapre_cft_previous_user_fields
- dapre_cft_previous_post_fields
- widget_recent-comments
- widget_recent-posts
- dapre_cft_previous_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dapre-custom-fields-tools/templates/tabbed-admin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dapre-custom-fields-tools/templates/partials/box-user-fields-rename.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dapre-custom-fields-tools/templates/partials/box-user-fields-copy.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dapre-custom-fields-tools/templates/partials/box-post-fields-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dapre-custom-fields-tools/templates/partials/box-options-copy.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dapre-custom-fields-tools/templates/partials/box-user-fields-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dapre-custom-fields-tools/templates/partials/box-options-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dapre-custom-fields-tools/templates/partials/box-post-fields-copy.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dapre-custom-fields-tools/templates/partials/box-post-fields-rename.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dapre-custom-fields-tools/templates/partials/box-options-rename.php:1
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: debug, utility, developer
dapre-custom-fields-tools/dapre-custom-fields-tools.php 85% from 13 tests
This is the main PHP file of "Dapre Custom Fields Tools" version 5.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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 detected3,036 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 635 | 1,328 | 3,022 |
Markdown | 1 | 2 | 0 | 10 |
CSS | 2 | 0 | 1 | 2 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 1 | 0.78% |
▷ Public methods | 98 | 76.56% |
▷ Protected methods | 22 | 17.19% |
▷ Private methods | 8 | 6.25% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 6 | 46.15% |
▷ Class constants | 7 | 53.85% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin