Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.15ms] Passed 4 tests
An overview of server-side resources used by Radio Buttons for Taxonomies
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.72 ▼0.06 |
Dashboard /wp-admin | 3.33 ▲0.03 | 53.33 ▲0.03 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 51.87 ▲0.35 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 88.31 ▼24.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.61 ▲3.59 |
Radio Buttons for Taxonomies /wp-admin/options-general.php?page=radio-buttons-for-taxonomies | 3.26 | 33.99 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Radio Buttons for Taxonomies
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 13.66 ▼0.90 | 2.19 ▲0.12 | 41.31 ▼2.18 |
Dashboard /wp-admin | 2,222 ▲16 | 5.76 ▼0.14 | 98.67 ▼16.69 | 40.31 ▼2.78 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.05 ▲0.02 | 35.28 ▼0.90 | 30.97 ▼5.72 |
Add New Post /wp-admin/post-new.php | 1,549 ▲6 | 23.16 ▲0.05 | 661.03 ▼10.13 | 53.83 ▼9.40 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.31 ▲0.10 | 107.21 ▲3.33 | 45.75 ▼2.22 |
Radio Buttons for Taxonomies /wp-admin/options-general.php?page=radio-buttons-for-taxonomies | 841 | 2.06 | 25.97 | 34.85 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/radio-buttons-for-taxonomies/inc/class-walker-category-radio.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/radio-buttons-for-taxonomies/inc/plugin-options.php:10
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: metabox, radio, terms, interface, taxonomy...
radio-buttons-for-taxonomies/radio-buttons-for-taxonomies.php Passed 13 tests
"Radio Buttons for Taxonomies" version 2.4.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Use radio buttons for any taxonomy so users can only select 1 term at a time
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
Good job! No executable or dangerous file extensions detected1,451 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 74 | 65 | 618 |
PHP | 8 | 246 | 564 | 605 |
PO File | 5 | 75 | 96 | 228 |
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.39 |
Average class complexity | 17.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 46 | |
▷ Static methods | 7 | 15.22% |
▷ Public methods | 43 | 93.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.52% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected