Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼0.34ms] Passed 4 tests
This is a short check of server-side resources used by Taxonomy Extra Fields (BETA)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 43.42 ▼5.22 |
Dashboard /wp-admin | 3.68 ▲0.37 | 50.96 ▲1.05 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 48.20 ▲0.60 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 98.86 ▲8.92 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 37.76 ▲2.20 |
Manage Taxonomies /wp-admin/admin.php?page=tef-manage-taxonomy | 3.51 | 34.70 |
Credits /wp-admin/admin.php?page=taxonomy-extra-fields-credits | 3.54 | 36.07 |
Edit Field /wp-admin/admin.php?page=tef-edit-field | 3.50 | 34.62 |
New Field /wp-admin/admin.php?page=tef-new-field | 3.48 | 35.93 |
Taxonomy Extra Fields /wp-admin/admin.php?page=taxonomy-extra-fields | 3.54 | 37.45 |
Delete Field /wp-admin/admin.php?page=tef-delete-field | 3.50 | 34.51 |
Server storage [IO: ▲1.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 309 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_tef_fields |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Taxonomy Extra Fields (BETA)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.17 ▼1.47 | 4.90 ▲3.09 | 43.93 ▲1.09 |
Dashboard /wp-admin | 2,234 ▲43 | 4.86 ▼0.02 | 104.16 ▼6.48 | 41.26 ▼3.12 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.02 ▼0.03 | 36.03 ▼6.07 | 39.36 ▲2.14 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 17.43 ▼5.67 | 679.77 ▲5.43 | 51.36 ▼3.63 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.20 ▼0.03 | 95.38 ▼5.63 | 42.77 ▲0.96 |
Manage Taxonomies /wp-admin/admin.php?page=tef-manage-taxonomy | 972 | 3.33 | 42.31 | 22.05 |
Credits /wp-admin/admin.php?page=taxonomy-extra-fields-credits | 1,038 | 3.19 | 46.97 | 67.40 |
Edit Field /wp-admin/admin.php?page=tef-edit-field | 746 | 2.06 | 25.38 | 20.80 |
New Field /wp-admin/admin.php?page=tef-new-field | 786 | 2.02 | 23.81 | 20.58 |
Taxonomy Extra Fields /wp-admin/admin.php?page=taxonomy-extra-fields | 1,134 | 3.16 | 41.68 | 60.93 |
Delete Field /wp-admin/admin.php?page=tef-delete-field | 768 | 2.03 | 23.01 | 20.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_tef_fields
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% 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
- > GET request to /wp-admin/admin.php?page=tef-manage-taxonomy
- > Notice in wp-content/plugins/taxonomy-extra-fields/library/class/UI/TaxonomyController.php+50
Undefined index: taxonomy
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=taxonomy-extra-fields
- > User deprecated in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/Autoloader.php+12
The Twig_Autoloader class is deprecated since version 1.21 and will be removed in 2.0. Use Composer instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=taxonomy-extra-fields
- > User deprecated in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/Autoloader.php+30
Using Twig_Autoloader is deprecated since version 1.21. Use Composer instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=taxonomy-extra-fields
- > User deprecated in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/Environment.php+1100
Passing a name as a first argument to the Twig_Environment::addFunction method is deprecated since version 1.21. Pass an instance of "Twig_SimpleFunction" instead when defining function "__".
- > GET request to /wp-admin/admin.php?page=tef-new-field
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'tef\UI\FieldController' does not have a method 'newAction'
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=taxonomy-extra-fields
- > Notice in wp-admin/includes/class-wp-list-table.php+1752
Array to string conversion
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 20× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/taxonomy-extra-fields/library/class/Field/RadioField.php
- > /wp-content/plugins/taxonomy-extra-fields/library/class/Core.php
- > /wp-content/plugins/taxonomy-extra-fields/library/class/Field/ImageField.php
- > /wp-content/plugins/taxonomy-extra-fields/library/class/Field/LongTextField.php
- > /wp-content/plugins/taxonomy-extra-fields/library/class/Field/NoTypeField.php
- > /wp-content/plugins/taxonomy-extra-fields/library/class/Field/OptionsField.php
- > /wp-content/plugins/taxonomy-extra-fields/library/functions.php
- > /wp-content/plugins/taxonomy-extra-fields/library/class/Auxiliary/TaxonomyFieldsTable.php
- > /wp-content/plugins/taxonomy-extra-fields/library/class/Auxiliary/TaxonomiesListTable.php
- > /wp-content/plugins/taxonomy-extra-fields/init.php
- 149× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/Node/Spaceless.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig_Function' not found in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/Function/Method.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig_BaseNodeVisitor' not found in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/NodeVisitor/Sandbox.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Filter' not found in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/Node/Expression/Filter/Default.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/Node/Sandbox.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/Node/Expression/Name.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/Node/Expression.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/Node/Expression/Test/Defined.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Twig_NodeVisitorInterface' not found in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/BaseNodeVisitor.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/taxonomy-extra-fields/vendor/Twig/Node/Expression/Test/Sameas.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== taxonomy-extra-fields ===
)
taxonomy-extra-fields/init.php 77% from 13 tests
The entry point to "Taxonomy Extra Fields (BETA)" version 0.6.04 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 186 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("taxonomy-extra-fields.php" instead of "init.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin23,701 lines of code in 292 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 210 | 2,640 | 5,392 | 10,330 |
CSS | 7 | 582 | 24 | 5,334 |
JavaScript | 20 | 535 | 178 | 3,198 |
Sass | 16 | 88 | 37 | 1,861 |
LESS | 14 | 34 | 44 | 1,646 |
SVG | 1 | 0 | 0 | 685 |
Twig | 22 | 56 | 0 | 439 |
PO File | 1 | 67 | 101 | 182 |
Markdown | 1 | 9 | 0 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 6.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 22 | |
Traits | 0 | |
Classes | 184 | |
▷ Abstract classes | 15 | 8.15% |
▷ Concrete classes | 169 | 91.85% |
▷ Final classes | 1 | 0.59% |
Methods | 899 | |
▷ Static methods | 16 | 1.78% |
▷ Public methods | 787 | 87.54% |
▷ Protected methods | 107 | 11.90% |
▷ Private methods | 5 | 0.56% |
Functions | 62 | |
▷ Named functions | 61 | 98.39% |
▷ Anonymous functions | 1 | 1.61% |
Constants | 47 | |
▷ Global constants | 5 | 10.64% |
▷ Class constants | 42 | 89.36% |
▷ Public constants | 42 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/FontAwesome.png | 21.72KB | 10.33KB | ▼ 52.44% |
assets/images/AnimateCSS.png | 18.37KB | 7.32KB | ▼ 60.12% |
assets/images/TWIG.png | 26.74KB | 13.38KB | ▼ 49.96% |
assets/images/jQueryNoty.png | 19.30KB | 10.87KB | ▼ 43.67% |
assets/images/TEF-logo.png | 40.74KB | 20.34KB | ▼ 50.09% |