Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▼144.82ms] Passed 4 tests
Server-side resources used by Custom Field Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.29 | 38.28 ▲1.90 |
Dashboard /wp-admin | 3.41 ▲0.35 | 53.07 ▼11.06 |
Posts /wp-admin/edit.php | 3.51 ▲0.39 | 53.65 ▲3.59 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.56 | 94.64 ▼568.66 |
Media Library /wp-admin/upload.php | 3.37 ▲0.36 | 33.22 ▼1.47 |
Custom Fields /wp-admin/admin.php?page=custom-field-manager-customfields | 3.62 | 34.56 |
Settings /wp-admin/admin.php?page=custom-field-manager-settings | 3.30 | 33.52 |
check /wp-admin/edit-tags.php?taxonomy=check&post_type=book | 3.33 | 29.20 |
Book /wp-admin/edit.php?post_type=book | 3.36 | 32.63 |
Add New /wp-admin/post-new.php?post_type=book | 3.53 | 56.37 |
good /wp-admin/edit-tags.php?taxonomy=good&post_type=book | 3.33 | 38.53 |
test /wp-admin/edit-tags.php?taxonomy=test | 3.33 | 34.41 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 44 new files
Database: 2 new tables, 3 new options
New tables |
---|
wp_xyz_cfl_group |
wp_xyz_cfl_fields |
New WordPress options |
---|
xyz_cfl_shortcode_field |
xyz_cfl_mandatory_field |
xyz_credit_link |
Browser metrics Passed 4 tests
Custom Field Manager: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲198 | 16.01 ▲0.50 | 7.45 ▼2.31 | 53.80 ▲0.08 |
Dashboard /wp-admin | 3,061 ▲133 | 6.13 ▲0.20 | 130.35 ▼43.96 | 172.11 ▲39.62 |
Posts /wp-admin/edit.php | 2,856 ▲117 | 2.72 ▲0.03 | 66.30 ▼20.20 | 129.79 ▲26.82 |
Add New Post /wp-admin/post-new.php | 1,690 ▲7 | 13.92 ▼4.82 | 285.93 ▼105.46 | 142.08 ▲31.80 |
Media Library /wp-admin/upload.php | 1,895 ▲91 | 5.05 ▲0.04 | 152.24 ▲10.00 | 149.10 ▲22.19 |
Custom Fields /wp-admin/admin.php?page=custom-field-manager-customfields | 1,850 | 2.71 | 61.85 | 146.88 |
Settings /wp-admin/admin.php?page=custom-field-manager-settings | 1,521 | 2.46 | 54.01 | 141.72 |
check /wp-admin/edit-tags.php?taxonomy=check&post_type=book | 1,827 | 2.54 | 64.99 | 107.37 |
Book /wp-admin/edit.php?post_type=book | 1,491 | 2.64 | 67.60 | 121.70 |
Add New /wp-admin/post-new.php?post_type=book | 3,240 | 9.06 | 233.59 | 185.40 |
good /wp-admin/edit-tags.php?taxonomy=good&post_type=book | 1,839 | 2.52 | 63.23 | 117.26 |
test /wp-admin/edit-tags.php?taxonomy=test | 1,827 | 2.53 | 63.20 | 109.93 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- xyz_credit_link
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=custom-field-manager-customfields
- > Notice in wp-content/plugins/custom-field-manager/admin/manage-cfl.php+844
Undefined variable: field_group_list
- > GET request to /wp-admin/admin.php?page=custom-field-manager-customfields
- > Notice in wp-content/plugins/custom-field-manager/admin/manage-cfl.php+844
Trying to get property 'id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=custom-field-manager-settings
- > User deprecated in wp-includes/functions.php+5211
get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/custom-field-manager/custom-field-manager.php
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/custom-field-manager/admin/uninstall.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-field-manager/admin/install.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-field-manager/admin/menu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-field-manager/admin/save-fields.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-field-manager/ajax-handler.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-field-manager/admin/metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/custom-field-manager/admin/settings.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_type() in wp-content/plugins/custom-field-manager/shortcode.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/custom-field-manager/admin/manage-cfl.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/custom-field-manager/admin/footer.php:81
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Tags: There are too many tags (19 tag instead of maximum 10)
custom-field-manager/custom-field-manager.php 92% from 13 tests
The main file in "Custom Field Manager" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 340 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
There were no executable files found in this plugin3,996 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 328 | 18 | 3,694 |
CSS | 1 | 29 | 0 | 290 |
JavaScript | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/cross.png | 0.75KB | 0.65KB | ▼ 12.83% |
admin/images/star.png | 3.35KB | 0.83KB | ▼ 75.35% |
admin/images/authenticate.png | 1.67KB | 1.30KB | ▼ 21.76% |
admin/images/tick.png | 0.91KB | 0.87KB | ▼ 4.30% |
admin/images/delete.png | 1.19KB | 1.39KB | 0.00% |