84% gravity-forms-fancy-select

Code Review | Gravity Forms Fancy Select

WordPress plugin Gravity Forms Fancy Select scored84%from 54 tests.

About plugin

  • Plugin page: gravity-forms-fan...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9
  • WordPress version: 6.3.1
  • First release: Apr 16, 2014
  • Latest release: Apr 25, 2014
  • Number of updates: 9
  • Update frequency: every 6.4 days
  • Top authors: phpmypython (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,028 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by Gravity Forms Fancy Select
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.86 ▼3.51
Dashboard /wp-admin3.31 ▲0.0144.23 ▼8.13
Posts /wp-admin/edit.php3.36 ▲0.0146.12 ▼1.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.03 ▼13.59
Media Library /wp-admin/upload.php3.23 ▲0.0033.61 ▼1.12

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Gravity Forms Fancy Select
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.60 ▼0.838.30 ▲6.5540.29 ▼3.62
Dashboard /wp-admin2,206 ▲184.86 ▼1.04104.49 ▼12.5640.87 ▼5.42
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0336.41 ▼4.2531.27 ▼6.14
Add New Post /wp-admin/post-new.php1,538 ▲1923.19 ▼0.08686.35 ▲13.4852.43 ▼0.39
Media Library /wp-admin/upload.php1,391 ▼04.16 ▼0.0695.31 ▼3.3043.50 ▲2.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gravity-forms-fancy-select/fancy-select.php:15

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: gravity forms, fancy select

gravity-forms-fancy-select/fancy-select.php 85% from 13 tests

"Gravity Forms Fancy Select" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gravity-forms-fancy-select.php" instead of "fancy-select.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 193 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected346 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2151221
CSS1212109
PHP191016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin