90% admin-select-box-to-select2

Code Review | Admin Select Box To Select2

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

About plugin

  • Plugin page: admin-select-box-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 29, 2017
  • Latest release: Jul 2, 2022
  • Number of updates: 16
  • Update frequency: every 110.6 days
  • Top authors: aftabmuni (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /3,153 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Admin Select Box To Select2
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.27 ▼1.63
Dashboard /wp-admin3.31 ▲0.0154.46 ▼0.59
Posts /wp-admin/edit.php3.36 ▲0.0148.84 ▼0.67
Add New Post /wp-admin/post-new.php5.91 ▲0.03101.74 ▲5.92
Media Library /wp-admin/upload.php3.23 ▲0.0137.45 ▲1.95

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

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 /2,806 ▲6014.80 ▲0.451.79 ▼0.1944.10 ▲1.50
Dashboard /wp-admin2,215 ▲275.14 ▲0.28109.20 ▼9.9441.91 ▼2.32
Posts /wp-admin/edit.php2,279 ▲1872.35 ▲0.3049.33 ▲11.3733.50 ▼4.03
Add New Post /wp-admin/post-new.php1,520 ▲623.42 ▲5.97665.03 ▼17.3157.90 ▼0.39
Media Library /wp-admin/upload.php1,394 ▲64.37 ▲0.12101.20 ▼0.5342.42 ▼3.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Requires php: Version not formatted correctly
You can look at the official readme.txt

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

The primary PHP file in "Admin Select Box To Select2" version 1.0.0 is used by WordPress to initiate all plugin functionality
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 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin29 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript20317
PHP131111
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin