78% select-all-categories-and-taxonomies-change-checkbox-to-radio-buttons

Code Review | Select All Categories and Taxonomies, Change Checkbox to Radio Buttons

WordPress plugin Select All Categories and Taxonomies, Change Checkbox to Radio Buttons scored78%from 54 tests.

About plugin

  • Plugin page: select-all-catego...
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Apr 7, 2016
  • Latest release: Jul 28, 2023
  • Number of updates: 31
  • Update frequency: every 86.1 days
  • Top authors: MooveAgency (61.29%)gaspar.nemes (41.94%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active /19,097 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0934.89 ▼8.37
Dashboard /wp-admin3.40 ▲0.1051.04 ▲5.03
Posts /wp-admin/edit.php3.52 ▲0.1651.16 ▲4.37
Add New Post /wp-admin/post-new.php6.00 ▲0.1290.04 ▲0.62
Media Library /wp-admin/upload.php3.33 ▲0.1036.83 ▼0.69
Moove taxonomy buttons /wp-admin/options-general.php?page=moove-taxonomy-settings3.92456.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.67 ▼0.971.88 ▼0.0340.43 ▼4.08
Dashboard /wp-admin2,211 ▲234.85 ▼0.02111.64 ▼4.6944.59 ▲0.93
Posts /wp-admin/edit.php2,097 ▲82.04 ▼0.0242.82 ▲1.2036.32 ▼1.20
Add New Post /wp-admin/post-new.php1,521 ▲223.38 ▲0.15666.67 ▼17.6553.43 ▼1.96
Media Library /wp-admin/upload.php1,399 ▲114.19 ▼0.1197.58 ▼4.8043.81 ▼0.17
Moove taxonomy buttons /wp-admin/options-general.php?page=moove-taxonomy-settings1,1742.2326.0232.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1270169733
CSS1214314
JavaScript212285

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 code0.38
Average class complexity16.60
▷ Minimum class complexity2.00
▷ Maximum class complexity67.00
Average method complexity5.35
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/uat-promo-wp.png364.67KB99.99KB▼ 72.58%
assets/images/logo_moove.png3.72KB1.45KB▼ 60.99%
assets/images/gdpr-promo-wp.png302.79KB67.10KB▼ 77.84%
assets/images/icon.png1.45KB1.33KB▼ 7.95%