94% formidable-select-optgroup

Code Review | Formidable Select OptGroup

WordPress plugin Formidable Select OptGroup scored 94% from 54 tests.

About plugin

  • Plugin page: formidable-select...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 5.8.1
  • First release: Dec 3, 2015
  • Latest release: Dec 4, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: abda53 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 797 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼150.04ms] Passed 4 tests

This is a short check of server-side resources used by Formidable Select OptGroup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1246.50 ▲21.31
Dashboard /wp-admin3.06 ▲0.0145.30 ▼5.70
Posts /wp-admin/edit.php3.12 ▲0.0145.07 ▼6.51
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.78 ▼589.32
Media Library /wp-admin/upload.php3.01 ▲0.0135.16 ▲1.39

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Formidable Select OptGroup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.89 ▲0.299.41 ▲1.5548.82 ▲0.13
Dashboard /wp-admin2,992 ▲615.96 ▼0.13145.50 ▼16.48116.29 ▼0.78
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0068.17 ▼2.1590.95 ▲2.76
Add New Post /wp-admin/post-new.php1,683 ▼018.71 ▲0.03386.57 ▲4.19114.53 ▼3.46
Media Library /wp-admin/upload.php1,807 ▼35.03 ▼0.01159.95 ▼4.96124.23 ▼1.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/formidable-select-optgroup/formidable-select-optgroup.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: formidable select optgroup form

formidable-select-optgroup/formidable-select-optgroup.php Passed 13 tests

"Formidable Select OptGroup" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
This plugin will allow you to create optgroup's in your select forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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 constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin