84% gravitywp-css-selector

Code Review | GravityWP - CSS Selector

WordPress plugin GravityWP - CSS Selector scored 84% from 54 tests.

About plugin

  • Plugin page: gravitywp-css-sel...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Jun 10, 2017
  • Latest release: Jan 13, 2023
  • Number of updates: 26
  • Update frequency: every 78.6 days
  • Top authors: gravitywp (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

8,000+ active / 41,003 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by GravityWP - CSS Selector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.71 ▼6.92
Dashboard /wp-admin3.31 ▲0.0043.74 ▼3.01
Posts /wp-admin/edit.php3.36 ▲0.0049.86 ▲2.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.61 ▼8.49
Media Library /wp-admin/upload.php3.23 ▲0.0036.88 ▲3.26

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for GravityWP - CSS Selector
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.211.58 ▼0.2537.69 ▼5.16
Dashboard /wp-admin2,206 ▲184.88 ▼0.98112.13 ▲4.7441.45 ▲1.52
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0539.39 ▼3.1735.68 ▲0.75
Add New Post /wp-admin/post-new.php1,542 ▼318.26 ▼4.98661.67 ▲36.2757.68 ▲3.42
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0195.29 ▼2.3141.90 ▲0.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 50% from 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
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_action() in wp-content/plugins/gravitywp-css-selector/gravitywp-css-selector.php:256

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: gravity form, gravity forms, css ready classes, forms, form

gravitywp-css-selector/gravitywp-css-selector.php Passed 13 tests

"GravityWP - CSS Selector" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
Easily select a Gravity Forms CSS Ready Class for your form fields.

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 plugin534 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File2142172318
PHP11924216

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin