99% power-boost-for-gravity-forms

Code Review | Power Boost for Gravity Forms

WordPress plugin Power Boost for Gravity Forms scored 99% from 54 tests.

About plugin

  • Plugin page: power-boost-for-g...
  • Plugin version: 2.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.3
  • WordPress version: 5.9.2
  • First release: Apr 29, 2021
  • Latest release: Feb 4, 2022
  • Number of updates: 20
  • Update frequency: every 14.4 days
  • Top authors: salzano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 400 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Power Boost for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0453.26 ▲3.94
Dashboard /wp-admin3.44 ▲0.0436.70 ▲2.49
Posts /wp-admin/edit.php3.67 ▲0.0337.65 ▼0.20
Add New Post /wp-admin/post-new.php6.94 ▼0.0695.16 ▼1,178.89
Media Library /wp-admin/upload.php3.32 ▲0.0322.42 ▼0.28

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Power Boost for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,764 ▲1015.89 ▼0.096.18 ▲0.402.19 ▲0.04
Dashboard /wp-admin2,888 ▲276.13 ▼0.05113.86 ▼18.32155.48 ▼4.63
Posts /wp-admin/edit.php2,691 ▼33.24 ▼0.1362.75 ▼0.78140.55 ▼0.89
Add New Post /wp-admin/post-new.php1,661 ▼716.17 ▼1.79395.70 ▲15.49151.54 ▼5.18
Media Library /wp-admin/upload.php1,698 ▲35.48 ▼0.10143.18 ▲9.09185.26 ▲1.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: gravityforms, gravity forms

power-boost-for-gravity-forms/gravityforms-power-boost.php 85% from 13 tests

"Power Boost for Gravity Forms" version 2.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("power-boost-for-gravity-forms.php" instead of "gravityforms-power-boost.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
There were no executable files found in this plugin671 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4121192619
Markdown144028
CSS20013
JavaScript20611

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.25
▷ Minimum class complexity7.00
▷ Maximum class complexity21.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods32
▷ Static methods618.75%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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 were not PNG files found in your plugin