Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.97ms] Passed 4 tests
An overview of server-side resources used by Taxonomy Switcher
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.24 ▼3.21 |
Dashboard /wp-admin | 3.36 ▲0.01 | 46.64 ▼13.35 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.18 ▼0.03 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.52 ▼15.27 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.66 ▲1.55 |
Taxonomy Switcher /wp-admin/tools.php?page=taxonomy-switcher | 3.26 | 31.23 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Taxonomy Switcher
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.67 ▲0.39 | 1.81 ▲0.06 | 42.81 ▼0.17 |
Dashboard /wp-admin | 2,199 ▲22 | 5.55 ▼0.10 | 91.63 ▲2.05 | 38.53 ▼1.29 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.96 ▼0.00 | 39.84 ▼0.09 | 35.95 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,529 ▼10 | 23.22 ▲0.05 | 608.66 ▼7.89 | 44.74 ▼25.58 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.27 ▲0.07 | 96.30 ▼2.20 | 41.71 ▼2.09 |
Taxonomy Switcher /wp-admin/tools.php?page=taxonomy-switcher | 947 | 2.04 | 25.43 | 30.25 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/taxonomy-switcher/Taxonomy_Switcher_UI.php:61
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/taxonomy-switcher/wp-cli.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Admin page), #2 (Live-searching for a parent term)
taxonomy-switcher/taxonomy-switcher.php Passed 13 tests
The primary PHP file in "Taxonomy Switcher" version 1.0.6 is used by WordPress to initiate all plugin functionality
54 characters long description:
Switches the Taxonomy of terms to a different Taxonomy
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin459 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 152 | 280 | 375 |
JavaScript | 1 | 11 | 7 | 62 |
Markdown | 1 | 13 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 95.83% |
▷ Protected methods | 1 | 4.17% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 12.72KB | 11.82KB | ▼ 7.05% |
screenshot-2.png | 13.83KB | 12.88KB | ▼ 6.88% |