89% css-ready-classes-gravity-forms

Code Review | CSS Ready Classes for Gravity Forms

WordPress plugin CSS Ready Classes for Gravity Forms scored89%from 54 tests.

About plugin

  • Plugin page: css-ready-classes...
  • Plugin version: 2.7.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Oct 3, 2019
  • Latest release: Nov 8, 2023
  • Number of updates: 48
  • Update frequency: every 31.2 days
  • Top authors: endurox (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /22,291 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
Installer ran successfully

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

A check of server-side resources used by CSS Ready Classes for Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.71 ▼2.44
Dashboard /wp-admin3.33 ▼0.0245.30 ▼16.06
Posts /wp-admin/edit.php3.38 ▲0.0246.36 ▼2.02
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.43 ▼13.48
Media Library /wp-admin/upload.php3.25 ▲0.0233.22 ▼1.52

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for CSS Ready Classes for Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.67 ▲0.301.77 ▲0.1643.74 ▲1.97
Dashboard /wp-admin2,198 ▲185.63 ▲0.0187.90 ▼0.7140.37 ▼2.01
Posts /wp-admin/edit.php2,100 ▼31.96 ▲0.0137.51 ▼6.8433.28 ▼2.67
Add New Post /wp-admin/post-new.php1,526 ▼023.32 ▲0.23580.39 ▼14.8258.52 ▲1.39
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0597.08 ▼3.5242.33 ▼1.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (CSS link accessible under form field's 'Appearance' tab.), #2 (Convenient CSS Ready Class selection Popup / modal window.)
Please take inspiration from this readme.txt

css-ready-classes-gravity-forms/css-ready-classes.php 92% from 13 tests

"CSS Ready Classes for Gravity Forms" version 2.7.9'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: Name the main plugin file the same as the plugin slug ("css-ready-classes-gravity-forms.php" instead of "css-ready-classes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected249 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2952249

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png19.37KB7.32KB▼ 62.24%
screenshot-2.png46.77KB25.05KB▼ 46.42%