90% wp-chosen

Code Review | WP Chosen

WordPress plugin WP Chosen scored90%from 54 tests.

About plugin

  • Plugin page: wp-chosen
  • Plugin version: 6.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.8
  • WordPress version: 6.3.1
  • First release: Oct 1, 2015
  • Latest release: Mar 10, 2021
  • Number of updates: 27
  • Update frequency: every 73.6 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /7,304 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by WP Chosen
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.14 ▼6.17
Dashboard /wp-admin3.32 ▲0.0247.61 ▼3.81
Posts /wp-admin/edit.php3.37 ▲0.0151.35 ▼2.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.69 ▼9.03
Media Library /wp-admin/upload.php3.24 ▲0.0137.03 ▼1.89

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Chosen
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3613.52 ▼1.035.86 ▲3.8042.36 ▲2.95
Dashboard /wp-admin2,203 ▲265.63 ▼0.0488.43 ▼1.8041.87 ▼2.98
Posts /wp-admin/edit.php2,306 ▲2032.46 ▲0.5152.56 ▲13.0937.80 ▲0.30
Add New Post /wp-admin/post-new.php1,534 ▲123.39 ▲0.71685.70 ▲13.1655.83 ▼0.46
Media Library /wp-admin/upload.php1,411 ▲114.25 ▲0.1197.06 ▼17.3244.60 ▼3.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #3 is missing in wp-chosen/assets to your readme.txt
The official readme.txt might help

wp-chosen/wp-chosen.php Passed 13 tests

The primary PHP file in "WP Chosen" version 6.1.1 is used by WordPress to initiate all plugin functionality
46 characters long description:
Makes unwieldy select boxes more user-friendly

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,265 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
Sass3715501,225
CSS3256854
JavaScript41316127
PHP3237859

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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