Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.47ms] Passed 4 tests
Analyzing server-side resources used by TP Restore Categories And Taxonomies
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 46.11 ▲2.21 |
Dashboard /wp-admin | 3.41 ▲0.11 | 50.96 ▼1.45 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 51.68 ▲3.18 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 91.20 ▼4.47 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.68 ▼2.16 |
Settings /wp-admin/admin.php?page=tpmcattt-admin-settings-page | 3.30 | 35.24 |
Taxonomies Trash /wp-admin/admin.php?page=tpmcattt-admin-page | 3.27 | 47.85 |
Server storage [IO: ▲0.18MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: 5 new tables, 6 new options
New tables |
---|
tpmcattt_term_taxonomy |
tpmcattt_termmeta |
tpmcattt_woocommerce_attribute_taxonomies |
tpmcattt_term_relationships |
tpmcattt_terms |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TP Restore Categories And Taxonomies
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲62 | 13.53 ▼0.87 | 1.78 ▼0.45 | 40.11 ▼7.84 |
Dashboard /wp-admin | 2,239 ▲54 | 5.22 ▲0.35 | 116.71 ▼1.47 | 41.71 ▼2.58 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.45 ▲0.45 | 47.66 ▲10.56 | 34.56 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,543 ▲13 | 18.00 ▼5.30 | 700.88 ▲46.33 | 66.95 ▲16.57 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.53 ▲0.27 | 107.29 ▼8.94 | 42.08 ▼8.60 |
Settings /wp-admin/admin.php?page=tpmcattt-admin-settings-page | 1,425 | 12.20 | 283.66 | 38.60 |
Taxonomies Trash /wp-admin/admin.php?page=tpmcattt-admin-page | 799 | 2.09 | 37.97 | 31.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables detected upon uninstall: 5 tables
- tpmcattt_term_relationships
- tpmcattt_term_taxonomy
- tpmcattt_terms
- tpmcattt_woocommerce_attribute_taxonomies
- tpmcattt_termmeta
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tpmcattt-admin-page
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tp-restore-categories-and-taxonomies/admin/partials/tp-move-categories-and-taxonomies-to-trash-admin-display.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tp-restore-categories-and-taxonomies/admin/partials/tp-move-categories-and-taxonomies-to-trash-admin-settings-display.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=tpmcattt-admin-settings-page
- > Other (warning) in unknown
/wp-admin/admin.php?page=tpmcattt-admin-settings-page 196 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
tp-restore-categories-and-taxonomies/tp-restore-categories-and-taxonomies.php 85% from 13 tests
The primary PHP file in "TP Restore Categories And Taxonomies" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 159 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 plugin1,085 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 247 | 486 | 659 |
CSS | 2 | 20 | 20 | 343 |
JavaScript | 2 | 20 | 33 | 83 |
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.17 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 7 | 17.95% |
▷ Public methods | 35 | 89.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 10.26% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected