100% admin-select-box-to-select2

Code Review | Admin Select Box To Select2

WordPress plugin Admin Select Box To Select2 scored 100% from 54 tests.

About plugin

  • Plugin page: admin-select-box-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9
  • WordPress version: 5.9.2
  • First release: Aug 29, 2017
  • Latest release: Jan 30, 2022
  • Number of updates: 15
  • Update frequency: every 107.7 days
  • Top authors: aftabmuni (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active / 2,379 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼292.77ms] Passed 4 tests

Server-side resources used by Admin Select Box To Select2
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0161.63 ▲9.61
Dashboard /wp-admin3.41 ▲0.0132.59 ▲0.39
Posts /wp-admin/edit.php3.65 ▲0.0137.57 ▼1.15
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.77 ▼1,170.83
Media Library /wp-admin/upload.php3.30 ▲0.0122.88 ▲0.53

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Select Box To Select2
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,770 ▲1615.99 ▼0.006.89 ▲1.322.46 ▼0.17
Dashboard /wp-admin2,894 ▲336.48 ▲0.29118.14 ▼11.15152.88 ▼0.63
Posts /wp-admin/edit.php2,875 ▲2183.41 ▲0.1776.78 ▲12.37144.58 ▲2.41
Add New Post /wp-admin/post-new.php1,666 ▲516.28 ▲0.25421.89 ▼4.29157.80 ▲1.43
Media Library /wp-admin/upload.php1,704 ▲35.67 ▲0.14142.29 ▲8.23185.24 ▲7.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Requires php: Version not formatted correctly
You can take inspiration from this readme.txt

admin-select-box-to-select2/admin-select-box-to-select2.php Passed 13 tests

The entry point to "Admin Select Box To Select2" version 1.0.0 is a PHP file that has certain tags in its header comment area
66 characters long description:
This plugin is used to convert all simple Select boxes to Select2.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected29 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin