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
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.02ms] Passed 4 tests
A check of server-side resources used by Select All Categories and Taxonomies, Change Checkbox to Radio Buttons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 34.89 ▼8.37 |
Dashboard /wp-admin | 3.40 ▲0.10 | 51.04 ▲5.03 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 51.16 ▲4.37 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 90.04 ▲0.62 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.83 ▼0.69 |
Moove taxonomy buttons /wp-admin/options-general.php?page=moove-taxonomy-settings | 3.92 | 456.62 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Select All Categories and Taxonomies, Change Checkbox to Radio Buttons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.67 ▼0.97 | 1.88 ▼0.03 | 40.43 ▼4.08 |
Dashboard /wp-admin | 2,211 ▲23 | 4.85 ▼0.02 | 111.64 ▼4.69 | 44.59 ▲0.93 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▼0.02 | 42.82 ▲1.20 | 36.32 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.38 ▲0.15 | 666.67 ▼17.65 | 53.43 ▼1.96 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.19 ▼0.11 | 97.58 ▼4.80 | 43.81 ▼0.17 |
Moove taxonomy buttons /wp-admin/options-general.php?page=moove-taxonomy-settings | 1,174 | 2.23 | 26.02 | 32.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/select-all-categories-and-taxonomies-change-checkbox-to-radio-buttons/views/moove/admin/settings/documentation.php
- > /wp-content/plugins/select-all-categories-and-taxonomies-change-checkbox-to-radio-buttons/views/moove/admin/settings/post_type.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: data in wp-content/plugins/select-all-categories-and-taxonomies-change-checkbox-to-radio-buttons/views/moove/admin/settings/post_type.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/select-all-categories-and-taxonomies-change-checkbox-to-radio-buttons/views/moove/admin/settings/post_type.php on line 3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/select-all-categories-and-taxonomies-change-checkbox-to-radio-buttons/views/moove/admin/settings/post_type.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Moove_Radioselect_Controller' not found in wp-content/plugins/select-all-categories-and-taxonomies-change-checkbox-to-radio-buttons/views/moove/admin/settings/plugin_boxes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/select-all-categories-and-taxonomies-change-checkbox-to-radio-buttons/views/moove/admin/settings/settings_page.php:2
- > PHP Notice
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 Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: category, radio, taxonomy, select, checkbox
select-all-categories-and-taxonomies-change-checkbox-to-radio-buttons/moove-radio-select.php 85% from 13 tests
The principal PHP file in "Select All Categories and Taxonomies, Change Checkbox to Radio Buttons" v. 1.3.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("select-all-categories-and-taxonomies-change-checkbox-to-radio-buttons.php" instead of "moove-radio-select.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,132 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 70 | 169 | 733 |
CSS | 1 | 21 | 4 | 314 |
JavaScript | 2 | 12 | 2 | 85 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 16.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 5.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.66MB with 0.36MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/uat-promo-wp.png | 364.67KB | 99.99KB | ▼ 72.58% |
assets/images/logo_moove.png | 3.72KB | 1.45KB | ▼ 60.99% |
assets/images/gdpr-promo-wp.png | 302.79KB | 67.10KB | ▼ 77.84% |
assets/images/icon.png | 1.45KB | 1.33KB | ▼ 7.95% |